From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Lee Subject: Mapping Control and Shift Function Keys Date: 16 Jun 2002 08:34:08 -0700 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <1024241650.5753.53.camel@ralph.plexio.private> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" To: dosemu 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