Skip to main content

Module terminal

Module terminal 

Source
Expand description

Cross-platform terminal initialization: UTF-8 console, ANSI colors, NO_COLOR. Cross-platform terminal initialization: UTF-8, ANSI colors, NO_COLOR.

Functionsยง

init_console
Initializes the console for correct UTF-8 output and ANSI escape support. On non-Windows platforms this is a no-op because modern Unix terminals handle both natively.
should_use_ansi
Returns whether ANSI escape codes should be emitted to stderr.