[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: terminfo, function keys and linux console

From: Dave Wood
Subject: Re: terminfo, function keys and linux console
Date: Fri, 9 Jan 2009 05:12:54 +0000
User-agent: Mutt/1.5.18 (2008-12-10)

On (22:52 08/01/09), Dan Nelson <address@hidden> put forth the proposition:
In the last episode (Jan 09), Dave Wood said:
On (08:38 07/01/09), Dave Wood <address@hidden> put forth the proposition:
> I seem to be unable to change my function keys in my custom
> terminfo file. I don't get any errors with tic.
> I am trying to set them like
> kf1=\E[11~, kf2=\E[12~, etc
> rather than the default
> kf1=\E[A~ or whatever, which gives a problem with vim keybinds.
> But they still show the old [[[A etc. This is for TERM=linux.
> Any ideas how I can do this, or why my terminfo is ignoring those F keys?

There must be some reason why my F1 to F5 produce [[A [[B etc. Is this
normal for a console? Why are my terminfo settings being ignored?
F6 - F12 work fine...

As far as keystrokes go, terminfo isn't a settings database that
terminal emulators use to decide what escape sequences to send when you
press certain keys; it's a translation table that applications use to
convert escape sequences back into keystrokes.  If you want your
emulator to emit something other than Esc [ A when you press F1, you'll
have to edit its source (or if you're lucky, it can be configured with
a config file or X resources).  Changing terminfo away from what your
emulator emits will only confuse your application.

I'm not using X, this is plain linux console. I notice in /etc/termcap:


for linux console. I tried changing these too but no effect. You mention
editing source, but what is the point of termcap/terminfo if those entries
get ignored and the console emits what it likes? I don't understand this at
all. I thought the whole point of terminfo was that is was to do just that?

        Dan Nelson

Bug-ncurses mailing list

The Army has carried the American ... ideal to its logical conclusion.
Not only do they prohibit discrimination on the grounds of race, creed
and color, but also on ability.
                -- T. Lehrer

reply via email to

[Prev in Thread] Current Thread [Next in Thread]