aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2021-10-06 21:13:34 +0900
committerGitHub <noreply@github.com>2021-10-06 05:13:34 -0700
commita161559a006bcbc31a2eccbd96df3138e8bc3bc5 (patch)
treee313fcb686df3019e604762c32b31203320b2517 /src/nvim/os
parentacd5e831b6294e54b12c09983bee3da89c0f183a (diff)
downloadrneovim-a161559a006bcbc31a2eccbd96df3138e8bc3bc5.tar.gz
rneovim-a161559a006bcbc31a2eccbd96df3138e8bc3bc5.tar.bz2
rneovim-a161559a006bcbc31a2eccbd96df3138e8bc3bc5.zip
fix(tui): remove dead code #15929
Before #15889, we used our fork of libuv which supports Windows 7/8. After #15889, we use upstream libuv, which does not support Windows 7 and lacks mouse/altbuf support for Windows 8 console.
Diffstat (limited to 'src/nvim/os')
-rw-r--r--src/nvim/os/os_win_console.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/nvim/os/os_win_console.c b/src/nvim/os/os_win_console.c
index 2c9cb699fc..18e2e02b81 100644
--- a/src/nvim/os/os_win_console.c
+++ b/src/nvim/os/os_win_console.c
@@ -46,29 +46,3 @@ void os_replace_stdout_and_stderr_to_conout(void)
const int conerr_fd = _open_osfhandle((intptr_t)conout_handle, 0);
assert(conerr_fd == STDERR_FILENO);
}
-
-void os_set_vtp(bool enable)
-{
- static TriState is_legacy = kNone;
- if (is_legacy == kNone) {
- uv_tty_vtermstate_t state;
- uv_tty_get_vterm_state(&state);
- is_legacy = (state == UV_TTY_UNSUPPORTED) ? kTrue : kFalse;
- }
- if (!is_legacy && !os_has_vti()) {
- uv_tty_set_vterm_state(enable ? UV_TTY_SUPPORTED : UV_TTY_UNSUPPORTED);
- }
-}
-
-static bool os_has_vti(void)
-{
- static TriState has_vti = kNone;
- if (has_vti == kNone) {
- HANDLE handle = (HANDLE)_get_osfhandle(input_global_fd());
- DWORD dwMode;
- if (handle != INVALID_HANDLE_VALUE && GetConsoleMode(handle, &dwMode)) {
- has_vti = !!(dwMode & ENABLE_VIRTUAL_TERMINAL_INPUT) ? kTrue : kFalse;
- }
- }
- return has_vti == kTrue;
-}