Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Add arg to rcons_init() that when set causes screen to b...
details: https://anonhg.NetBSD.org/src/rev/0f35413c7c34
branches: trunk
changeset: 473089:0f35413c7c34
user: ad <ad%NetBSD.org@localhost>
date: Wed May 19 20:34:19 1999 +0000
description:
Add arg to rcons_init() that when set causes screen to be cleared.
diffstat:
sys/arch/pmax/dev/rcons.c | 6 +++---
sys/arch/sparc/dev/fb.c | 4 ++--
sys/arch/sparc64/dev/fb.c | 4 ++--
sys/dev/rcons/rcons.h | 4 ++--
sys/dev/rcons/rcons_kern.c | 11 +++++------
5 files changed, 14 insertions(+), 15 deletions(-)
diffs (114 lines):
diff -r 0c96a2969dff -r 0f35413c7c34 sys/arch/pmax/dev/rcons.c
--- a/sys/arch/pmax/dev/rcons.c Wed May 19 20:14:46 1999 +0000
+++ b/sys/arch/pmax/dev/rcons.c Wed May 19 20:34:19 1999 +0000
@@ -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 @@
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 @@
rc.rc_height = width;
rc.rc_maxcol = cols;
rc.rc_maxrow = rows;
- rcons_init(&rc);
+ rcons_init(&rc, 1);
}
#endif
diff -r 0c96a2969dff -r 0f35413c7c34 sys/arch/sparc/dev/fb.c
--- a/sys/arch/sparc/dev/fb.c Wed May 19 20:14:46 1999 +0000
+++ b/sys/arch/sparc/dev/fb.c Wed May 19 20:34:19 1999 +0000
@@ -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 @@
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;
diff -r 0c96a2969dff -r 0f35413c7c34 sys/arch/sparc64/dev/fb.c
--- a/sys/arch/sparc64/dev/fb.c Wed May 19 20:14:46 1999 +0000
+++ b/sys/arch/sparc64/dev/fb.c Wed May 19 20:34:19 1999 +0000
@@ -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 @@
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;
diff -r 0c96a2969dff -r 0f35413c7c34 sys/dev/rcons/rcons.h
--- a/sys/dev/rcons/rcons.h Wed May 19 20:14:46 1999 +0000
+++ b/sys/dev/rcons/rcons.h Wed May 19 20:34:19 1999 +0000
@@ -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 @@
/* 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));
diff -r 0c96a2969dff -r 0f35413c7c34 sys/dev/rcons/rcons_kern.c
--- a/sys/dev/rcons/rcons_kern.c Wed May 19 20:14:46 1999 +0000
+++ b/sys/dev/rcons/rcons_kern.c Wed May 19 20:34:19 1999 +0000
@@ -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 @@
}
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_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 */
Home |
Main Index |
Thread Index |
Old Index