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:
parent
c3bd0dca7c
commit
f7cccfc690
@ -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})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user