LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-20-2009, 06:31 PM   #1
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Rep: Reputation: 37
Konsole - buffer problem?


Gday,

I am experiencing a small problem with KDE konsole... a while ago when i typed in the console long sentences the console continued in the next line but right now it starts overwriting the existing line...

does anybody has an idea of why that happens?
the only thing that comes to mind is that I changed .bashrc but just to add an environment variable...

Thanks in advance
 
Old 07-21-2009, 12:58 PM   #2
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Original Poster
Rep: Reputation: 37
well I found out that while editing my .bashrc file I did the following:
Code:
PS1='\e[0;32m[\e[1;34m\w\e[0;32m]\e[0m\$ '
instead of the default
Code:
PS1='\u@\h:\w\$ '
what i dont understand is why adding color provokes the issue... I noticed that it overwrites only the first line then it acts normally creating a new line when it reaches the border...

do anybody has ANY idea of why that happens?
 
Old 07-21-2009, 01:09 PM   #3
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Original Poster
Rep: Reputation: 37
using the tput command to add colors does not cause any problems...

can somebody tell my why that happens?

ex:

PS1="\[$(tput setaf 1)\]\u@\h:\w $ \[$(tput sgr0)\]"
 
  


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
Konsole always give SuperUser Konsole - can't get regular shell checkmate3001 Linux - Desktop 3 08-05-2008 11:00 AM
C: convert char buffer received from socket to host endianess buffer kpachopoulos Programming 3 06-07-2007 06:06 PM
What is the difference between the free buffer and buffer in the buffer hash queue? Swagata Linux - Enterprise 0 05-26-2006 12:57 AM
Konsole problem dave`2005 Linux - Newbie 2 02-05-2006 09:28 PM
frame buffer problem sureshraju Linux - Software 3 06-29-2005 10:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration