Function get_tty_conf [src]

Prototype

pub fn get_tty_conf(color: Color) std.Io.tty.Config

Parameters

color: Color

Source

pub fn get_tty_conf(color: Color) std.Io.tty.Config { return switch (color) { .auto => std.Io.tty.detectConfig(std.fs.File.stderr()), .on => .escape_codes, .off => .no_color, }; }