You are not logged in.

#1 2007-12-02 09:20:58

bakkenbryan
Member
Registered: 2007-10-27
Posts: 9

bashrc... what is wrong? (Solved)

My prompt in urxvt is not looking like the one in gnome-term...
what is wrong?
http://img99.imageshack.us/my.php?image … 356lf0.png
By the way, this is my first post! smile

Last edited by bakkenbryan (2007-12-04 17:05:13)

Offline

#2 2007-12-02 09:28:29

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: bashrc... what is wrong? (Solved)

Can you post your "PS1=" line so we can help more efficiently?

Offline

#3 2007-12-02 09:32:12

bakkenbryan
Member
Registered: 2007-10-27
Posts: 9

Re: bashrc... what is wrong? (Solved)

ups.... sorry here it is:

PS1="\n\[\e[30;1m\]\[\016\]l\[\017\](\[\e[34;1m\]\u@\h\[\e[30;1m\])-(\[\e[34;1m\]\j\[\e[30;1m\])-(\[\e[34;1m\]\@ \d\[\e[30;1m\])->\[\e[30;1m\]\n\[\016\]m\[\017\]-(\[\[\e[32;1m\]\w\[\e[30;1m\])-(\[\e[32;1m\]\$(/bin/ls -1 | /usr/bin/wc -l | /bin/sed 's: ::g') files, \$(/bin/ls -lah | /bin/grep -m 1 total | /bin/sed 's/total //')b\[\e[30;1m\])--> \[\e[0m\]"

Offline

#4 2007-12-02 12:19:14

onearm
Member
From: Anywhere but here
Registered: 2006-07-06
Posts: 359
Website

Re: bashrc... what is wrong? (Solved)

First, welcome.

Second, are you sure that gnome-terminal and urxvt use the same font?


To get something done, a committee should consist of no more than three persons, two of them absent.
--
My Github

Offline

#5 2007-12-02 12:55:36

bakkenbryan
Member
Registered: 2007-10-27
Posts: 9

Re: bashrc... what is wrong? (Solved)

I have tried with a few different fonts now, and the problem is the same.
just so we a clear: me problem is the beginng of the prompt. in urxvt there is just a l and a m. where in gnome-term there a the line that connects the two lines.
if that makes any sense....??

Offline

#6 2007-12-02 23:49:52

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: bashrc... what is wrong? (Solved)

So, your problem lies here:
\[\016\]l\[\017\]
\[\016\]m\[\017\]

On Gnome terminal it produces characters connecting the two lines. On urxvt it prints l & m.  Now I can see where the l & m come from... 

The \[xxx]\ are non-printing terminal characters.  What are they supposed to be doing?  Maybe, urxvt does not understand it either! big_smile

Offline

#7 2007-12-04 15:07:07

bakkenbryan
Member
Registered: 2007-10-27
Posts: 9

Re: bashrc... what is wrong? (Solved)

I cant remember where i stole it from, but im pretty sure i seen something on this forum that looked like it.
So i know it can work, and in urxvt too!

Offline

#8 2007-12-04 17:06:11

bakkenbryan
Member
Registered: 2007-10-27
Posts: 9

Re: bashrc... what is wrong? (Solved)

Changed it to  only print (

Last edited by bakkenbryan (2007-12-04 17:07:06)

Offline

Board footer

Powered by FluxBB