mirror of
https://github.com/ziglang/zig.git
synced 2026-01-03 12:03:19 +00:00
std.debug.TTY.Config: add yellow
This commit is contained in:
parent
e0561ad79b
commit
7ffdbb3b85
@ -635,6 +635,7 @@ pub const TTY = struct {
|
||||
pub const Color = enum {
|
||||
Red,
|
||||
Green,
|
||||
Yellow,
|
||||
Cyan,
|
||||
White,
|
||||
Dim,
|
||||
@ -659,6 +660,7 @@ pub const TTY = struct {
|
||||
const color_string = switch (color) {
|
||||
.Red => "\x1b[31;1m",
|
||||
.Green => "\x1b[32;1m",
|
||||
.Yellow => "\x1b[33;1m",
|
||||
.Cyan => "\x1b[36;1m",
|
||||
.White => "\x1b[37;1m",
|
||||
.Bold => "\x1b[1m",
|
||||
@ -671,6 +673,7 @@ pub const TTY = struct {
|
||||
const attributes = switch (color) {
|
||||
.Red => windows.FOREGROUND_RED | windows.FOREGROUND_INTENSITY,
|
||||
.Green => windows.FOREGROUND_GREEN | windows.FOREGROUND_INTENSITY,
|
||||
.Yellow => windows.FOREGROUND_RED | windows.FOREGROUND_GREEN | windows.FOREGROUND_INTENSITY,
|
||||
.Cyan => windows.FOREGROUND_GREEN | windows.FOREGROUND_BLUE | windows.FOREGROUND_INTENSITY,
|
||||
.White, .Bold => windows.FOREGROUND_RED | windows.FOREGROUND_GREEN | windows.FOREGROUND_BLUE | windows.FOREGROUND_INTENSITY,
|
||||
.Dim => windows.FOREGROUND_INTENSITY,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user