[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Border problem
From: |
Hohl, Gerrit |
Subject: |
Border problem |
Date: |
Fri, 13 Mar 2015 16:26:29 +0100 |
Hello everyone,
I have a 2nd question, this time regarding borders with ncurses.
I've written a small program with curses. It is started during the boot process
before the login is shown to the user.
Therefore I have edited /etc/init/tty1.conf and the last line looks like this
now:
exec /sbin/rungetty -u root -d 5 tty1 /usr/local/myprogram
My program draws borders around windows using the constants
- ACS_ULCORNER
- ACS_HLINE
- ACS_URCORNER
- ACS_VLINE
- ACS_LLCORNER
- ACS_LRCORNER
It works well and I get some nice block elements like this:
┌─┐
│ │
└─┘
If it doesn't show up correctly here are the block elements I'm taking about:
http://www.utf8-chartable.de/unicode-utf8-table.pl
But if I start the same program from the bash I get only the POSIX default
characters for my window borders:
+-+
| |
+-+
If I'm using PuTTY it's even worse. Then I get some letters instead.
Luckily I could fix this by modifying PuTTY's configuration: I changed
"Connection -> Data -> Terminal-type string" from "xterm" to "putty".
Another way is to set an environment variable:
export NCURSES_NO_UTF8_ACS=1
It has the same effect: Instead of the letters I get the plus, minus and so on.
But in the both cases - when I use a bash directly at the machine and when I
use PuTTY for a remote session - I'm not able to get these wonderful shaped
block elements.
As it works before the login prompt I guess it's not a general problem. There
must be something which triggers that behavior in ncurses.
Any hints?
Regards
Gerrit
- Border problem,
Hohl, Gerrit <=