LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   writing in terminal: when reaching EOL, no linefeed. Instead overwriting same line (https://www.linuxquestions.org/questions/linux-newbie-8/writing-in-terminal-when-reaching-eol-no-linefeed-instead-overwriting-same-line-616024/)

SlackerJack 01-24-2008 10:55 AM

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
aaaaa

In my case
Code:

aaaakerJack@home$ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
This started when I switched to fluxbox from KDE. In KDE things was working fine (only used Konsole though).

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...

stlouis 01-24-2008 11:16 AM

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

SlackerJack 01-24-2008 11:34 AM

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.