This adds support to the Windows Console Input Buffer API which access the console API directly without the need for virtual terminal input (i.e. the current mode that emulates unix inputs). Since this uses the console input api, we can finally read window size events. This is mearly based on the awesome work of @erikgeiser in #140. Fixes: https://github.com/charmbracelet/bubbletea/issues/538 Fixes: https://github.com/charmbracelet/bubbletea/issues/121
13 lines
204 B
Go
13 lines
204 B
Go
//go:build !windows
|
|
// +build !windows
|
|
|
|
package tea
|
|
|
|
import (
|
|
"context"
|
|
"io"
|
|
)
|
|
|
|
func readInputs(ctx context.Context, msgs chan<- Msg, input io.Reader) error {
|
|
return readAnsiInputs(ctx, msgs, input)
|
|
}
|