Merge pull request #52 from mattn/ascii

use gocui.Ascii for CJK
This commit is contained in:
Adam Tauber 2017-02-11 20:07:16 +01:00 committed by GitHub
commit 51613246b5

View File

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