| ... | @@ -36,7 +36,12 @@ pub fn main() !void { | ... | @@ -36,7 +36,12 @@ pub fn main() !void { |
| 36 | | 36 | |
| 37 | if (!build_options.bootstrap and builtin.os.tag == .windows) { | 37 | if (!build_options.bootstrap and builtin.os.tag == .windows) { |
| 38 | const console = win32.system.console; | 38 | const console = win32.system.console; |
| 39 | _ = console.SetConsoleMode(std.io.getStdOut().handle, console.ENABLE_VIRTUAL_TERMINAL_PROCESSING); | 39 | const h_out = console.GetStdHandle(console.STD_OUTPUT_HANDLE); |
| | 40 | _ = console.SetConsoleMode(h_out, console.CONSOLE_MODE.initFlags(.{ |
| | 41 | .ENABLE_PROCESSED_INPUT = 1, //ENABLE_PROCESSED_OUTPUT |
| | 42 | .ENABLE_LINE_INPUT = 1, //ENABLE_WRAP_AT_EOL_OUTPUT |
| | 43 | .ENABLE_ECHO_INPUT = 1, //ENABLE_VIRTUAL_TERMINAL_PROCESSING |
| | 44 | })); |
| 40 | } | 45 | } |
| 41 | | 46 | |
| 42 | inline for (std.meta.declarations(available)) |decl| { | 47 | inline for (std.meta.declarations(available)) |decl| { |