You are not logged in.

#1 2006-11-29 20:53:16

iggy
Member
From: Germany, L.E. - Leipzig
Registered: 2004-10-17
Posts: 367

terminal: diamonds before/after username [solved]

hey!

i have a little problem with terminals (console is fine!). the best way is to look at the shot:

term.png

i'm using terminal (xfce4), but the problem exists also with the gnome-terminal.

here is the relevant line out of my .bashrc:
PS1='[33[1;37m][[33[1;32m[u[33[1;37m]@h W]$ [33[0m]'

i'm using utf-8. i have the same options on my laptop, but there is everything ok!

any ideas?


mfg iggy


sorry for my bad english smile

Offline

#2 2006-11-29 20:58:38

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: terminal: diamonds before/after username [solved]

did you setup the locale on that box, and do the locale gen?


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2006-11-29 21:06:09

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: terminal: diamonds before/after username [solved]

that's strange. i get two left parenthesis in place of the diamonds, like this:

[(user(@host] ~]$

it displays correctly in rxvt and aterm, but i can't see the option in terminal that's making it do that. maybe something in the default xterm settings (meaning default X terminal settings, wherever those are)?

Offline

#4 2006-12-01 01:09:52

iggy
Member
From: Germany, L.E. - Leipzig
Registered: 2004-10-17
Posts: 367

Re: terminal: diamonds before/after username [solved]

set the locales correct!

locale:

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

/etc/locale.gen

en_US.UTF-8     UTF-8
en_US   ISO-8859-1 

mfg


sorry for my bad english smile

Offline

#5 2006-12-01 01:29:22

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: terminal: diamonds before/after username [solved]

my locale is set right, and i also had already done locale-gen. are you saying setting your locale fixed the problem for you?

Offline

#6 2006-12-01 15:28:39

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: terminal: diamonds before/after username [solved]

hmm, actually, i'm noticing that the last field is blank:

sero@homer:~ $ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE=C
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

originally i only had  UTF-8 specified in /etc/locale.gen, because i thought you were only supposed to use one locale. so i uncommented ISO-8859-1 and ran locale-gen again, but i still get the same result. how do i get the LC_ALL field to have a value?


>> /etc/rc.conf:
LOCALE="en_US.utf8"

Offline

#7 2006-12-02 18:12:55

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: terminal: diamonds before/after username [solved]

slackhack wrote:

hmm, actually, i'm noticing that the last field is blank

This is normal.

slackhack wrote:

how do i get the LC_ALL field to have a value?

Set it in ~/.bash_profile


to live is to die

Offline

#8 2006-12-02 19:11:32

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: terminal: diamonds before/after username [solved]

okay, thanks. smile

Offline

#9 2006-12-02 23:28:13

iggy
Member
From: Germany, L.E. - Leipzig
Registered: 2004-10-17
Posts: 367

Re: terminal: diamonds before/after username [solved]

but how we can eleminate the problem? strange is, that this is also in the gnome-terminal.

mfg iggy


sorry for my bad english smile

Offline

#10 2006-12-02 23:47:49

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: terminal: diamonds before/after username [solved]

Compare by yourself:

PS1='[33[1;37m][[33[1;32m[u[33[1;37m]@h W]$ [33[0m]'

correct:

PS1='[e[1;37m][[e[1;32m]u[e[1;37m]@h W]$ [e[0m]'

Note that I replaced 33 with e just for better readability.
Your mistake is in 33[1;32m[ - it should be ]


to live is to die

Offline

#11 2006-12-03 00:30:58

iggy
Member
From: Germany, L.E. - Leipzig
Registered: 2004-10-17
Posts: 367

Re: terminal: diamonds before/after username [solved]

yeah, that was the error! i love u! tongue


sorry for my bad english smile

Offline

Board footer

Powered by FluxBB