Files
levi/internal/editor/keyboard.go
2026-03-25 17:11:08 +09:00

19 lines
265 B
Go

package editor
import (
"tea.kareha.org/lab/levi/internal/console"
)
const Escape rune = 0x1b
const Enter rune = '\r'
type Keyboard struct{}
func NewKeyboard() Keyboard {
return Keyboard{}
}
func (kb *Keyboard) ReadRune() rune {
return console.ReadRune()
}