LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 05: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, 11:58 AM   #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, 12: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



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

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

All times are GMT -5. The time now is 12:11 AM.

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