offansi_escape_codeswindows_api: if (is_windows) WindowsApi else voidThis is not the same as being run on windows because other terminals exist like MSYS/git-bash.
pub const TerminalMode = union(enum) {
off,
ansi_escape_codes,
/// This is not the same as being run on windows because other terminals
/// exist like MSYS/git-bash.
windows_api: if (is_windows) WindowsApi else void,
pub const WindowsApi = struct {
/// The output code page of the console.
code_page: windows.UINT,
};
}