Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/rcons Let `mapchar' in operations set decide if char...
details: https://anonhg.NetBSD.org/src/rev/83f11bdf2799
branches: trunk
changeset: 472121:83f11bdf2799
user: ad <ad%NetBSD.org@localhost>
date: Thu Apr 22 00:46:36 1999 +0000
description:
Let `mapchar' in operations set decide if characters (c > 127) are printable.
diffstat:
sys/dev/rcons/rcons_subr.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (41 lines):
diff -r 944cb337db52 -r 83f11bdf2799 sys/dev/rcons/rcons_subr.c
--- a/sys/dev/rcons/rcons_subr.c Thu Apr 22 00:37:42 1999 +0000
+++ b/sys/dev/rcons/rcons_subr.c Thu Apr 22 00:46:36 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rcons_subr.c,v 1.3 1999/04/13 18:43:17 ad Exp $ */
+/* $NetBSD: rcons_subr.c,v 1.4 1999/04/22 00:46:36 ad Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -58,7 +58,11 @@
extern void rcons_bell(struct rconsole *);
+#if 0
#define RCONS_ISPRINT(c) ((((c) >= ' ') && ((c) <= '~')) || ((c) > 160))
+#else
+#define RCONS_ISPRINT(c) (((((c) >= ' ') && ((c) <= '~'))) || ((c) > 127))
+#endif
#define RCONS_ISDIGIT(c) ((c) >= '0' && (c) <= '9')
/* Initalize our operations set */
@@ -77,10 +81,7 @@
rc->rc_charmap[i] = ch;
}
- /*
- * Determine which attributes the device supports.
- * XXX should determine exactly which _combinations_ work.
- */
+ /* Determine which attributes the device supports. */
rc->rc_fgcolor = RASTERCONSOLE_FGCOL;
rc->rc_bgcolor = RASTERCONSOLE_BGCOL;
rc->rc_supwsflg = 0;
@@ -179,7 +180,6 @@
{
switch (c) {
-
case '\r': /* Carriage return */
rc->rc_col = 0;
break;
Home |
Main Index |
Thread Index |
Old Index