On Wed, Mar 02, 2005 at 12:28:42PM -0500, A. Khattri wrote
> On Wed, 2 Mar 2005, Peter wrote:
> 
> > Well. I have some screen/vim related problems too. If I try to use vim in
> > screen up, down and other arrow keys do not work properly. May be you know
> > how to solve this issue?
> 
> When re-connecting to a detached screen session I always use "screen -A -d
> -R" (the -A resets the terminal).
> 
> I have no problems using vim with arrow keys under screen.

  Some more data.  Maybe it's because I'm tricking up my system to run
80x48 textmode consoles with 10-pixel-high font, but my system does
*NOT* react well to screen.  Once I've used screen, it seems to reset
the terminal type to behave like vt100 in *ALL* tty's.  vim and mc deal
properly with arrow keys under screen.  This screws up programs that are
*NOT* running under screen, because they still see "TERM=linux" in the
environment.

  I tried "export TERM=vt100" and it fixed vim's behaviour re; arrow
keys outside of screen.  What I absolutely hate about "faithfull vt
emulation" is that the f'ing numeric keypad becomes all function keys,
and you *MUST* use the main keyboard for numbers and /*+- and <ENTER>.
Logging out and logging back in does *NOT* seem to cure this reset to
vt100 mode for non-screen consoles.  I had to reboot to get vim and mc
to work properly in non-screen consoles with "TERM=linux".  Needless to
say, I will *NOT* be experimenting with screen.

-- 
Walter Dnes <[EMAIL PROTECTED]>
An infinite number of monkeys pounding away on keyboards will
eventually produce a report showing that Windows is more secure,
and has a lower TCO, than linux.
--
gentoo-user@gentoo.org mailing list

Reply via email to