diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/vte.c | 8 |
2 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,5 @@ +2002-06-19 nalin + * src/vte.c: Clear the alternate screen when switching to it. 2002-06-18 nalin * src/vte.c: Fix refs/derefs with IOChannels and sources. Clean up I/O GIConv descriptors at finalize-time. @@ -3374,6 +3374,14 @@ vte_sequence_handler_decset_internal(VteTerminal *terminal, break; case 47: case 1047: + /* Clear the alternate screen if we're switching + * to it. */ + if (set) { + vte_sequence_handler_clear_screen(terminal, + NULL, + 0, + NULL); + } /* Reset scrollbars and repaint everything. */ vte_terminal_adjust_adjustments(terminal); vte_invalidate_all(terminal); |