writing in terminal: when reaching EOL, no linefeed. Instead overwriting same line
Hi,
When I write long commands or paste text etc (in a vt) and reach end of line, you normally continue on the next line, like this. Instead, when reaching EOL in a vt (tried terminal (xfce), Konsole and rxvt), cursor is moved to beginning of line but no linefeed. Normal behaviour Code:
SlackerJack@home$ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Code:
aaaakerJack@home$ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa When writing text spanning several lines I notice first lines' EOL stops/is twelwe characters short of a full line. Consecutive EOLs' does produce linefeeds. Moving cursor back to begining of text with the left arrow key is wierd. Don't ask me to try to explain that if I don't have to :-) I've googled without result. Read http://lwn.net/Articles/88243/ Tried `resize`, shopt -s checkwinsizes + more Maybe has to do something with bashrc, terminfo, resize, SIGWINCH, $TERM etc? It is really annoying :-) I need some guidance... |
I believe this is what you are looking for... It corrects broken line wraps in BASH...
http://forums.gentoo.org/viewtopic-t...bash+wrap.html or, your PS1 variable is messed up, look here: http://www.usenet-forums.com/linux-g...ap-around.html Jeff |
Hi
Thanks for replying. I already tried the "shopt -s checkwinsize" from the first link, without success. The second link did it. I had changed my $PS1 variable to include colors, but not done the proper escaping of the "[". Thanks again. |
All times are GMT -5. The time now is 01:39 PM. |