You are not logged in.
Pages: 1
Im trying to run a bash script that uses special symbols to give the desired affect.
someone suggested:
They are unicode symbols: yout $TERM needs to support them and you also have to have your locale set correctly
Im refering to : https://bbs.archlinux.org/viewtopic.php?id=84386
my locales looks like: en_US.UTF-8 UTF-8
I was trying to read up on unicode symbols and such but didnt get very far
I was looking in : https://wiki.archlinux.org/index.php/Locale
and https://wiki.archlinux.org/index.php/Fonts#Font_formats
thanks
Offline
Are you running this in your tty or some X terminal? Which one?
What's the output of 'localectl' 'cat /etc/vconsole.conf'?
Offline
So you know what information we need, but you didn't provide it? What is your TERM set to? Is this in a tty or in an terminal emulator in X, if the latter, which one?
I don't know what that means when you say that's what your locales look like, what command/file did that come from? The actual output of `locale` or `localectl` would be useful (I prefer the former).
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
sorry about the long time between posts
thanks.
Im using konsole in kde
I also tried xterm
localectl
System Locale: LANG=C
VC Keymap: n/a
X11 Layout: n/a
$ cat /etc/vconsole.conf
cat: /etc/vconsole.conf: No such file or directory
locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
Last edited by splippity (2013-07-12 22:57:39)
Offline
Switch to a utf8 locale :-)
Offline
What is your TERM set to? Is this in a tty or in an terminal emulator in X, if the latter, which one?
I don't know what that means when you say that's what your locales look like, what command/file did that come from?
And why did you say
my locales looks like: en_US.UTF-8 UTF-8
?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
@cfr
That's what he uncommented in /etc/locale.gen.
Offline
yes thats what I uncommented and then I generated the locale so what did I do wrong?
Offline
yes thats what I uncommented and then I generated the locale so what did I do wrong?
Offline
ok I followed those directions by setting it to: LANG="en_US.UTF-8"
will I now be able to have the symbols display properly in konsole?
Offline
ok I followed those directions by setting it to: LANG="en_US.UTF-8"
will I now be able to have the symbols display properly in konsole?
Why not test it?
Offline
ok I followed those directions by setting it to: LANG="en_US.UTF-8"
will I now be able to have the symbols display properly in konsole?
Sanity test... run "locale -a". If you get output there that includes en_US.utf8, then you did it right. If not, you're still missing a step.
Offline
> locale -a
C
en_US.utf8
POSIX
but the bash script still wont show the correct characters.
Was that just a part 1?
thanks
Offline
What's the output of 'locale' and 'localectl'?
Offline
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=
localectl
System Locale: LANG=en_US.UTF-8
VC Keymap: n/a
X11 Layout: n/a
Offline
It may be a font issue then.
Can you post the script you're trying to get to run properly?
Offline
Offline
I can see the unicode symbols properly both in X and in the tty:
┌───┤karol@black:5├─────────────┤├──
└─┤12:07 AM|$├─> 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=C
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES=C
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=
┌───┤karol@black:5├─────────────┤├──
└─┤12:07 AM|$├─> localectl
System Locale: LANG=en_US.UTF-8
LC_COLLATE=C
LC_MESSAGES=C
VC Keymap: pl
X11 Layout: n/a
┌───┤karol@black:5├─────────────┤├──
└─┤12:07 AM|$├─> cat /etc/vconsole.conf
KEYMAP=pl
#FONT=lat2-16
FONT=Lat2-Terminus16
FONT_MAP=8859-2
I use Terminus font in X too.
What's the output of
echo $TERM
?
Offline
echo $TERM
xterm
Offline
when I try cat /etc/vconsole.conf I get no such file exists
Offline
You shouldn't actually need vconsole.conf as long as you are sticking to the defaults. It is only when you want to change something that that file becomes necessary. But hey, maybe actually using it might help... I've got no other ideas.
Offline
xterm doesn't support unicode, does it? Unless it's called as uxterm.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
xterm doesn't support unicode, does it? Unless it's called as uxterm.
That's what I thought, but
┌───┤karol@black:6├─────────────┤├──
└─┤01:39 AM|$├─> echo $TERM
xterm
Edit: If I start it as uxterm, it still returns xterm as the $TERM (but htop shows it's 'xterm -class UXTerm -title uxterm -u8', not just 'xterm').
Last edited by karol (2013-07-17 23:44:23)
Offline
Xterm also supports utf-8 if your system locale is set properly, and the xterm resource 'locale' is set to true:
XTerm*locale: true
With my setup of xterm, the pcf version of Terminus renders differently depending whether you use xft or xlfd naming. I usually use this text, http://www.cl.cam.ac.uk/~mgk25/ucs/exam … 8-demo.txt, to test font coverage. Terminus, using either xft or xlfd, is missing some of the diagonal and X-shaped box characters.
With xft, or FreeType, many of the straight line box-drawing glyphs are missing.
$ xterm -fa "Terminus:size=12"
But most of the glyphs do show with xlfd:
$ xterm -fn "-*-terminus-medium-*-*-*-*-140-*-*-*-*-iso10646-*"
I would guess there's an incompatibility with Terminus and FreeType. That might explain the faults found with Konsole.
Offline
Sorry to revive this thread, but this problem always anoying me. At last I found the solution, it was installing some fonts and restarting:
pacman -S ttf-freefont ttf-liberation ttf-droid
Offline
Pages: 1