| author | |
| committer | |
| log | e69caaa39f06b7ddf00c1e439c3df91f4efbdef3 |
| tree | 6b4921887efb693b54cc21adc3625a4e4cf87c23 |
| parent | 4163126c01c6439acd7a1f958d49b1ae4eeb9e68 |
| signature |
- From lib/libc/include/any-windows-any/wincon.h#L235
- See also https://learn.microsoft.com/en-us/windows/console/setconsolemode
- Also add DISABLE_NEWLINE_AUTO_RETURN constant which will be used by SetConsoleMode in lib/std/os/windows.
Co-authored-by: Kexy Biscuit <kexybiscuit@biscuitt.in>2 files changed, 2 insertions(+), 0 deletions(-)
lib/std/os/windows.zig+1| ... | @@ -3928,6 +3928,7 @@ pub const CONSOLE_SCREEN_BUFFER_INFO = extern struct { | ... | @@ -3928,6 +3928,7 @@ pub const CONSOLE_SCREEN_BUFFER_INFO = extern struct { |
| 3928 | }; | 3928 | }; |
| 3929 | 3929 | ||
| 3930 | pub const ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x4; | 3930 | pub const ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x4; |
| 3931 | pub const DISABLE_NEWLINE_AUTO_RETURN = 0x8; | ||
| 3931 | 3932 | ||
| 3932 | pub const FOREGROUND_BLUE = 1; | 3933 | pub const FOREGROUND_BLUE = 1; |
| 3933 | pub const FOREGROUND_GREEN = 2; | 3934 | pub const FOREGROUND_GREEN = 2; |
lib/std/os/windows/kernel32.zig+1| ... | @@ -165,6 +165,7 @@ pub extern "kernel32" fn GetCommandLineA() callconv(WINAPI) LPSTR; | ... | @@ -165,6 +165,7 @@ pub extern "kernel32" fn GetCommandLineA() callconv(WINAPI) LPSTR; |
| 165 | pub extern "kernel32" fn GetCommandLineW() callconv(WINAPI) LPWSTR; | 165 | pub extern "kernel32" fn GetCommandLineW() callconv(WINAPI) LPWSTR; |
| 166 | 166 | ||
| 167 | pub extern "kernel32" fn GetConsoleMode(in_hConsoleHandle: HANDLE, out_lpMode: *DWORD) callconv(WINAPI) BOOL; | 167 | pub extern "kernel32" fn GetConsoleMode(in_hConsoleHandle: HANDLE, out_lpMode: *DWORD) callconv(WINAPI) BOOL; |
| 168 | pub extern "kernel32" fn SetConsoleMode(in_hConsoleHandle: HANDLE, in_dwMode: DWORD) callconv(WINAPI) BOOL; | ||
| 168 | 169 | ||
| 169 | pub extern "kernel32" fn GetConsoleOutputCP() callconv(WINAPI) UINT; | 170 | pub extern "kernel32" fn GetConsoleOutputCP() callconv(WINAPI) UINT; |
| 170 | 171 |