mirror of
https://github.com/rivo/tview.git
synced 2025-04-24 13:48:56 +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{
|
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user