Keymap for terminals
Hi,
I would like to map some of the keys (including Function keys) to specific escape sequences. My goal is to have them work as expected under Foxpro/Dosemu. I've managed to change the escaped sequences under console mode with "loadkeys mykeys.map". However, when I login to the system with a dos terminal emulator like PuTTY (using TERM=linux), I don't get the new key mappings. The same can be said for xterms. How do I get these new key mappings to work with terminals?
Thanks,
Stephen
Quoted 7 lines · Stephen Lee
I would like to map some of the keys (including Function keys) to specific escape sequences. My goal is to have them work as expected under Foxpro/Dosemu. I've managed to change the escaped sequences under console mode with "loadkeys mykeys.map". However, when I login to the system with a dos terminal emulator like PuTTY (using TERM=linux), I don't get the new key mappings. The same can be said for xterms. How do I get these new key mappings to work with terminals?
Have you tried hacking keyb_slang.c?
I am not sure about any standard but modern xterms seem to give a lot of different escape sequences.
Bart
Quoted 10 lines · Bart Oldeman
Quoted 7 lines · Stephen Lee
I would like to map some of the keys (including Function keys) to specific escape sequences. My goal is to have them work as expected under Foxpro/Dosemu. I've managed to change the escaped sequences under console mode with "loadkeys mykeys.map". However, when I login to the system with a dos terminal emulator like PuTTY (using TERM=linux), I don't get the new key mappings. The same can be said for xterms. How do I get these new key mappings to work with terminals?
Quoted 2 lines
Have you tried hacking
keyb_slang.c?
I will as soon as I can get my PuTTY (or xterm) session to distiguish between F11 and F23, F12 and F24, Ins and ^Ins and Del and ^Del. As mentioned above, the modified keymap only works on the console. Is is correct to presume that these keymap changes must work in the linux terminal before they will work in Dosemu?
Quoted 2 lines
I am not sure about any standard but modern xterms seem to give a lot of different escape sequences.
I wonder if I need to play around with the terminfo db for "linux"?
Thanks,
Stephen
Quoted 2 lines · Bart Oldeman
Have you tried hacking
keyb_slang.c?
In addition to adding Shift and Cntl F1-12 keycodes to:
static Keymap_Scan_Type Linux_fkeys[] =
do I simply add Cntl-Ins and Cntl-Del keycodes to the
static Keymap_Scan_Type Linux_Xkeys[] =
section?
Does "Linux_fkeys[]" and "Linux_Xkeys[]" refer to "TERM=linux" in the shell which Dosemu is run under?
Thanks,
Stephen