You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
}
}
The text was updated successfully, but these errors were encountered:
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 ;)
Given the time past I figure u have already moved on from the issue you were facing.
For others that might come across the same "issue", it's quite simple.
The symbols used for rendering on Windows are coded in that way.
You could make a fork and edit them manually, these can be found in "master/symbols_windows.go"
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:
The text was updated successfully, but these errors were encountered: