diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2026-02-28 14:52:34 +0200 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2026-02-28 14:52:34 +0200 |
| commit | 4fb29c95c61256f78e4b501a3c550b4c92a92a4e (patch) | |
| tree | d521d540befe26339a3482efdcbf78c27d5be965 /lib | |
| parent | ebeb9d5b2757fd6cd238aa8e67c309929366d232 (diff) | |
misc: Add fallback for no XTerm alternate screen
This cannot be determined at runtime without terminfo.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/vt.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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. |