Drawing boxes on linux console with Curses::UI

L

lowth.chris

I am using the "Curses::UI" module to write an application that will
run on the linux console.

When I draw widgets on the screen, the borders are drawn with plus
signs, hyphens and the "pipe" character. I'd like them to be drawn
instead with the more solid looking characters that applications like
"ntsysv" (a "Newt" application) uses, but cant work out how to do this.

When I run the perl code via a "putty" SSH client, then I get solid
lines. When I run "ntsysv" on the console, I get solid lines (so the
console must be capable of using them), but when I run the perl code on
the console I get the nastier-looking lines.

Any clues on what I need to do to fix this?

I have TERM=linux and LANG=en_GB.UTF-8 set in the environment.

This is Fedora core 2 with perl 5.8.3.

Thanks.
Chris
 
L

lowth.chris

Benway said:
Try running this command prior to running your perl application on
the console.

echo -e \\033%@

If it works just add some code to /etc/bashrc or somewhere in
/etc/profile.d etc... like:

if [ ${TERM} = "console" ]
then
echo -e \\033%@
fi

Thanks for the suggestion; sadly though, it doesnt seem to make any
difference.
Out of interest - where do you get this sequence from, is there a
document somewhere that describes all the possible codes [that's more
of a linux question than perl, I guess]?

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top