LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-30-2007, 05:37 PM   #1
rsashok
Member
 
Registered: Nov 2006
Location: USA, CA
Distribution: RedHat, Debian
Posts: 202

Rep: Reputation: 31
Konsole wraps up long command to the same line


Strange problem... . I am using Red Hat Enterprise Linux AS release 4 with KDE GUI. I am using Konsole for my terminal. When I type long command instead of wrapping to a new line it wraps back onto the same line not even close to the edge of the terminal, and overwrites my prompt instead. If I continue typing sequential wrapping is normal. I tried different schemas and terminal emulation, but all the same. Any ideas?
Illustration:
prompt>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
then if I continue typing it wraps around and becomes:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

and if I still continue typing it wraps around on a new line:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

What I expect:
prompt>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Old 01-30-2007, 06:23 PM   #2
jonnycando
Member
 
Registered: Nov 2006
Location: Virginia
Distribution: OpenSuSE 10.2
Posts: 121

Rep: Reputation: 15
That's weird. I did not get such an effect in Konsole on my box. Try Xterm and see if that is not better. Try resizing the window that Konsole is in.
 
Old 01-30-2007, 07:41 PM   #3
rsashok
Member
 
Registered: Nov 2006
Location: USA, CA
Distribution: RedHat, Debian
Posts: 202

Original Poster
Rep: Reputation: 31
I figure out my problem. I have colored prompt, and I used as a template standard .bashrc taken from the web. In which blue defined as BLUE='\e[0;34m' and no color as NC=\e[0m', and then I use for prompt definition something like this:

PS1="${BLUE}\h:\${PWD}>>"

To fix the problem I redefined colors as:

BLUE='\[\e[0;34m\]'
NC=\[\e[0m\]'

and this fixed the problem. I am too lazy to find out what was wrong before and what is fixed later. But I'd suggest to anybody to use color prompts at least when you are root. I use red color prompt when I am 'rooting' on my computer, and it makes me more cautious when I am trying to do something radical.

Last edited by rsashok; 01-30-2007 at 07:44 PM.
 
  


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
long comand line script i think pigswillfly Programming 1 04-02-2006 08:05 AM
Write long file name in a line shadkong Linux - General 2 04-09-2005 08:52 PM
vi error - line too long ranger225 Linux - Newbie 3 11-26-2004 08:41 AM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM
irssi in konsole only replaces last line (Mandrake 10.0) marenkiapina Linux - Software 2 05-18-2004 02:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:15 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration