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.io.getStdErr()), .on => .escape_codes, .off => .no_color, }; }