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 5b0562e..2c881ca 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);
+                        screen_age_cursor(screen);
                 }
 
                 break;