Skip to content

Commit

Permalink
win,tty: revert support for ANSI code pass-through
Browse files Browse the repository at this point in the history
Reverts PR libuv#1143
Refs: JuliaLang/julia#27267
Refs: JuliaLang/julia#26894

(cherry picked from commit 587ebd3)
  • Loading branch information
vtjnash authored and musm committed Jul 8, 2020
1 parent fb2ba6f commit fc5bacc
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/win/tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -2262,20 +2262,7 @@ int uv_tty_reset_mode(void) {
* 10 version 1511, build number 10.0.10586.
*/
static void uv__determine_vterm_state(HANDLE handle) {
DWORD dwMode = 0;

if (!GetConsoleMode(handle, &dwMode)) {
uv__vterm_state = UV_UNSUPPORTED;
return;
}

dwMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
if (!SetConsoleMode(handle, dwMode)) {
uv__vterm_state = UV_UNSUPPORTED;
return;
}

uv__vterm_state = UV_SUPPORTED;
uv__vterm_state = UV_UNSUPPORTED;
}

static DWORD WINAPI uv__tty_console_resize_message_loop_thread(void* param) {
Expand Down

0 comments on commit fc5bacc

Please sign in to comment.