unionstd.Progress.TerminalMode[src]

Fields

off
ansi_escape_codes
windows_api: if (is_windows) WindowsApi else void

This is not the same as being run on windows because other terminals exist like MSYS/git-bash.

Source Code

Source code
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,
    };
}