Index: src/sys/dev/syscons/scterm-sc.c =================================================================== RCS file: /home/ncvs/src/sys/dev/syscons/scterm-sc.c,v retrieving revision 1.4.2.10 diff -u -r1.4.2.10 scterm-sc.c --- src/sys/dev/syscons/scterm-sc.c 11 Jun 2001 09:05:39 -0000 1.4.2.10 +++ src/sys/dev/syscons/scterm-sc.c 16 Sep 2002 08:07:29 -0000 @@ -575,6 +575,10 @@ sc->flags |= SC_CHAR_CURSOR; else sc->flags &= ~SC_CHAR_CURSOR; + if (tcp->param[0] & 0x04) + sc->flags |= SC_HIDE_CURSOR; + else + sc->flags &= ~SC_HIDE_CURSOR; } else if (tcp->num_param == 2) { sc->cursor_base = scp->font_size - (tcp->param[1] & 0x1F) - 1; Index: src/sys/dev/syscons/syscons.c =================================================================== RCS file: /home/ncvs/src/sys/dev/syscons/syscons.c,v retrieving revision 1.336.2.14 diff -u -r1.336.2.14 syscons.c --- src/sys/dev/syscons/syscons.c 15 Sep 2002 22:30:44 -0000 1.336.2.14 +++ src/sys/dev/syscons/syscons.c 16 Sep 2002 08:07:29 -0000 @@ -706,6 +706,10 @@ sc->flags |= SC_CHAR_CURSOR; } else sc->flags &= ~SC_CHAR_CURSOR; + if ((*(int*)data) & 0x04) { + sc->flags |= SC_HIDE_CURSOR; + } else + sc->flags &= ~SC_HIDE_CURSOR; /* * The cursor shape is global property; all virtual consoles * are affected. Update the cursor in the current console... @@ -2397,6 +2401,9 @@ void sc_draw_cursor_image(scr_stat *scp) { + if (scp->sc->flags & SC_HIDE_CURSOR) + return; + /* assert(scp == scp->sc->cur_scp); */ ++scp->sc->videoio_in_progress; (*scp->rndr->draw_cursor)(scp, scp->cursor_pos, @@ -2444,6 +2451,9 @@ void sc_set_cursor_image(scr_stat *scp) { + if (scp->sc->flags & SC_HIDE_CURSOR) + return; + if (scp->sc->flags & SC_CHAR_CURSOR) { scp->cursor_base = imax(0, scp->sc->cursor_base); scp->cursor_height = imin(scp->sc->cursor_height, scp->font_size); Index: src/sys/dev/syscons/syscons.h =================================================================== RCS file: /home/ncvs/src/sys/dev/syscons/syscons.h,v retrieving revision 1.60.2.6 diff -u -r1.60.2.6 syscons.h --- src/sys/dev/syscons/syscons.h 15 Sep 2002 22:30:45 -0000 1.60.2.6 +++ src/sys/dev/syscons/syscons.h 16 Sep 2002 08:07:53 -0000 @@ -179,6 +179,7 @@ #define SC_SCRN_BLANKED (1 << 6) #define SC_SAVER_FAILED (1 << 7) #define SC_SCRN_VTYLOCK (1 << 8) +#define SC_HIDE_CURSOR (1 << 9) #define SC_INIT_DONE (1 << 16) #define SC_SPLASH_SCRN (1 << 17)