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

Re: xterm not dealing with long lines of typing correctly



"Daniel B." <REMOVEdanielTHIS@fgm.com> said on Fri, 27 Jan 2006 11:59:30 -0500:
> Richard Lyons wrote:
> 
> > On Wednesday, 25 January 2006 at 10:19:52 -0600, Andrew Nelson wrote:
> > 
> >>Hello all,
> >>
> >>Recently I've noticed my xterm's doesn't seem to be handling line wrapping of
> >>commands correctly.  Instead of wrapping to a new line the characters start
> >>wrapping back on the current line.
> > 
> > 
> > 
> > I've noticed this intermittently over a long time.  I note that resizing
> > the window -- enlarging it  by a minute amount -- seems to overcome the
> > problem when it occurs.
> 
> Yeah, that sounds like a bash problem.  In some cases, if I re-size a
> window while a foreground command is executing, then if I edit a command
> line that's long enough to wrap, bash doesn't seem to know about the
> new window size (it wraps wrong).

shopt -s checkwinsize

Why it's not default in bash, I wouldn't have a clue...

But this option appears to be set by default in debian in
/etc/bash.bashrc, anyway...



Reply to: