[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Screen and Linux box characters
From: |
Stephane Chazelas |
Subject: |
Re: Screen and Linux box characters |
Date: |
Tue, 24 Apr 2007 12:46:21 +0100 |
User-agent: |
Mutt/1.5.6i |
On Tue, Apr 24, 2007 at 11:45:49AM +0100, Richard Cryer wrote:
> Hi.
>
>
>
> I use screen 4.0.2 on various Linux versions ranging from Redhat 7 up to
> Redhat Enterprise 4.
>
>
>
> However, it seem that Redhat 8 and onwards has a problem in that it
> won't let me display box characters, something that the application we
> run relys on to display the screen layouts correctly.
[...]
I'd suspect your terminfo entry for "linux" (or whatever $TERM
is before you start screen) is incorrect.
$ infocmp -L1 | grep -e charset -e acs -e Recon
should give you something like:
# Reconstructed via infocmp from file: /lib/terminfo/l/linux
acs_chars=+\020\054\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
enter_alt_charset_mode=\E[11m,
enter_pc_charset_mode=\E[11m,
exit_alt_charset_mode=\E[10m,
exit_pc_charset_mode=\E[10m,
Those tell screen or any application using the terminfo database
to find out about terminal capabilities how to display the
graphic characters.
You may also want to check that screen has been built to use the
terminfo database.
A strace -fe open -o /tmp/strace.out screen
Should tell you whether screen opens /lib/terminfo/l/linux or
some termcap file instead.
If it uses termcap, I would recompile screen so that it links
against ncurses or at least a ncurses version of libtermcap, as
those seem to be the the ones giving the best results.
Cheers,
Stéphane