termui
termui copied to clipboard
Can't get better ascii border to display only the simple +,-,| ones.
Hi. Im new to this library and I am testing it out right now. When I copy the demo projects and run them it works but I only get "basic" borders meaning only "+ - |" symbols and not the better looking ascii borders.
The demo looks like this:
package main
import (
"log"
ui "github.com/gizak/termui/v3"
"github.com/gizak/termui/v3/widgets"
)
func main() {
if err := ui.Init(); err != nil {
log.Fatalf("failed to initialize termui: %v", err)
}
defer ui.Close()
p := widgets.NewParagraph()
p.Text = "Hello World!"
p.SetRect(0, 0, 25, 5)
ui.Render(p)
for e := range ui.PollEvents() {
if e.Type == ui.KeyboardEvent {
break
}
}
}
I don't know if it should make a differance but I'm using windows. Under linux the proper ascii borders get displayed but in windows not. Even in git bash in windows only the basic borders get displayed. Can I change this somehow? Would love to get the proper borders for the E S T H E T I C S ;)
sounds like a windows unicode rendering bug?