Skip to content

Should handle FORCE_COLOR environment variable #2540

@so1ve

Description

@so1ve

Current implementation

func defaultIsPretty(sys System) bool {
return sys.WriteOutputIsTTY() && sys.GetEnvironmentVariable("NO_COLOR") == ""
}

tries to determine whether the terminal is a TTY. This prevents us from using exec to get colored help text, which makes the output very ugly when creating wrappers for tsgo (such as vue-tsgo).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions