PERFORCE change 154740 for review
Ed Schouten
ed at FreeBSD.org
Mon Dec 15 14:16:13 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=154740
Change 154740 by ed at ed_flippo on 2008/12/15 22:15:48
Don't start at row 0 column 0 during boot.
Affected files ...
.. //depot/projects/mpsafetty/sys/dev/syscons/syscons.c#9 edit
Differences ...
==== //depot/projects/mpsafetty/sys/dev/syscons/syscons.c#9 (text+ko) ====
@@ -2741,6 +2741,16 @@
init_scp(sc, sc->first_vty, scp);
sc_vtb_init(&scp->vtb, VTB_MEMORY, scp->xsize, scp->ysize,
(void *)sc_buffer, FALSE);
+
+ /* move cursors to the initial positions */
+ if (col >= scp->xsize)
+ col = 0;
+ if (row >= scp->ysize)
+ row = scp->ysize - 1;
+ scp->xpos = col;
+ scp->ypos = row;
+ scp->cursor_pos = scp->cursor_oldpos = row*scp->xsize + col;
+
if (sc_init_emulator(scp, SC_DFLT_TERM))
sc_init_emulator(scp, "*");
(*scp->tsw->te_default_attr)(scp,
@@ -2764,15 +2774,6 @@
sc_vtb_copy(&scp->scr, 0, &scp->vtb, 0, scp->xsize*scp->ysize);
#endif
- /* move cursors to the initial positions */
- if (col >= scp->xsize)
- col = 0;
- if (row >= scp->ysize)
- row = scp->ysize - 1;
- scp->xpos = col;
- scp->ypos = row;
- scp->cursor_pos = scp->cursor_oldpos = row*scp->xsize + col;
-
if (bios_value.cursor_end < scp->font_size)
sc->dflt_curs_attr.base = scp->font_size -
bios_value.cursor_end - 1;
More information about the p4-projects
mailing list