generated from skanehira/go-cli-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.go
34 lines (31 loc) · 798 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package main
import (
"github.com/mattn/go-runewidth"
"github.com/rivo/tview"
"github.com/skanehira/remonade/cmd"
"runtime"
)
func init() {
if runtime.GOOS == "windows" && runewidth.IsEastAsian() {
tview.Borders.Horizontal = '-'
tview.Borders.Vertical = '|'
tview.Borders.TopLeft = '+'
tview.Borders.TopRight = '+'
tview.Borders.BottomLeft = '+'
tview.Borders.BottomRight = '+'
tview.Borders.LeftT = '|'
tview.Borders.RightT = '|'
tview.Borders.TopT = '-'
tview.Borders.BottomT = '-'
tview.Borders.Cross = '+'
tview.Borders.HorizontalFocus = '='
tview.Borders.VerticalFocus = '|'
tview.Borders.TopLeftFocus = '+'
tview.Borders.TopRightFocus = '+'
tview.Borders.BottomLeftFocus = '+'
tview.Borders.BottomRightFocus = '+'
}
}
func main() {
cmd.Execute()
}