changeset 19868:a2fa2fc0f403 v8.2.0490

patch 8.2.0490: Win32: VTP doesn't respect 'restorescreen' Commit: https://github.com/vim/vim/commit/0afdcf8601792ee751984265b49fc2ca6f8ea858 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 1 18:29:10 2020 +0200 patch 8.2.0490: Win32: VTP doesn't respect 'restorescreen' Problem: Win32: VTP doesn't respect 'restorescreen'. Solution: Use escape codes to switch to alternate screen. (Nobuhiro Takasaki, closes #5872)
author Bram Moolenaar <Bram@vim.org>
date Wed, 01 Apr 2020 18:30:03 +0200
parents 10a4e7a33b76
children 8c8c7c532424
files src/os_win32.c src/version.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -5431,6 +5431,9 @@ termcap_mode_start(void)
     if (g_fTermcapMode)
 	return;
 
+    if (!p_rs && USE_VTP)
+	vtp_printf("\033[?1049h");
+
     SaveConsoleBuffer(&g_cbNonTermcap);
 
     if (g_cbTermcap.IsValid)
@@ -5530,6 +5533,9 @@ termcap_mode_end(void)
 	SetConsoleCursorPosition(g_hConOut, coord);
     }
 
+    if (!p_rs && USE_VTP)
+	vtp_printf("\033[?1049l");
+
     g_fTermcapMode = FALSE;
 }
 #endif // FEAT_GUI_MSWIN
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    490,
+/**/
     489,
 /**/
     488,