summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--src/vte.c8
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a5e3e70..ef9c6fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/src/vte.c b/src/vte.c
index 34a632d..e5be489 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -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);