Tuesday, February 24, 2009

Escape sequence for HOME and END in Mac OS X 10.5 Terminal APP

I'm using Macbook Pro with Mac OS X 10.5.6
But there is no HOME or END key in the keyboard.
When you use terminal, it is very inconvenient not to have those keys.

You can go to Terminal->Preferences->Settings->Keyboard (tab)
Add two keys:

For example, I specify:
The escape sequence \033 is equal to "control + esc"
option + cursor right (end, go to the end of a line): \033[F
option + cursor left (home, go to the start of a line): \033[H

Then it works fine in my terminal.
But I don't know how to specify "command + cursor"

No comments: