aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/vt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/vt.h b/lib/vt.h
index 9248a6c..cb29e0b 100644
--- a/lib/vt.h
+++ b/lib/vt.h
@@ -63,8 +63,13 @@
// XTerm Alternate Screen.
// https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-The-Alternate-Screen-Buffer
//
+#ifdef DFM_CLEAR_EXIT
+#define VT_ALT_SCREEN_Y VT_ED0
+#define VT_ALT_SCREEN_N VT_ED0
+#else
#define VT_ALT_SCREEN_Y VT_ESC "[?1049h"
#define VT_ALT_SCREEN_N VT_ESC "[?1049l"
+#endif
//
// Synchronized Updates.