Problem: Win32: VTP doesn't respect 'restorescreen'.
Solution: Use escape codes to switch to alternate screen. (Nobuhiro
Takasaki, closes #5872)
if (g_fTermcapMode)
return;
+ if (!p_rs && USE_VTP)
+ vtp_printf("\033[?1049h");
+
SaveConsoleBuffer(&g_cbNonTermcap);
if (g_cbTermcap.IsValid)
SetConsoleCursorPosition(g_hConOut, coord);
}
+ if (!p_rs && USE_VTP)
+ vtp_printf("\033[?1049l");
+
g_fTermcapMode = FALSE;
}
#endif // FEAT_GUI_MSWIN
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 490,
/**/
489,
/**/