termui icon indicating copy to clipboard operation
termui copied to clipboard

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

Open kernelPanic0x opened this issue 4 years ago • 3 comments

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 avatar Dec 04 '21 17:12 kernelPanic0x

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

kernelPanic0x avatar Dec 05 '21 18:12 kernelPanic0x

sounds like a windows unicode rendering bug?

cogburnd02 avatar Jul 22 '22 00:07 cogburnd02