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:
parent
823f280c54
commit
1bab2394e4
22
ansi.go
22
ansi.go
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user