Skip to content

Commit

Permalink
Workaround bug in termbox-go
Browse files Browse the repository at this point in the history
It seems there's an issue with termbox-go (which termui depends on) with
ncurses 6.  Apply workaround of setting TERM=xterm mentioned in

  nsf/termbox-go#185
  • Loading branch information
namhyung committed Aug 1, 2018
1 parent 84c154b commit 778d687
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ package main

import (
"fmt"
"os"
tui "github.com/airking05/termui" // for termui bug #177
scv "strconv"
str "strings"
Expand Down Expand Up @@ -720,6 +721,8 @@ func render(dv *DasView) {
}

func ShowTUI(file_name string) {
os.Setenv("TERM", "xterm")

if err := tui.Init(); err != nil {
panic(err)
}
Expand Down

0 comments on commit 778d687

Please sign in to comment.