1
0
mirror of https://github.com/rivo/tview.git synced 2025-04-26 13:49:06 +08:00

Fixed terminal colors

This commit is contained in:
Miles Whittaker 2020-05-11 16:51:00 -04:00
parent 823f280c54
commit 1bab2394e4

22
ansi.go
View File

@ -110,21 +110,21 @@ func (a *ansi) Write(text []byte) (int, error) {
} }
return [...]string{ return [...]string{
"black", "black",
"red", "maroon",
"green", "green",
"olive",
"navy",
"purple",
"teal",
"silver",
"gray",
"red",
"lime",
"yellow", "yellow",
"blue", "blue",
"darkmagenta", "fuchsia",
"darkcyan", "aqua",
"white", "white",
"#7f7f7f",
"#ff0000",
"#00ff00",
"#ffff00",
"#5c5cff",
"#ff00ff",
"#00ffff",
"#ffffff",
}[colorNumber] }[colorNumber]
} }
FieldLoop: FieldLoop: