gizak / termui

Golang terminal dashboard
MIT License
13.22k stars 786 forks source link

Is termui compatible with Docker tty? #300

Closed ugosan closed 3 years ago

ugosan commented 3 years ago

Hi, thats a great library, but im trying to run a small application in a docker container and I'm getting the following error:

panic: runtime error: index out of range [15] with length 14

goroutine 1 [running]:
github.com/nsf/termbox-go.SetInputMode(0x5, 0x0)
    /Users/ugosan/go/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20201124104050-ed494de23a00/api.go:483 +0x1e5
github.com/gizak/termui/v3.Init(0xc000000058, 0x77fef0)
    /Users/ugosan/go/pkg/mod/github.com/gizak/termui/v3@v3.1.0/backend.go:17 +0x56
...

Any recommendations for having a termui based application running in a container?

Dockerfile is really straightforward

FROM scratch
ADD logshark /logshark
CMD ["/logshark"]

Thank you!