v0.1.8 inline: ANSI 16 styles, a 16-color mode for text consoles
This commit is contained in:
8 files changed
+137
-30
No files matched your search
@@ -10,6 +10,9 @@ import (
|
||||
)
|
||||
|
||||
func detectColorMode() colorMode {
|
||||
if textConsole() {
|
||||
return colorMode16
|
||||
}
|
||||
colorterm := os.Getenv("COLORTERM")
|
||||
if colorterm == "truecolor" || colorterm == "24bit" {
|
||||
return colorModeTrueColor
|
||||
|
||||
Reference in new issue
Block a user