public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Lee <splee@plexio.com>
To: dosemu <linux-msdos@vger.kernel.org>
Subject: Mapping Control and Shift Function Keys
Date: 16 Jun 2002 08:34:08 -0700	[thread overview]
Message-ID: <1024241650.5753.53.camel@ralph.plexio.private> (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




             reply	other threads:[~2002-06-16 15:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-16 15:34 Stephen Lee [this message]
2002-06-16 15:43 ` Mapping Control and Shift Function Keys Stephen Lee
  -- strict thread matches above, loose matches on Subject: below --
2002-06-16 16:08 Stas Sergeev
2002-06-17 18:16 ` Stephen Lee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1024241650.5753.53.camel@ralph.plexio.private \
    --to=splee@plexio.com \
    --cc=linux-msdos@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox