diff options
| author | Kazutaka YOKOTA <yokota@FreeBSD.org> | 2000-02-11 01:19:44 +0000 |
|---|---|---|
| committer | Kazutaka YOKOTA <yokota@FreeBSD.org> | 2000-02-11 01:19:44 +0000 |
| commit | ade23072299db35dbf1d91c37232ff0ce5d88d99 (patch) | |
| tree | 33f72e76fbe0224434fa4be993ee8364e3a0bfa9 /sys/dev/syscons/syscons.c | |
| parent | dda7c8e323834454e0db2a6060d82643a976991e (diff) | |
Notes
Diffstat (limited to 'sys/dev/syscons/syscons.c')
| -rw-r--r-- | sys/dev/syscons/syscons.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index b648cfbc1e87..af242b3d2bf1 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -718,6 +718,7 @@ scioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) return 0; case CONS_CURSORTYPE: /* set cursor type blink/noblink */ + s = spltty(); if (!ISGRAPHSC(sc->cur_scp)) sc_remove_cursor_image(sc->cur_scp); if ((*(int*)data) & 0x01) @@ -733,11 +734,10 @@ scioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) * are affected. Update the cursor in the current console... */ if (!ISGRAPHSC(sc->cur_scp)) { - s = spltty(); sc_set_cursor_image(sc->cur_scp); sc_draw_cursor_image(sc->cur_scp); - splx(s); } + splx(s); return 0; case CONS_BELLTYPE: /* set bell type sound/visual */ @@ -1791,7 +1791,6 @@ scrn_update(scr_stat *scp, int show_cursor) scp->cursor_oldpos > scp->end) { sc_remove_cursor_image(scp); } - scp->cursor_oldpos = scp->cursor_pos; sc_draw_cursor_image(scp); } else { @@ -2335,6 +2334,8 @@ exchange_scr(sc_softc_t *sc) /* save the current state of video and keyboard */ sc_move_cursor(sc->old_scp, sc->old_scp->xpos, sc->old_scp->ypos); + if (!ISGRAPHSC(sc->old_scp)) + sc_remove_cursor_image(sc->old_scp); if (sc->old_scp->kbd_mode == K_XLATE) save_kbd_state(sc->old_scp); @@ -2386,6 +2387,7 @@ sc_draw_cursor_image(scr_stat *scp) (*scp->rndr->draw_cursor)(scp, scp->cursor_pos, scp->sc->flags & SC_BLINK_CURSOR, TRUE, sc_inside_cutmark(scp, scp->cursor_pos)); + scp->cursor_oldpos = scp->cursor_pos; --scp->sc->videoio_in_progress; } |
