blob: a8c7d6d09bfe3657c01c5d3a05f58cb580ddad68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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)
}
|