From 58a14963479cb198447869585c538e9426af1b9c Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Tue, 21 May 2002 18:31:32 +0000 Subject: Get the initial cursor position correct so we don't start back at 0,0 when wsdisplay attaches. --- sys/arch/sparc64/dev/creator.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'sys/arch/sparc64') 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; -- cgit v1.2.3