Merge pull request #52 from mattn/ascii

use gocui.Ascii for CJK
pull/43/merge
Adam Tauber 8 years ago committed by GitHub
commit 51613246b5

@ -20,6 +20,7 @@ import (
"time" "time"
"github.com/jroimartin/gocui" "github.com/jroimartin/gocui"
"github.com/mattn/go-runewidth"
) )
const VERSION = "0.1.0" const VERSION = "0.1.0"
@ -1008,6 +1009,9 @@ func main() {
if err != nil { if err != nil {
log.Panicln(err) log.Panicln(err)
} }
if runtime.GOOS == "windows" && runewidth.IsEastAsian() {
g.Ascii = true
}
app := &App{history: make([]*Request, 0, 31)} app := &App{history: make([]*Request, 0, 31)}

Loading…
Cancel
Save