mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-18 14:55:38 -04:00
Add support for COLORTERM
This commit is contained in:
parent
3c01947cb3
commit
56aa289f81
@ -176,7 +176,17 @@ func InitConfigDir() {
|
|||||||
// InitScreen creates and initializes the tcell screen
|
// InitScreen creates and initializes the tcell screen
|
||||||
func InitScreen() {
|
func InitScreen() {
|
||||||
// Should we enable true color?
|
// Should we enable true color?
|
||||||
truecolor := os.Getenv("MICRO_TRUECOLOR") == "1"
|
truecolor := false
|
||||||
|
colorterm := os.Getenv("COLORTERM")
|
||||||
|
if colorterm == "24bit" || colorterm == "truecolor" {
|
||||||
|
truecolor = true
|
||||||
|
}
|
||||||
|
microtc := os.Getenv("MICRO_TRUECOLOR")
|
||||||
|
if microtc == "1" {
|
||||||
|
truecolor = true
|
||||||
|
} else if microtc == "0" {
|
||||||
|
truecolor = false
|
||||||
|
}
|
||||||
|
|
||||||
tcelldb := os.Getenv("TCELLDB")
|
tcelldb := os.Getenv("TCELLDB")
|
||||||
os.Setenv("TCELLDB", configDir+"/.tcelldb")
|
os.Setenv("TCELLDB", configDir+"/.tcelldb")
|
||||||
|
Loading…
Reference in New Issue
Block a user