diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-05-21 18:31:32 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-05-21 18:31:32 +0000 |
commit | 58a14963479cb198447869585c538e9426af1b9c (patch) | |
tree | 5d0cf58b6498db57cbadecbc8afe18fdb69e968f /sys | |
parent | 176c085a381e99c95845250e221e60744c3a1ec4 (diff) |
Get the initial cursor position correct so we don't start back at 0,0 when
wsdisplay attaches.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/dev/creator.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/creator.c b/sys/arch/sparc64/dev/creator.c index 83335e99e38..6e7eb1bc72f 100644 --- a/sys/arch/sparc64/dev/creator.c +++ b/sys/arch/sparc64/dev/creator.c @@ -1,4 +1,4 @@ -/* $OpenBSD: creator.c,v 1.3 2002/05/21 15:46:07 jason Exp $ */ +/* $OpenBSD: creator.c,v 1.4 2002/05/21 18:31:31 jason Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -218,8 +218,17 @@ creator_attach(parent, self, aux) sc->sc_rasops.ri_ops.alloc_attr(&sc->sc_rasops, 0, 0, 0, &defattr); if (console) { + int *ccolp, *crowp; + + if (romgetcursoraddr(&crowp, &ccolp)) + ccolp = crowp = NULL; + if (ccolp != NULL) + sc->sc_rasops.ri_ccol = *ccolp; + if (crowp != NULL) + sc->sc_rasops.ri_crow = *crowp; + wsdisplay_cnattach(&creator_stdscreen, &sc->sc_rasops, - 0, 0, defattr); + sc->sc_rasops.ri_ccol, sc->sc_rasops.ri_crow, defattr); } waa.console = console; |