package core:terminal

⌘K
Ctrl+K
or
/

    Overview

    Interaction with the command line interface (CLI) of the system.

    Packages 1

    ansiConstant references to many widely-supported ANSI escape codes.

    Index

    Types (1)
    Constants (0)

    This section is empty.

    Procedures (1)
    Procedure Groups (0)

    This section is empty.

    Types

    Color_Depth ¶

    Color_Depth :: enum int {
    	None,       // No color support
    	Three_Bit,  // 8 colors
    	Four_Bit,   // 16 colors
    	Eight_Bit,  // 256 colors
    	True_Color, // 24-bit true color
    }
     

    This describes the range of colors that a terminal is capable of supporting.

    Constants

    This section is empty.

    Variables

    color_depth ¶

    color_depth: Color_Depth
     

    This value reports the color depth support as reported by the terminal at the start of the program.

    color_enabled ¶

    color_enabled: bool
     

    This is true if the terminal is accepting any form of colored text output.

    is_dumb ¶

    is_dumb: bool
     

    This is true if the terminal is dumb, i.e. cannot process ANSI control sequences.

    Procedures

    is_terminal ¶

    @(require_results)
    is_terminal :: proc(f: $T) -> bool {…}
     

    Returns true if the File is attached to a terminal.

    This is normally true for os.stdout and os.stderr unless they are redirected to a file.

    Procedure Groups

    This section is empty.

    Source Files

    Generation Information

    Generated with odin version dev-2026-10 (vendor "odin") Windows_amd64 @ 2026-10-10 00:25:51.511820200 +0000 UTC