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.
This commit is contained in:
parent
218af6a342
commit
4bebd3ff7c
|
@ -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(rc)
|
|||
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;*/
|
||||
|
|
|
@ -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 @@ void
|
|||
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 @@ void
|
|||
rcons_puts(rc, str, n)
|
||||
struct rconsole *rc;
|
||||
unsigned char *str;
|
||||
int n;
|
||||
int n;
|
||||
{
|
||||
int c, i, j;
|
||||
unsigned char *cp;
|
||||
|
|
Loading…
Reference in New Issue