From: evansmp@uhura.aston.ac.uk (Mark Evans) Subject: Re: linux-0.98.3 termcap problem Date: 4 Nov 1992 08:23:14 GMT
NU013809@NDSUVM1.BITNET (Greg Wettstein) writes:
: Speaking of TERMCAP problems I am wondering if anyone has noticed this yet.
:
: According to the discussions here and on the mailing list I decided to
: always refer to our Linux machines as VT220's when I logged onto other
: systems which use TERMCAP style entries. console is great for Linux but of
: course unknown to other systems.
:
: After logging into a couple of systems I suddenly noticed that the virtual
: console was restricting itself to 24 lines. For example if less is used
: to view a file and the sh prompt is on the bottom line of the screen the
: entire output gets displayed on the bottom line of the screen. Using
: less with the prompt at the top of the screen causes less to use the
: console as if it had 24 lines.
The offending command is tset this command will initialise
the enviroment variables TERM and TERMCAP
(it will also send, what it thinks to be, the correct initialisation
codes to the terminal)
your VT220 termcap probably contains co#80 and li#24,
which will set the terminal to 24x80.
removing any tset commands from the login sequence (this is a bit more
tricky if they are in the global login file)
Then setting TERM and setting the screen size by stty should work
(you may need in addition to set TERMCAP to reflect your actual console
size)
: Just a quick comment, perhaps the setterm code/console driver needs to be
: modified to recognize some type of absolute reset sequence. I would
: envision this sequence resetting the virtual console from which it was
: invoked to the same condition it would be in after a boot sequence. This
: would be helpful in this case and also in the case when garbage gets
: dumped to the screen causing selection of the alternate character set.
-- ========================================================================= Mark Evans |evansmp@uhura.aston.ac.uk +(44) 21 565 1979 (Home) |evansmp@cs.aston.ac.uk +(44) 21 359 6531 x4039 (Office) |