add 'color256' option to control color mode

Related #104
This commit is contained in:
Gokcehan committed 2019-01-08 22:47:41 +03:00
1 parent c5297d6b6b
commit d8b9bab3ea
8 files changed
+61 -1

No files matched your search

+8
View File
@@ -892,6 +892,14 @@ func (ui *ui) readExpr() <-chan expr {
return ch
}
func setColorMode() {
if gOpts.color256 {
termbox.SetOutputMode(termbox.Output256)
} else {
termbox.SetOutputMode(termbox.OutputNormal)
}
}
func (ui *ui) pause() {
termbox.Close()
}