[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 10:36:03 +0000
User-agent: Mutt/1.5.18 (2008-12-10)

On (22:38 08/01/09), Mike Gran <address@hidden> put forth the proposition:
That's the problem - vim, mutt and other programs don't recognise the F1 -
F5 keys. When I press F1 in vim it thinks I'm pressing 'A' because the sequence is [[A where in most consoles in X for example it's [11~.
So far the only way I've found to fix this is make a keymap that binds
those function keys to keys that I don't use often and then set up mappings
in vim to use those keys rather than F1-5.

It could be that your TERM environment variable is not getting set correctly to 
the console that you are using.

Does "env | grep TERM" give you the expected answer?

Does running vim as "TERM=linux vim" solve the problem?

Yes that works! On further investigation it would seem to be because I had
'export TERM=linux' in my .bashrc. Removing that solves it completely, even
though TERM is still linux.

Thanks, you don't know know how relieved I am to fix that :)

Caution: breathing may be hazardous to your health.

reply via email to

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