Wednesday 14 March 2012

LKVenia: Using OS X Terminal keys on a Macbook Pro

The default key settings on the Mac OS X (10.5) Terminal are pretty weird, especially on a Macbook Pro, and took me a while to figure them out and setup as I wanted.
http://lkraider.eipper.com.br/blog/2009/04/using-os-x-terminal-keys-on-macbook-pro.html

Thanks to this post I finally found how to get back the shift PgUp ! you have no idea how vexing it is to use the arrow keys to scroll man pages .. 

On the Terminal preferences, go to the Settings item, and choose the Keyboard tab.
Find these keys and edit them (note that the \033 you can get by pressing the esc key):

End - send string to shell: \033[4~
Home - send string to shell: \033[1~
Page down - send string to shell: \033[6~
Page up - send string to shell: \033[5~
Shift page down - scroll to next page in buffer
Shift page up - scroll to previous page in buffer

1 comment:

  1. I gave up Mac OS X on my Mac Pro workstation at work and went back to Ubuntu just for this kind of stuffs. I felt like I was swimming against the tide.

    I still keep Mac OS X in a Macbook Pro at home, but there I use iTerm2[1]. Heck of an improvement over Terminal.

    [1]http://www.iterm2.com/

    --Carlos

    ReplyDelete

Datanami, Woe be me