From: David Herrmann Date: Fri, 3 Oct 2014 12:30:37 +0000 (+0200) Subject: terminal/screen: mark cursor dirty on enabled/disable X-Git-Tag: v217~333 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=2ea8d19b210b62a02ebcb38f035e074dcba66426 terminal/screen: mark cursor dirty on enabled/disable 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. --- diff --git a/src/libsystemd-terminal/term-screen.c b/src/libsystemd-terminal/term-screen.c index 5b0562e4c..2c881ca8b 100644 --- a/src/libsystemd-terminal/term-screen.c +++ b/src/libsystemd-terminal/term-screen.c @@ -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;