[Top][All Lists]

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

Possible to change function key using terminfo/cap?

From: Dave Wood
Subject: Possible to change function key using terminfo/cap?
Date: Fri, 9 Jan 2009 11:27:41 +0000
User-agent: Mutt/1.5.18 (2008-12-10)

I am finding that some apps, like vim, don't work well with the function
keys when inside screen, but some work normally.

It seems to be that vim is seeing the string sent by pressing say F1 as the
sequence \E[OP and that makes it ignore my F1 bind. Instead it goes into
insert mode and enters a 'P', as if I just press 'OP'.

Is there some way of fixing this? I have tried using termcap/terminfo

termcapinfo linux 'civis=\E[?25l\E[?6c, cnorm=\E[?25h\E[?6c,
cvvis=\E[?25h\E[?6c, kf1=\E[11~'

terminfo linux

termcap linux

They don't seem to be making any difference though. The kf1 line still is
set to \E[OP. I'm not sure how these terminfo lines are supposed to work.

Any ideas?

P.S. I have tried using vim with no config file to see if there is a
problems in .vimrc but still get same effect.

God made the Idiot for practice, and then He made the School Board
                -- Mark Twain

reply via email to

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