Files
levi/internal/editor/keyboard.go

18 lines
238 B
Go
Raw Normal View History

2026-03-25 08:39:31 +09:00
package editor
import (
"tea.kareha.org/lab/levi/internal/console"
)
const Esc rune = 0x1b
type Keyboard struct{}
2026-03-25 08:39:31 +09:00
func NewKeyboard() Keyboard {
return Keyboard{}
}
func (kb *Keyboard) ReadRune() rune {
return console.ReadRune()
}