Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jan 1997 23:50:00 +1100
From:      davidn@sdev.usn.blaze.net.au (David Nugent)
To:        steve@edmweb.com (Steve Reid)
Cc:        questions@freebsd.org
Subject:   Re: Zsh problem - terminal oddities after Lynx
Message-ID:  <Mutt.19970104235000.davidn@sdev.blaze.net.au>
In-Reply-To: <Pine.BSF.3.95.970103175322.230C-100000@bitbucket.edmweb.com>; from Steve Reid on Jan 3, 1997 18:14:26 -0800
References:  <Pine.BSF.3.95.970103175322.230C-100000@bitbucket.edmweb.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Steve Reid writes:
> I've just installed the Zsh 3.0.2 port. After running Lynx (v2.6) I am
> unable to use the cursor keys on the Zsh command line. Instead of the
> cursor moving, I get a beep and an A, B, C, or D (depending on the key). 
> If I run Less (v321) the problem goes away. 
> 
> This is under FreeBSD 2.1.0-RELEASE running the above programs in a
> color_xterm. I haven't been able to reproduce the problem in a vty.
>
> I'm guessing that this is caused by Lynx sending some kind of escape
> sequence to the terminal, and fixed by some sequence that Less prints.

Good guess.

xterm has two 'modes' for the arrow and other function keys,
the default mode and "application" mode. The problem is that
some apps enable application mode and forget to disable it on
the way out. So, things like shells which assume that that the
mode hasn't been changed or which ignore it altogether don't
work right when you exit such an application.


> Can someone tell me how to fix this? I don't want to have to run Less
> every time I exit Lynx. 

Run 'reset', which will do much the same thing.

I guess you could fiddle your 'xterm' termcap entry to "fix"
it regardless, but this may cause problems with still other
apps. The reset commands puts it back into the default mode.


Regards,

David Nugent - Unique Computing Pty Ltd - Melbourne, Australia
Voice +61-3-9791-9547  Data/BBS +61-3-9792-3507  3:632/348@fidonet
davidn@freebsd.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Mutt.19970104235000.davidn>