[PLUG] Re: Help with setting Function key values in console

Matt Alexander m at netpro.to
Fri Apr 19 00:51:57 UTC 2002


Actually...  It works on the command line to do this:

# loadkeys
keycode 63 = F55
string F55 = "\033[6~"

But when I put these same lines in my us.kmap file, it just prints 6~.
Does anyone know how to get the escape sequence to work properly from
within the keymap file?
Thanks,
~M


On Thu, 18 Apr 2002, Matt Alexander wrote:

> I figured it out.  I was sending the ^[ as two separate characters.  I
> replaced my string with \033[6~ and it works.
>
>
> On Thu, 18 Apr 2002, Matt Alexander wrote:
>
> > Hi,
> > I'm trying to configure a Linux box so it can send the proper code to an
> > application when the various Function keys are pressed.  Here's how it
> > should work...  I login to the server and run the app.  Pressing F5 should
> > send:    ^[[6~
> >
> > I used loadkeys to set this up and if I press the F5 key while on the
> > console, it prints this string.  However, the app on the server behaves as
> > if I'm actually typing in each of those characters individually, and
> > that's not what I want.  The box I'm testing this on is Mandrake 8.2.
> >
> > If anyone has any suggestions on how to make this work or where I might
> > find more information on how to configure this, I'd appreciate it.
> > Thanks,
> > ~M
> >
> >
> >
>
>





More information about the PLUG mailing list