Skip to content

[Windows] detect builtin support for VT in supportsAnsiEscapeCodes #5647

@codehz

Description

@codehz

Since win10 has supported VT Sequences, we can detect it from GetConsoleMode.

zig/lib/std/fs/file.zig

Lines 141 to 144 in aa894ce

pub fn supportsAnsiEscapeCodes(self: File) bool {
if (builtin.os.tag == .windows) {
return os.isCygwinPty(self.handle);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    os-windowsstandard libraryThis issue involves writing Zig code for the standard library.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions