aboutsummaryrefslogtreecommitdiff
path: root/ui/ui.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-05-26 00:07:01 +0300
committerTulir Asokan <tulir@maunium.net>2018-05-26 00:07:01 +0300
commitc9e138c5e8e589efa82e2b3cad189806dc35d981 (patch)
treed74d2852947a666e471992b8841af5c6c1263849 /ui/ui.go
parent524e9b7faf230f6a9af8718fb877cfd1dad9ddc5 (diff)
Update tcell and include tcell database in debian package
Diffstat (limited to 'ui/ui.go')
-rw-r--r--ui/ui.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/ui.go b/ui/ui.go
index c8acede..9707274 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -20,6 +20,7 @@ import (
"maunium.net/go/gomuks/interface"
"maunium.net/go/tcell"
"maunium.net/go/tview"
+ "os"
)
type View string
@@ -42,6 +43,11 @@ type GomuksUI struct {
func init() {
tview.Styles.PrimitiveBackgroundColor = tcell.ColorDefault
tview.Styles.ContrastBackgroundColor = tcell.ColorDarkGreen
+ if tcellDB := os.Getenv("TCELLDB"); len(tcellDB) == 0 {
+ if info, err := os.Stat("/usr/share/tcell/database"); err == nil && info.IsDir() {
+ os.Setenv("TCELLDB", "/usr/share/tcell/database")
+ }
+ }
}
func NewGomuksUI(gmx ifc.Gomuks) ifc.GomuksUI {