Re: F2 key programming
Subject: F2 key programming
Date: Fri, Sep 29, 2000 at 06:20:19PM +0000
In reply to:ivan.danicic@tesco.net
Quoting ivan.danicic@tesco.net(ivan.danicic@tesco.net):
> Hello Thomas, Further to e-mail from Julio Merino on how to make the F2
> key emit "|more\C-m"
> (i.e. put into ~.inputrc the line "\e[[B": "|more\C-m" ) I found,
> after much fruitless searching, that
> my F2 key has the string "\eOQ" instead attached and F10 has "\e[21~" .
>
> I found this via a small C-program which I wrote. I now have the two
> lines in my ~.inputrc
> "\eOQ":"|more\C-m"
> "\e[21~":"ls -l" #F10 emits "ls-l"
> and all is well!
> This shows one of the problems with Linux: some necessary information
> is very hard to find.
> Ivan
Ivan
Too late now but for future reference.
apropos keyboard
(deleted those that don't apply)
showkey (1) - examine the codes sent by the keyboard
man showkey
"showkey prints to standard output either the scan codes or
the keycode or the `ascii' code of each key pressed.
Isn't Linux great! When you know how to ask it a question, it knows
how to answer.
Hope this will help you in the future!!
Regards
Wayne
--
Any program that runs right is obsolete.
_______________________________________________________
Reply to: