|
From: | Thomas Dickey |
Subject: | Re: linux 2.6.x console's terminfo entry |
Date: | Sat, 11 Jul 2020 15:52:27 -0400 |
User-agent: | NeoMutt/20170113 (1.7.2) |
On Tue, Jul 07, 2020 at 07:25:00PM +0200, Ingo Brückl wrote: > Thomas Dickey wrote on Mon, 6 Jul 2020 20:14:34 -0400: > > > but the underscores came from this discussion: > > https://lists.gnu.org/archive/html/bug-ncurses/2006-02/msg00021.html > > This seems to me to have been an interim result during development, because > in https://lists.gnu.org/archive/html/bug-ncurses/2006-03/msg00008.html he > finally names the correct acsc string. I probably overlooked that since it wasn't presented as an updated patch, but rather just a comment. There's lots of stuff to read, including the parallel discussion https://lists.gt.net/linux/kernel/620834 > > >> acsc further reads }c, which prevents printing the UK pound sign and > >> should be }} instead. > > > probably - but to be certain, looking at the kernel source might help > > In drivers/tty/vt/consolemap.c, the "VT100 graphics mapped to Unicode" table > maps } to 0x00a3 which is the Unicode Character 'POUND SIGN' (U+00A3). just checking... this is current https://github.com/torvalds/linux/blob/master/drivers/tty/vt/consolemap.c https://github.com/torvalds/linux/blob/0aea6d5c5be33ce94c16f9ab2f64de1f481f424b/drivers/tty/vt/consolemap.c#L75 and comparing against drivers/char/consolemap.c, in https://mirrors.edge.kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.tar.xz that table is still the same. The underscore '_' maps to 0xa0 in that table, which is no-break-space. It's not necessary, since we're only concerned with the characters used in curses.h :-) Attaching a script used to convert the codes for review, and screenshots of the output (in xterm) and the ncurses test-screen (showing the pound sign, but also the codes that aren't supported in the console font such as not-equals,l s1, s3, s7 and s9). -- Thomas E. Dickey <dickey@invisible-island.net> https://invisible-island.net ftp://ftp.invisible-island.net
graphics.pl
Description: Text Data
graphics.png
Description: PNG image
ncurses.png
Description: PNG image
signature.asc
Description: PGP signature
[Prev in Thread] | Current Thread | [Next in Thread] |