chiark / gitweb /
terminal/screen: mark cursor dirty on enabled/disable
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 3 Oct 2014 12:30:37 +0000 (14:30 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Fri, 3 Oct 2014 13:57:00 +0000 (15:57 +0200)
If we hide or show the cursor, we change visual attributes and have to
mark the underlying cell as dirty. Otherwise, the terminal will not be
redrawn.

src/libsystemd-terminal/term-screen.c

index 5b0562e4c33a26beb819295ef3198d90ba5fb81f..2c881ca8b1c6e832b294f135f8bbb0ec08139993 100644 (file)
@@ -419,6 +419,7 @@ static void screen_mode_change(term_screen *screen, unsigned int mode, bool dec,
                          * TODO
                          */
                         set_reset(screen, TERM_FLAG_HIDE_CURSOR, !set);
                          * TODO
                          */
                         set_reset(screen, TERM_FLAG_HIDE_CURSOR, !set);
+                        screen_age_cursor(screen);
                 }
 
                 break;
                 }
 
                 break;