9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Eoghan Sherry <ejsherry@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] keyboard events in sam
Date: Mon,  7 Dec 2009 12:10:50 -0500	[thread overview]
Message-ID: <a2d238df0912070910wfbd572u147930f9a9c9e328@mail.gmail.com> (raw)
In-Reply-To: <dd6fe68a0912070817k525c9412hc4fcb86022a5520d@mail.gmail.com>

The keyboard is handled in src/cmd/devdraw which could be considered
the plan9port
equivalent of the Plan 9 kernel (at least the keyboard, mouse, and
graphics part).

The X11 version of devdraw maps the X notion of a keyboard to the Plan 9 one in
__xtoplan9kbd (src/cmd/devdraw/x11-itrans.c).
In particular, this function contains,

        /* Do control mapping ourselves if translator doesn't */
        if(e->xkey.state&ControlMask && k != Kalt)
                k &= 0x9f;

So, for instance, Ctrl-[0Pp] all map to 0x10.

Not sure what the convention should be, but that's where it's enforced.

Eoghan



      parent reply	other threads:[~2009-12-07 17:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-07 14:13 Lorenzo Bolla
2009-12-07 14:39 ` Lorenzo Bolla
2009-12-07 16:17 ` Russ Cox
2009-12-07 16:49   ` Lorenzo Bolla
2009-12-07 17:10   ` Eoghan Sherry [this message]

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=a2d238df0912070910wfbd572u147930f9a9c9e328@mail.gmail.com \
    --to=ejsherry@gmail.com \
    --cc=9fans@9fans.net \
    /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;
as well as URLs for NNTP newsgroup(s).