summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@src.gnome.org>2002-06-19 06:42:43 +0000
committerNalin Dahyabhai <nalin@src.gnome.org>2002-06-19 06:42:43 +0000
commit4c681083ba867cb430c5faa8f97c92117121c6de (patch)
tree056914c87d56b115a3e6292fa617386ea6b63479
parent63d4477daaaecdd71b26ffd4e7199c1c680e553d (diff)
Clear the alternate screen when switching to it.vte_0_4_3
* src/vte.c: Clear the alternate screen when switching to it.
-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);