18 lines
239 B
Go
18 lines
239 B
Go
package editor
|
|
|
|
import (
|
|
"tea.kareha.org/lab/levi/internal/console"
|
|
)
|
|
|
|
const Esc rune = 0x1b
|
|
|
|
type Keyboard struct {}
|
|
|
|
func NewKeyboard() Keyboard {
|
|
return Keyboard{}
|
|
}
|
|
|
|
func (kb *Keyboard) ReadRune() rune {
|
|
return console.ReadRune()
|
|
}
|