authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-08-01 12:00:07 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-08-01 12:00:07 -07:00
log3511abc59c943b24791b474a88ae2d416fe62fbc
tree77c7c9d0267844ecb9b1d98cb2f32c2e9649ab4f
parent193eb240057b62532faa8340117e3c5725c3b9f3

update SetConsoleMode with missing flags


1 files changed, 6 insertions(+), 1 deletions(-)

src/main.zig+6-1
......@@ -36,7 +36,12 @@ pub fn main() !void {
3636
3737 if (!build_options.bootstrap and builtin.os.tag == .windows) {
3838 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 }));
4045 }
4146
4247 inline for (std.meta.declarations(available)) |decl| {