Add arg to rcons_init() that when set causes screen to be cleared.

This commit is contained in:
ad 1999-05-19 20:34:19 +00:00
parent 39db587e6f
commit 02bc362e3e
5 changed files with 14 additions and 15 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rcons.c,v 1.27 1999/05/15 13:04:03 ad Exp $ */
/* $NetBSD: rcons.c,v 1.28 1999/05/19 20:34:19 ad Exp $ */
/*
* Copyright (c) 1995
@ -161,7 +161,7 @@ rcons_connect (info)
rc.rc_bell = lk_bell;
rc.rc_width = ri.ri_width;
rc.rc_height = ri.ri_height;
rcons_init(&rc);
rcons_init(&rc, 1);
}
#endif
@ -197,7 +197,7 @@ rcons_connect_native (ops, cookie, width, height, cols, rows)
rc.rc_height = width;
rc.rc_maxcol = cols;
rc.rc_maxrow = rows;
rcons_init(&rc);
rcons_init(&rc, 1);
}
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: fb.c,v 1.34 1999/05/19 19:59:04 ad Exp $ */
/* $NetBSD: fb.c,v 1.35 1999/05/19 20:34:19 ad Exp $ */
/*
* Copyright (c) 1992, 1993
@ -423,7 +423,7 @@ fbrcons_init(fb)
rc->rc_maxrow = ri->ri_rows;
rc->rc_width = ri->ri_emuwidth;
rc->rc_height = ri->ri_emuheight;
rcons_init(rc);
rcons_init(rc, 0);
/* Hook up virtual console */
v_putc = rcons_cnputc;

View File

@ -1,4 +1,4 @@
/* $NetBSD: fb.c,v 1.11 1999/05/19 19:59:04 ad Exp $ */
/* $NetBSD: fb.c,v 1.12 1999/05/19 20:34:19 ad Exp $ */
/*
* Copyright (c) 1992, 1993
@ -299,7 +299,7 @@ fbrcons_init(fb)
rc->rc_maxrow = ri->ri_rows;
rc->rc_width = ri->ri_emuwidth;
rc->rc_height = ri->ri_emuheight;
rcons_init(rc);
rcons_init(rc, 0);
/* Hook up virtual console */
v_putc = rcons_cnputc;

View File

@ -1,4 +1,4 @@
/* $NetBSD: rcons.h,v 1.5 1999/04/13 18:43:17 ad Exp $ */
/* $NetBSD: rcons.h,v 1.6 1999/05/19 20:34:19 ad Exp $ */
/*
* Copyright (c) 1992, 1993
@ -100,7 +100,7 @@ struct rconsole {
/* rcons_kern.c */
void rcons_cnputc __P((int));
void rcons_bell __P((struct rconsole *));
void rcons_init __P((struct rconsole *));
void rcons_init __P((struct rconsole *, int));
/* rcons_subr.c */
void rcons_init_ops __P((struct rconsole *rc));

View File

@ -1,4 +1,4 @@
/* $NetBSD: rcons_kern.c,v 1.8 1999/05/19 20:07:34 ad Exp $ */
/* $NetBSD: rcons_kern.c,v 1.9 1999/05/19 20:34:19 ad Exp $ */
/*
* Copyright (c) 1991, 1993
@ -171,8 +171,9 @@ rcons_belltmr(p)
}
void
rcons_init(rc)
rcons_init(rc, clear)
struct rconsole *rc;
int clear;
{
/* XXX this should go away */
struct winsize *ws;
@ -190,10 +191,8 @@ 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
if (clear)
rcons_clear2eop(rc);
rcons_cursor(rc);
/* Initialization done; hook us up */