mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
fix: uv_tty_set_mode failed in Windows #22264
Problem: uv_tty_set_mode on stdout in Windows exits with error.
Cause: Windows cannot set the properties of the output of a tty.
Solution: Remove call to uv_tty_set_mode.
Ref: #21445
Ref: 88634c1405 (r100598822)
This commit is contained in:
@@ -359,12 +359,7 @@ static void terminfo_start(TUIData *tui)
|
|||||||
if (ret) {
|
if (ret) {
|
||||||
ELOG("uv_tty_init failed: %s", uv_strerror(ret));
|
ELOG("uv_tty_init failed: %s", uv_strerror(ret));
|
||||||
}
|
}
|
||||||
#ifdef MSWIN
|
#ifndef MSWIN
|
||||||
ret = uv_tty_set_mode(&tui->output_handle.tty, UV_TTY_MODE_RAW);
|
|
||||||
if (ret) {
|
|
||||||
ELOG("uv_tty_set_mode failed: %s", uv_strerror(ret));
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
int retry_count = 10;
|
int retry_count = 10;
|
||||||
// A signal may cause uv_tty_set_mode() to fail (e.g., SIGCONT). Retry a
|
// A signal may cause uv_tty_set_mode() to fail (e.g., SIGCONT). Retry a
|
||||||
// few times. #12322
|
// few times. #12322
|
||||||
|
Reference in New Issue
Block a user