On Wed, Feb 09, 2000 at 08:35:07PM +0200, Ruslan Ermilov wrote:
> Hi!
> 
> 1. Set cursor "blinking" or "destructive" (SC_BLINK_CURSOR)
> 2. Press Scroll Lock (cursor will go away)
> 3. Switch to another vtyX
> 4. Switch to the original vty, where you pressed Scroll Lock
> 5. Watch the cursor will appear at the same position as it was on vtyX.
> 
The following patch fixes the problem.

-- 
Ruslan Ermilov          Sysadmin and DBA of the
[EMAIL PROTECTED]        United Commercial Bank,
[EMAIL PROTECTED]          FreeBSD committer,
+380.652.247.647        Simferopol, Ukraine

http://www.FreeBSD.org  The Power To Serve
http://www.oracle.com   Enabling The Information Age
Index: scvgarndr.c
===================================================================
RCS file: /usr/FreeBSD-CVS/src/sys/dev/syscons/scvgarndr.c,v
retrieving revision 1.5
diff -u -p -r1.5 scvgarndr.c
--- scvgarndr.c 2000/01/29 15:08:47     1.5
+++ scvgarndr.c 2000/02/09 23:52:53
@@ -225,10 +225,8 @@ vga_txtcursor(scr_stat *scp, int at, int
                                                               at%scp->xsize,
                                                               at/scp->xsize); 
                } else {
-                       if (scp->status & VR_CURSOR_ON)
-                               (*vidsw[adp->va_index]->set_hw_cursor)(adp,
-                                                                      -1, -1);
                        scp->status &= ~VR_CURSOR_ON;
+                       (*vidsw[adp->va_index]->set_hw_cursor)(adp, -1, -1);
                }
        } else {
                scp->status &= ~VR_CURSOR_BLINK;
Index: syscons.c
===================================================================
RCS file: /usr/FreeBSD-CVS/src/sys/dev/syscons/syscons.c,v
retrieving revision 1.335
diff -u -p -r1.335 syscons.c
--- syscons.c   2000/01/29 15:08:49     1.335
+++ syscons.c   2000/02/09 23:52:53
@@ -1806,7 +1806,8 @@ scrn_update(scr_stat *scp, int show_curs
                                                        scp->cursor_pos));
             }
         }
-    }
+    } else
+       sc_remove_cursor_image(scp);
 
 #ifndef SC_NO_CUTPASTE
     /* update "pseudo" mouse pointer image */

Reply via email to