[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fri, 13 Mar 2015 16:26:29 +0100
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
exec /sbin/rungetty -u root -d 5 tty1 /usr/local/myprogram
My program draws borders around windows using the constants
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:
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:
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
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.
- Border problem,
Hohl, Gerrit <=