Skip to content

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

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

pubfnsupportsAnsiEscapeCodes(self: File) bool {
if (builtin.os.tag==.windows) {
returnos.isCygwinPty(self.handle);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    os-windowsMicrosoft 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