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.
This commit is contained in:
David Herrmann 2014-10-03 14:30:37 +02:00
parent 884964a963
commit 2ea8d19b21

View 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;