Fix Windows stuff related to the refactor at 49a5d16

This commit is contained in:
Christian Rocha
2021-07-29 17:59:36 -04:00
parent 67625b480e
commit 5f41a91e02
3 changed files with 7 additions and 23 deletions

3
tea.go
View File

@@ -371,9 +371,8 @@ func (p *Program) Start() error {
}()
}
// Is output a terminal?
if f, ok := p.output.(*os.File); ok {
// Get initial terminal size
// Get initial terminal size and send it to the program
go func() {
w, h, err := term.GetSize(int(f.Fd()))
if err != nil {