summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-09-23 18:10:10 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-09-23 18:10:10 +0000
commit7f125e23dc888aa59d3858398f1d10c7022dd5c7 (patch)
treeaa457c05e202458ac7d1ad01dacd5e6db4030573
parent64bc955665a5f869f76274f1dd0c7be5402e67f0 (diff)
Fix the extra cursor image remaining in the upper left corner of the
screen after it has been cleared. ok fgs@ deraadt@
-rw-r--r--sys/dev/wscons/wsemul_sun.c9
1 files 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);