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{
"black",
"red",
"maroon",
"green",
"olive",
"navy",
"purple",
"teal",
"silver",
"gray",
"red",
"lime",
"yellow",
"blue",
"darkmagenta",
"darkcyan",
"fuchsia",
"aqua",
"white",
"#7f7f7f",
"#ff0000",
"#00ff00",
"#ffff00",
"#5c5cff",
"#ff00ff",
"#00ffff",
"#ffffff",
}[colorNumber]
}
FieldLoop: