[lug] terminal wrapping

Dean Brissinger Dean.Brissinger at vexcel.com
Thu Jan 6 14:14:01 MST 2005


On Thu, 2005-01-06 at 13:29 -0700, Jani Averbach wrote:
> On 2005-01-06 13:09-0700, Jason Davis wrote:
> > Hello,
> >  When i ssh to my Debian box and use the terminal, text is wrapping to
> > the same line. When I type a command longer than my term is wide , the
> > command starts overwriting what I have typed on the same line ....
> > doesn't jump to the next line. How can I fix this?
> > 
> 
> Put this somewhere on your /etc/profile, ~/.bash_profile, or ~/.bashrc
> 
> # This make bash newline works correctly
> shopt -s checkwinsize


On c shells set your term to vt100 unless you know a better termcap
entry to use (like xterm).

	% set term = vt100

By all means letting your shell control the terminal is the easiest.
For older systems with old shells that don't know better you can use the
common terminal configuration tools (sometimes still needed for dialup):

	eval `tset -s vt100`

stty can be used also.  Though it's syntax varies pretty dramatically
between unices. I usually start with the command below and tweak it to
the local version of stty (this example would make your remote
connection to an SGI happy).

	stty intr ^C susp ^Z erase ^H rows 24 cols 80





More information about the LUG mailing list