Don't expose ReadInput

This commit is contained in:
Christian Rocha
2020-07-29 20:51:55 -04:00
parent c0f67a2927
commit a5e38222c5
2 changed files with 3 additions and 3 deletions

4
key.go
View File

@@ -262,9 +262,9 @@ var hexes = map[string]Key{
"1b5b313b3344": {Type: KeyLeft, Alt: true},
}
// ReadInput reads keypress and mouse input from a TTY and returns a message
// readInput reads keypress and mouse input from a TTY and returns a message
// containing information about the key or mouse event accordingly
func ReadInput(r io.Reader) (Msg, error) {
func readInput(r io.Reader) (Msg, error) {
var buf [256]byte
// Read and block