Skip to content

Commit

Permalink
[mod] fallback to 8 color mode if 256 color initialization fails
Browse files Browse the repository at this point in the history
  • Loading branch information
asciimoo committed Mar 14, 2017
1 parent f3efa16 commit fa4c1e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -1619,7 +1619,10 @@ func main() {
}
g, err := gocui.NewGui(gocui.Output256)
if err != nil {
log.Panicln(err)
g, err = gocui.NewGui(gocui.OutputNormal)
if err != nil {
log.Panicln(err)
}
}
if runtime.GOOS == WINDOWS_OS && runewidth.IsEastAsian() {
g.ASCII = true
Expand Down

0 comments on commit fa4c1e8

Please sign in to comment.