Closed Honglei-Cong closed 5 years ago
This works with pty on docker. docker run
instead of docker run -t
.
Also works within unit test debugging session.
It gets my vote to merge to master.
Looks like this has been done as part of this commit: https://github.com/gosuri/uilive/commit/4512d98b127f3f3a1b7c3cf1104969fdd17b31d9
when program is started by supervisord, there's no tty associated its process.
os.Exit(1) makes process failed.
The fix is to return 0 windows size when there's no tty.