package tui import ( // "github.com/rivo/uniseg" // "strings" ) type TextInput struct { Contents string Cursor int } func (t *TextInput) Update(ev Event) { t.Cursor = max(t.Cursor, 0) }