From a33e3cb8e19b71ccf30f3dc4131eb0ba32b6d735 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sun, 7 Apr 2019 14:34:33 +0100 Subject: vi: use alternate screen buffer Implement the "ESC[?1049h" and "ESC[?1049l" ANSI escape sequences to switch between the alternate and normal screen buffers. This allows vi to restore the original screen contents on exit. --- editors/vi.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'editors/vi.c') diff --git a/editors/vi.c b/editors/vi.c index 91a3e0ac1..a8b4dc5a4 100644 --- a/editors/vi.c +++ b/editors/vi.c @@ -1020,12 +1020,7 @@ static void refresh(int full_screen) static void redraw(int full_screen) { // cursor to top,left; clear to the end of screen -#if !ENABLE_PLATFORM_MINGW32 write1(ESC_SET_CURSOR_TOPLEFT ESC_CLEAR2EOS); -#else - write1(ESC_SET_CURSOR_TOPLEFT); - reset_screen(); -#endif screen_erase(); // erase the internal screen buffer last_status_cksum = 0; // force status update refresh(full_screen); // this will redraw the entire display -- cgit v1.2.3-55-g6feb