summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorYO4 (Yoshinao Muramatsu) <ysno@ac.auone-net.jp>2021-02-20 00:48:46 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-02-20 00:50:57 +0900
commitb94b7965c420661ed621c146a4efaf43bc3cf50b (patch)
tree48e3de612c1479fb8668e90b0141ec3c3267434e /ruby.c
parenta319c048187bb32677730a6c6e5a1a0fce7fad36 (diff)
Fixed fallback ENABLE_VIRTUAL_TERMINAL_PROCESSING value [Bug #17639]
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index 6146ffeaa5..b94937b0da 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1657,7 +1657,7 @@ tty_enabled(void)
DWORD m;
if (!GetConsoleMode(h, &m)) return 0;
# ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
-# define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x200
+# define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x4
# endif
if (!(m & ENABLE_VIRTUAL_TERMINAL_PROCESSING)) return 0;
return 1;