public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrej Hocevar <drejcica@volja.net>
To: linux-kernel@vger.kernel.org
Subject: advice on adding functions to use with "loadkeys" (keyboard.c maybe?)
Date: Sat, 7 Jun 2003 19:48:00 +0200	[thread overview]
Message-ID: <20030607174800.GA10131@sonet> (raw)

Hello,
in many trivial situations, one cannot make good use of common
techniques for mapping certain functions to certain keys in the
console. For example, using "loadkeys" to make F1 start
"fetchmail\n" or something similar is convenient in most cases. But
if one wants to make it change the keyboard-layout (like "loadkeys
us"), it won't make much sense to use the previous approach, since
it won't work from within an editor. Instead, a solution would be to
map a key to "KeyboardSignal" and point it to a script from
/etc/inittab. 

Now here's my question: the last approach is good but even if one
maps multiple keys to the same signal, I don't see a way for the
script to know which key was pressed to run it. So I thought I could
add some custom functions to do mostly trivial tasks, maybe something
like "ls -l" to test its functionality, and then use "loadkeys" to
map a key to that new function. Is this possible? Is it a good idea
at all? 

Thanks,
    andrej

-- 
echo ${girl_name} > /etc/dumpdates

                 reply	other threads:[~2003-06-07 17:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20030607174800.GA10131@sonet \
    --to=drejcica@volja.net \
    --cc=linux-kernel@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