lkml.org 
[lkml]   [1999]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [2.2.x] Obscure framebuffer bug
From
Date
"Petr Vandrovec Ing. VTEI" <VANDROVE@vc.cvut.cz> writes:

|> Hi,
|> did not you change your screen resolution? Readline library used by
|> bash reads screen size only at startup and if you change screen resolution
|> (mainly screen width) after bash starts, it does strange things because
|> of real cursor position does not match with position computed by readline.
|> For example, if readline thinks that line start is one line up and twenty
|> backspaces (because of you typed 100 chars with COLS=80) and you now have
|> COLS=120, it gets printed one line above at column 80...
|> I do not know any other workaround than restarting bash session.

With bash 2.x you can do "shopt -s checkwinsize".

--
Andreas Schwab "And now for something
schwab@suse.de completely different."
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.041 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site