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
  • Loading branch information
vtjnash committed Nov 14, 2018
1 parent afe1a90 commit 587ebd3
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 @@ -2231,20 +2231,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 587ebd3

Please sign in to comment.