Skip to contentSkip to conversation

Mapping Control and Shift Function Keys

DISCUSSION Stephen Lee 1 participant 2 messages Jun 16, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to get the Shift and Control Function keys to work in a terminal (SecureCRT) Dosemu session. I got the terminal emulator to generate distinct escape sequences for the Fkeys and then added corresponding enties in ./dosemu-1.1.3/src/plugin/keyboard/keyb_slang.c.

Here's a sample of "cat -v" in the terminal session F11 and F12: ^[[23~^[[24~
Shift F11 and F12: ^[[36~^[[37~
Control F11 and F12: ^[[60~^[[61~

Here are the corresponding entires in keyb_slang.c under static Keymap_Scan_Type vtxxx_fkeys[] = :
{"\033[23~", KEY_F11 }, /* F11 */
{"\033[24~", KEY_F12 }, /* F12 */

  {"\033[36~", KEY_F11 | SHIFT_MASK },  /* Shift F11 */
  {"\033[37~", KEY_F12 | SHIFT_MASK },  /* Shift F12 */
  {"\033[60~",  KEY_F11 | CTRL_MASK },                /* Ctrl F11 */
  {"\033[61~",  KEY_F12 | CTRL_MASK },                /* Ctrl F12 */

My Foxpro application recognizes the F1-F12 keys fine but not the Shift or the Control Fkeys. I ran a keyboard scan program in the DOS session and it does not detect any of the Control or Shift Fkeys either. Where to look next?

Thanks for any suggestions,
Stephen

#1 lore raw
Quoted 7 lines · Stephen Lee

Hi,

I'm trying to get the Shift and Control Function keys to work in a terminal (SecureCRT) Dosemu session. I got the terminal emulator to generate distinct escape sequences for the Fkeys and then added corresponding enties in ./dosemu-1.1.3/src/plugin/keyboard/keyb_slang.c.

I forgot to mention that Dosemu is run under Redhat 7.2

Stephen