1
0
mirror of https://github.com/maaslalani/gambit.git synced 2025-01-14 02:23:04 +02:00

refactor: winch -> wchan

This commit is contained in:
Maas Lalani 2022-02-14 22:11:12 -05:00
parent c3bd0dca7c
commit f7cccfc690
No known key found for this signature in database
GPG Key ID: 5A6ED5CBF1A0A000

View File

@ -91,13 +91,13 @@ func (p *Player) Close() error {
// StartGame starts the bubble tea program.
func (p *Player) StartGame() {
_, winch, _ := p.session.Pty()
_, wchan, _ := p.session.Pty()
errc := make(chan error, 1)
go func() {
select {
case err := <-errc:
log.Printf("error starting program %s", err)
case w := <-winch:
case w := <-wchan:
if p.program != nil {
p.program.Send(tea.WindowSizeMsg{Width: w.Width, Height: w.Height})
}