gizak / termui

Golang terminal dashboard
MIT License
13.06k stars 783 forks source link

Can't get better ascii border to display only the simple +,-,| ones. #310

Open kernelPanic0x opened 2 years ago

kernelPanic0x commented 2 years ago

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
        }
    }
}
kernelPanic0x commented 2 years ago

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 ;)

cogburnd02 commented 1 year ago

sounds like a windows unicode rendering bug?