Mercurial > vim
comparison src/os_win32.c @ 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 | 25836c21ccf9 |
children | 8f2bc094acee |
comparison
equal
deleted
inserted
replaced
19867:10a4e7a33b76 | 19868:a2fa2fc0f403 |
---|---|
5429 DWORD cmodein; | 5429 DWORD cmodein; |
5430 | 5430 |
5431 if (g_fTermcapMode) | 5431 if (g_fTermcapMode) |
5432 return; | 5432 return; |
5433 | 5433 |
5434 if (!p_rs && USE_VTP) | |
5435 vtp_printf("\033[?1049h"); | |
5436 | |
5434 SaveConsoleBuffer(&g_cbNonTermcap); | 5437 SaveConsoleBuffer(&g_cbNonTermcap); |
5435 | 5438 |
5436 if (g_cbTermcap.IsValid) | 5439 if (g_cbTermcap.IsValid) |
5437 { | 5440 { |
5438 /* | 5441 /* |
5527 /* | 5530 /* |
5528 * Position the cursor at the leftmost column of the desired row. | 5531 * Position the cursor at the leftmost column of the desired row. |
5529 */ | 5532 */ |
5530 SetConsoleCursorPosition(g_hConOut, coord); | 5533 SetConsoleCursorPosition(g_hConOut, coord); |
5531 } | 5534 } |
5535 | |
5536 if (!p_rs && USE_VTP) | |
5537 vtp_printf("\033[?1049l"); | |
5532 | 5538 |
5533 g_fTermcapMode = FALSE; | 5539 g_fTermcapMode = FALSE; |
5534 } | 5540 } |
5535 #endif // FEAT_GUI_MSWIN | 5541 #endif // FEAT_GUI_MSWIN |
5536 | 5542 |