[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: extended ascii

From: Thomas Dickey
Subject: Re: extended ascii
Date: Thu, 31 May 2007 16:05:42 -0400 (EDT)

On Thu, 31 May 2007, Bryan Christ wrote:

well maybe i'm going down the wrong path anyway.  here's the problem...

i run my program on a local, standard linux console and ACS_VLINE is drawn using the minus sign. i shell into another box with ssh (from the same local console) and run the same program, but this time ACS_VLINE corresponds to codepage 437, character C4. why the difference?

It depends on the font that's loaded.  Linux has loadable fonts because
early on there were a lot of people with MS-DOS backgrounds from Europe
who wanted that much capability.  The BSD's didn't go that way since
they had a larger faction of non-Europeans who couldn't benefit by that.
(Just my observation).

i ought to know the difference as much time as i spent mucking around with terminfo, but since the terminfo entry for the linux console does have definitions for acsc, the answer eludes me.

But it doesn't always work.  For systems that have UTF-8 on the console,
that mapping breaks (have to use UTF-8).

Thomas Dickey wrote:
On Thu, 31 May 2007, Bryan Christ wrote:

i was hoping for something portable.  does pdcurses offer this facility?

no (I'm not sure what pdcurses does outside of the standard operations
in this area - judging by McBrine's response, he doesn't fully understand
the question, may need some followup).

Thomas E. Dickey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]