gcla / gowid

Compositional widgets for terminal user interfaces, written in Go, inspired by urwid.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gowid.UrwidColor is invalid

deanchou opened this issue · comments

panic: Color UrwidColor(dark gray) of type *gowid.UrwidColor is invalid

goroutine 1 [running]:
github.com/gcla/gowid.(*UrwidColor).ToTCellColor(0xc0000aa880, 0x3, 0x639a40)
/data/code/go/pkg/mod/github.com/gcla/gowid@v1.0.0/decoration.go:627 +0x4a6
github.com/gcla/gowid.IColorToTCell(0x6379e0, 0xc0000aa880, 0x1, 0x3, 0xc000018170)
/data/code/go/pkg/mod/github.com/gcla/gowid@v1.0.0/decoration.go:1062 +0x3b

Hi - thanks for the report. I think this problem is fixed by the following commit:

8202e3a

Would it be possible for you to update your project to use the latest? If you are using go modules, I think this command should work:

go get github.com/gcla/gowid@4855ffce5278a50a34e6b13b833b05e1667fd35c

Updated and test passed
Thank you