docs:mac:terminal

Mac OS X has the keys listed below mapped to move through the terminal history. We need these keys to work as they were intended in various programs, so to fix this just complete these key mappings. Right click on the Terminal window, and click “Window Settings,” then go to “Keyboard.” I also check “use option key as meta key.” Click “Use Settings as Defaults” when done.

(You press the ESC key instead of typing \033)
home = \033[1~
end = \033[4~
page up = \033[5~
page down = \033[6~
  • Set the Terminal application preferences to declare the terminal type ($TERM) as xterm.
  • When connecting to another machine via ssh, you may need to set the LANG environment variable in order to properly view drawing characters, such as the dividing lines in midnight commander. Note that if you do this through your Mac Terminal, you do this after you connect to the other computer. So if you were connected to a Linux machine then you would actually be setting it on the Linux machine, for example.
    export LANG=C
  • docs/mac/terminal.txt
  • Last modified: 2008/08/03 00:25
  • by 127.0.0.1