an osx note
Whoa, they sure bolluxed the key mappings in the terminal, at least from a Unix perspective. I couldn't get Home / End / PageUp / PageDn to work at all until I did some major surgery.
Oh, and there seems to be a bug in the Terminal Inspector that doesn't allow you to insert esc (and possibly ctl), despite what it says in the instructions. See this thread.
It's difficult to find the proper key mappings for some reason. I thought they were VT100 escape codes, but they're not?
This page, whatever it is was helpful. I used it to come up with the following table, which seems to work:
- home = esc[H
- end = esc[8~
- pageup = esc[5~
- pagedn = esc[6~
If you have a PowerBook like I do, you'll need one more key piece of information: the fn key turns the arrow keys into home, page up, page down, and end.
Note to Apple
Why the foobar'd keymap in terminal? What do you guys use this for where Shift-end is preferable to just typing end?
I'm adding two hours to the Apple Computer invoice for this.
By Psydeshow on November 22, 2003 at 6:44pm