mirror of
https://github.com/ziglang/zig.git
synced 2026-02-07 15:07:12 +00:00
lib/std/os/windows/kernel32: add signature for SetConsoleMode (#18715)
- 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>
This commit is contained in:
parent
4163126c01
commit
e69caaa39f
@ -3928,6 +3928,7 @@ pub const CONSOLE_SCREEN_BUFFER_INFO = extern struct {
|
||||
};
|
||||
|
||||
pub const ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x4;
|
||||
pub const DISABLE_NEWLINE_AUTO_RETURN = 0x8;
|
||||
|
||||
pub const FOREGROUND_BLUE = 1;
|
||||
pub const FOREGROUND_GREEN = 2;
|
||||
|
||||
@ -165,6 +165,7 @@ pub extern "kernel32" fn GetCommandLineA() callconv(WINAPI) LPSTR;
|
||||
pub extern "kernel32" fn GetCommandLineW() callconv(WINAPI) LPWSTR;
|
||||
|
||||
pub extern "kernel32" fn GetConsoleMode(in_hConsoleHandle: HANDLE, out_lpMode: *DWORD) callconv(WINAPI) BOOL;
|
||||
pub extern "kernel32" fn SetConsoleMode(in_hConsoleHandle: HANDLE, in_dwMode: DWORD) callconv(WINAPI) BOOL;
|
||||
|
||||
pub extern "kernel32" fn GetConsoleOutputCP() callconv(WINAPI) UINT;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user