LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-24-2008, 10:55 AM   #1
SlackerJack
LQ Newbie
 
Registered: Aug 2006
Distribution: Slackware 11.0
Posts: 28

Rep: Reputation: 15
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...
 
Old 01-24-2008, 11:16 AM   #2
stlouis
Member
 
Registered: Jul 2006
Location: Sault Ste. Marie, Ontario
Distribution: RedHat, CentOS, Fedora Core, Gentoo, Slackware
Posts: 63

Rep: Reputation: 15
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
 
Old 01-24-2008, 11:34 AM   #3
SlackerJack
LQ Newbie
 
Registered: Aug 2006
Distribution: Slackware 11.0
Posts: 28

Original Poster
Rep: Reputation: 15
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.

Last edited by SlackerJack; 01-24-2008 at 11:38 AM. Reason: checkwinsizes is misspelled. Should be checkwinsize
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandriva 2006 (official) nearing EOL ernie Mandriva 2 04-04-2007 10:10 AM
writing line from a session value? ati Programming 3 05-08-2006 03:18 PM
Writing to a specific line in a text file mrobertson Programming 6 12-30-2005 04:02 PM
writing terminal/konsole theme for superkaramba mrchaos Linux - Software 2 05-01-2005 03:23 PM
L2TP/IPEC VPN for EOL GPRS linx win Linux - Networking 0 02-06-2004 01:26 AM


All times are GMT -5. The time now is 07:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration