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

Collection Info

View Source
Collection
core
Path
terminal
Entries
4

Source Files

(hidden platform specific files)

Types

1

Color_Depth #

Source
Color_Depth :: Color_Depth

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

Procedures

1

is_terminal #

Source
@(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.

Variables

2

color_depth #

Source
color_depth: Color_Depth

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

color_enabled #

Source
color_enabled: bool

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