You are not logged in.

#1 2010-06-30 21:10:05

Hawkanisten
Member
Registered: 2008-12-25
Posts: 2

Problem with rxvt-unicode line wrapping

I recently reinstalled Arch on my machine, and unlike before, rxvt-unicode seems to have adopted a strange behavior.
When to much text is present on one line, it sort of wraps around itself as such: http://bayimg.com/gANLpaaCG
No configuration is different from before, as I am using the same files from before and no updates for rxvt-unicode has been released this year, so I have no idea what the problem is.
Can anyone help me?

Offline

#2 2010-06-30 21:19:26

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Problem with rxvt-unicode line wrapping

Might be something with your prompt. Can you replicate this problem in a virtual console? If so, add \[ and \] around the colors escape codes in your prompt (assuming you are using bash as your shell).

Last edited by fsckd (2010-06-30 21:20:37)


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2010-06-30 21:45:11

Lars Stokholm
Member
From: Denmark
Registered: 2009-03-17
Posts: 223

Re: Problem with rxvt-unicode line wrapping

My rxvt-unicode does that too sometimes. It helps to resize the the window or to issue a 'reset' command.

Edit: Never mind, what mine does is different. If I had just opened my eyes. cool

Last edited by Lars Stokholm (2010-06-30 21:48:32)

Offline

#4 2010-06-30 22:54:38

Hawkanisten
Member
Registered: 2008-12-25
Posts: 2

Re: Problem with rxvt-unicode line wrapping

fsckd wrote:

Might be something with your prompt. Can you replicate this problem in a virtual console? If so, add \[ and \] around the colors escape codes in your prompt (assuming you are using bash as your shell).

Ah, thank you!

I changed my PS1 from:

PS1='\033[01;32m\][\u@\h \033[01;34m\]\W\033[01;32m\]]\033[01;34m\]\$\[\033[00m\] '

to:

PS1='\[\033[01;32m\][\u@\h \[\033[01;34m\]\W\[\033[01;32m\]]\[\033[01;34m\]\$\[\033[00m\] '

...And the problem went away!

I still don't get why this wasn't a problem before, but at least it's gone now.

Offline

Board footer

Powered by FluxBB