Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/wscons On a VT100, the "scanline 5" character is als...



details:   https://anonhg.NetBSD.org/src/rev/ec779ab30211
branches:  trunk
changeset: 518502:ec779ab30211
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Sat Dec 01 16:07:58 2001 +0000

description:
On a VT100, the "scanline 5" character is also used for box drawing, so
represent it as U+2500 (BOX DRAWINGS LIGHT HORIZONTAL).  This makes NetHack
DECgraphics mode work properly on a wscons console using an IBM-encoded font.

diffstat:

 sys/dev/wscons/unicode.h            |  4 ++--
 sys/dev/wscons/wsemul_vt100_chars.c |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 894b20885203 -r ec779ab30211 sys/dev/wscons/unicode.h
--- a/sys/dev/wscons/unicode.h  Sat Dec 01 15:23:18 2001 +0000
+++ b/sys/dev/wscons/unicode.h  Sat Dec 01 16:07:58 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: unicode.h,v 1.1 1999/02/20 18:20:02 drochner Exp $ */
+/* $NetBSD: unicode.h,v 1.2 2001/12/01 16:07:58 bjh21 Exp $ */
 
 /*
  * some private character definitions for stuff not found
@@ -9,7 +9,7 @@
 #define _e000U 0xe000 /* mirrored question mark? */
 #define _e001U 0xe001 /* scan 1 */
 #define _e002U 0xe002 /* scan 3 */
-#define _e003U 0xe003 /* scan 5 */
+/*      _e003U           scan 5: use U+2500*/
 #define _e004U 0xe004 /* scan 7 */
 #define _e005U 0xe005 /* scan 9 */
 #define _e006U 0xe006 /* N/L control */
diff -r 894b20885203 -r ec779ab30211 sys/dev/wscons/wsemul_vt100_chars.c
--- a/sys/dev/wscons/wsemul_vt100_chars.c       Sat Dec 01 15:23:18 2001 +0000
+++ b/sys/dev/wscons/wsemul_vt100_chars.c       Sat Dec 01 16:07:58 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsemul_vt100_chars.c,v 1.7 2001/11/13 06:17:47 lukem Exp $ */
+/* $NetBSD: wsemul_vt100_chars.c,v 1.8 2001/12/01 16:07:58 bjh21 Exp $ */
 
 /*
  * Copyright (c) 1998
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsemul_vt100_chars.c,v 1.7 2001/11/13 06:17:47 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsemul_vt100_chars.c,v 1.8 2001/12/01 16:07:58 bjh21 Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -58,7 +58,7 @@
        0x0058, 0x0059, 0x005a, 0x005b, 0x005c, 0x005d, 0x005e, 0x00a0,
 /* 6 */        0x25c6, 0x2592, 0x2409, 0x240c, 0x240d, 0x240a, 0x00b0, 0x00b1,
        _e006U, 0x240b, 0x2518, 0x2510, 0x250c, 0x2514, 0x253c, _e001U,
-       _e002U, _e003U, _e004U, _e005U, 0x251c, 0x2524, 0x2534, 0x252c,
+       _e002U, 0x2500, _e004U, _e005U, 0x251c, 0x2524, 0x2534, 0x252c,
        0x2502, 0x2264, 0x2265, 0x03c0, 0x2260, 0x00a3, 0x00b7, 0x007f,
 };
 



Home | Main Index | Thread Index | Old Index