Skip to main content

init

Function init 

Source
pub fn init()
Expand description

Initialize color output with terminal detection.

Call this once at program startup to enable automatic TTY and NO_COLOR / CLICOLOR detection via yansi. When output is piped or redirected, colors are suppressed.