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:
@@ -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
|
||||
|
Reference in New Issue
Block a user