1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2020-04-01 18:29:10 +02:00
parent 25b70c780a
commit 0afdcf8601
2 changed files with 8 additions and 0 deletions

View File

@@ -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