LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Konsole - buffer problem? (https://www.linuxquestions.org/questions/slackware-14/konsole-buffer-problem-741516/)

RaptorX 07-20-2009 05:31 PM

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

RaptorX 07-21-2009 11:58 AM

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?

RaptorX 07-21-2009 12:09 PM

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)\]"


All times are GMT -5. The time now is 02:46 AM.