[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ncurses-bug
Subject:    Re: terminfo, function keys and linux console
From:       Dave Wood <dave () unrealize ! co ! uk>
Date:       2009-01-09 10:36:03
Message-ID: 20090109103603.GA20311 () Junius
[Download RAW message or body]

On (22:38 08/01/09), Mike Gran <spk121@yahoo.com> 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.



_______________________________________________
Bug-ncurses mailing list
Bug-ncurses@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-ncurses


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic