Skip to content
FutureBlitz

    Install

    Import std.term.style

    ConsoleColors

    std.term.style

    function

    Public Function ConsoleColors(stream: StandardStream = StandardStream.OUTPUT): ColorLevel

    How many colors stream shows, which Paint goes by: NONE where it isn't a terminal, or NO_COLOR is set and isn't empty, or TERM is "dumb"; TRUE_COLOR where COLORTERM is "truecolor" or "24bit", or on Windows' console; INDEXED where TERM has "256color" in it; and BASIC otherwise.

    std/term/style.fb, line 399

    Report an issue with this page or with FutureBlitz on GitHub.