On 12/19/15 3:44 PM, Random832 wrote:
Will Senn <[email protected]> writes:
I am trying to use xterm, now that I have terminal behaving
better. But, the keymapping is really weird: pressing the delete key
displays ^H, pressing CTRL-DELETE, effectively backspaces, and
pressing fn-F5, which in Terminal is mapped to ESC-O-w, displays 5~.
Do you know where xterm is getting its key mapping from? If it's a
file, do you know of a VT100 file of mappings? I have a feeling that
the default mapping is way off.
Xterm's mappings are bult in. F5 and beyond are based on the
VT220, since there were no equivalent keys on a real VT100. You
would need to use a numeric keypad to get keys like ESC-O-w from
the default mappings. You can control the keys in ~/.Xdefaults,
though. See the answer to this question on Stack Overflow:
http://stackoverflow.com/questions/11840763/
Delete and Backspace is an issue with a long history, and can be
controlled through a separate option "backarrowKeyIsErase".
Thanks for this. I eventually worked out how to map keys in xterm (and
figured out copy/paste syncing on mac):
in .Xresources
*VT100.translations: #override\
<Key>F5: string(\033Ow)\n\
Woohoo.
-will
_______________________________________________
Simh mailing list
[email protected]
http://mailman.trailing-edge.com/mailman/listinfo/simh