[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Double line borders
From: |
Thomas Dickey |
Subject: |
Re: Double line borders |
Date: |
Fri, 27 Mar 2015 20:40:32 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Wed, Mar 25, 2015 at 01:24:29PM +0000, Mike Aubury wrote:
> That would mean I'd need to use the wide-character version of ncurses ?
yes - you need the wide-character version
I suppose it would be possible to implement these using something
with one of the code-pages (and with use_legacy_coding), but I did not
consider that when implementing it. In either case (Unicode or otherwise)
the library needs some special knowledge about these characters.
> On 25 March 2015 at 10:49, Thomas Dickey <address@hidden> wrote:
>
> > On Wed, Mar 25, 2015 at 09:57:48AM +0000, Mike Aubury wrote:
> > > Hi,
> > >
> > > Is there a simple way to say I want "double line" borders - rather than
> > the
> > > normal single line ones ?
> >
> > yes/no: you could use the ncurses extension which I added in
> >
> > http://invisible-island.net/ncurses/NEWS.html#t20091003
> >
> > with the box_set function. That is not "simple", but would not be done
> > in a large number of places.
> >
> > > Alternatively - is it possible to adjust the acsc line in the terminfo
> > > entry to get it to do the same thing outside of ncurses ?
> >
> > also yes/not:
> >
> > a) acsc is a mapping between 8-bit and 8-bit values
> >
> > b) the double-line values are not implemented in an 8-bit alternate
> > character
> > set anywhere (that I'm aware of). I documented those here:
> >
> > http://invisible-island.net/ncurses/man/curs_add_wch.3x.html
> >
> > but probably should have pointed out in terminfo(5) that there are
> > additional codes which are not part of acsc.
> >
> > In any case, terminals that are "VT100-compatible" do not have unused
> > codes in the existing range to invent new mappings...
> >
> > c) "outside of ncurses" could mean tput - but tput does not do translations
> > using acsc
> >
> > d) alternatively, another application could make a user-defined capability
> > (using "tic -x") such as "wacsc" and assign whatever meaning it needs
> > for that.
> >
> > --
> > Thomas E. Dickey <address@hidden>
> > http://invisible-island.net
> > ftp://invisible-island.net
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.10 (GNU/Linux)
> >
> > iEYEARECAAYFAlUSkqQACgkQcCNT4Pfkjtt1FQCeNplD6Ztc1sUu8GmVolJ1a3QB
> > EKcAni6dIAt68/cM6K0WVYt3eX/k8MCi
> > =CNSV
> > -----END PGP SIGNATURE-----
> >
> >
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature