From 7f125e23dc888aa59d3858398f1d10c7022dd5c7 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 23 Sep 2002 18:10:10 +0000 Subject: Fix the extra cursor image remaining in the upper left corner of the screen after it has been cleared. ok fgs@ deraadt@ --- sys/dev/wscons/wsemul_sun.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/dev/wscons/wsemul_sun.c b/sys/dev/wscons/wsemul_sun.c index d23aa8c4bc6..a3d818f9140 100644 --- a/sys/dev/wscons/wsemul_sun.c +++ b/sys/dev/wscons/wsemul_sun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsemul_sun.c,v 1.10 2002/09/15 12:54:49 fgsch Exp $ */ +/* $OpenBSD: wsemul_sun.c,v 1.11 2002/09/23 18:10:09 miod Exp $ */ /* $NetBSD: wsemul_sun.c,v 1.11 2000/01/05 11:19:36 drochner Exp $ */ /* @@ -282,7 +282,10 @@ wsemul_sun_output_lowchars(edp, c, kernel) break; case ASCII_FF: /* "Form Feed (FF)" */ - wsemul_sun_resetop(edp, WSEMUL_CLEARSCREEN); + (*edp->emulops->eraserows)(edp->emulcookie, 0, edp->nrows, + edp->bkgdattr); + edp->ccol = edp->crow = 0; + CLR(edp->flags, SUNFL_LASTCHAR); break; case ASCII_VT: /* "Reverse Line Feed" */ @@ -826,7 +829,7 @@ wsemul_sun_resetop(cookie, op) break; case WSEMUL_CLEARSCREEN: (*edp->emulops->eraserows)(edp->emulcookie, 0, edp->nrows, - edp->bkgdattr); + edp->bkgdattr); edp->ccol = edp->crow = 0; CLR(edp->flags, SUNFL_LASTCHAR); (*edp->emulops->cursor)(edp->emulcookie, 1, 0, 0); -- cgit v1.2.3