Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/rcons Don't clear screen upon startup unless we're r...



details:   https://anonhg.NetBSD.org/src/rev/477f3a4fc1d1
branches:  trunk
changeset: 473087:477f3a4fc1d1
user:      ad <ad%NetBSD.org@localhost>
date:      Wed May 19 20:07:34 1999 +0000

description:
Don't clear screen upon startup unless we're running on a pmax (remedies
quirky behaviour of px boards). Shuffle come code in rcons_init_ops() in
order to be more clear.

diffstat:

 sys/dev/rcons/rcons_kern.c |   7 +++++--
 sys/dev/rcons/rcons_subr.c |  15 ++++++---------
 2 files changed, 11 insertions(+), 11 deletions(-)

diffs (62 lines):

diff -r 7fb394ca8bc6 -r 477f3a4fc1d1 sys/dev/rcons/rcons_kern.c
--- a/sys/dev/rcons/rcons_kern.c        Wed May 19 19:59:04 1999 +0000
+++ b/sys/dev/rcons/rcons_kern.c        Wed May 19 20:07:34 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rcons_kern.c,v 1.7 1999/04/13 18:43:17 ad Exp $ */
+/*     $NetBSD: rcons_kern.c,v 1.8 1999/05/19 20:07:34 ad Exp $ */
 
 /*
  * Copyright (c) 1991, 1993
@@ -190,9 +190,12 @@
        rcons_init_ops(rc);
        rc->rc_col = 0;
        rc->rc_row = 0;
+#ifdef pmax
+       /* XXX remedies quirky behaviour with the px boards */
        rcons_clear2eop(rc);
+#endif
        rcons_cursor(rc);
-       
+
        /* Initialization done; hook us up */
        fbconstty->t_oproc = rcons_output;
        /*fbconstty->t_stop = (void (*)()) nullop;*/
diff -r 7fb394ca8bc6 -r 477f3a4fc1d1 sys/dev/rcons/rcons_subr.c
--- a/sys/dev/rcons/rcons_subr.c        Wed May 19 19:59:04 1999 +0000
+++ b/sys/dev/rcons/rcons_subr.c        Wed May 19 20:07:34 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rcons_subr.c,v 1.4 1999/04/22 00:46:36 ad Exp $ */
+/*     $NetBSD: rcons_subr.c,v 1.5 1999/05/19 20:07:34 ad Exp $ */
 
 /*
  * Copyright (c) 1991, 1993
@@ -70,16 +70,13 @@
 rcons_init_ops(rc)
        struct rconsole *rc;
 {
-       u_int ch;
        long tmp;
-       int i;
+       int i, m;
 
-       i = (sizeof(rc->rc_charmap) / sizeof(rc->rc_charmap[0])) - 1;
+       m = sizeof(rc->rc_charmap) / sizeof(rc->rc_charmap[0]);
        
-       for (; i >= 0; i--) {
-               rc->rc_ops->mapchar(rc->rc_cookie, i, &ch);
-               rc->rc_charmap[i] = ch;
-       }
+       for (i = 0; i < m; i++)
+               rc->rc_ops->mapchar(rc->rc_cookie, i, rc->rc_charmap + i);
 
        /* Determine which attributes the device supports. */
        rc->rc_fgcolor = RASTERCONSOLE_FGCOL;
@@ -104,7 +101,7 @@
 rcons_puts(rc, str, n)
        struct rconsole *rc;
        unsigned char *str;
-       int n;
+       int n;
 {
        int c, i, j;
        unsigned char *cp;



Home | Main Index | Thread Index | Old Index