screen-users
[Top][All Lists]
Advanced

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

Re: Possible to change function key using terminfo/cap?


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

On (11:27 09/01/09), Dave Wood <address@hidden> put forth the proposition:
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
lines:

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

terminfo linux
 civis=\E[?25l\E[?6c:cnorm=\E[?25h\E[?6c:cvvis=\E[?25h\E[?6c:kf1=\E[11~

termcap linux
  civis=\E[?25l\E[?6c:cnorm=\E[?25h\E[?6c:cvvis=\E[?25h\E[?6c:kf1=\E[11~

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.

NB:

':echo &term' in vim shows 'linux' rather than 'screen.linux'

I have found doing :set &term=xterm-free86 inside vim works but obviously
this is a bit inconvenient, and putting in .vimrc breaks vim when using it
ouside screen.


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



_______________________________________________
screen-users mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/screen-users

--
I've enjoyed just about as much of this as I can stand.





reply via email to

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