- MacOS keyboard maps
- X11 xmodmap
- xterm VT100 widget X resources (from .Xresources through xrdb)
- ssh
- Linux kernel terminal driver (through stty)
- terminfo (chosen via the $TERM environment variable, used by libraries such as curses)
- GNU screen (the "bindkey" command in .screenrc)
- the actual application:
- shell keymaps (the "bindkey" builtin command in zsh, configured via .zshrc)
- emacs keymaps (some .el file)
In X11.app's X11 Preferences, "Use the system keyboard layout" is checked, "Enable keyboard shortcuts under X11" is unchecked.
In ~/.Xresources on my MacBook:
*locale: UTF-8In ~/.zshrc:
XTerm*metaSendsEscape: true
XTerm*backarrowKey: false
XTerm*backarrowKeyIsErase: false
XTerm*termName: xterm-color
bindkey "^?" backward-delete-charChanged some settings in ~/.terminfo/x/xterm-color in Linux to match the mac's xterm resources:
bce@, # mac's xterm is too old to support back color eraseWasn't that easy?
kbs=\177, # backarrow key sends ^?
kdch1=\E[3~, # forward delete key
No comments:
Post a Comment