diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/e_events.go | 2 | ||||
-rw-r--r-- | src/i_ui.go | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/e_events.go b/src/e_events.go index d954837..7aeb40c 100644 --- a/src/e_events.go +++ b/src/e_events.go @@ -287,6 +287,8 @@ func e_readline(event tcell.EventKey, buffer *string) { *buffer = "" } else if event.Rune() >= 32 && event.Rune() <= 126 { *buffer += string(event.Rune()) + } else if event.Key() == tcell.KeyCtrlA { + } else if event.Key() == tcell.KeyCtrlE { } } diff --git a/src/i_ui.go b/src/i_ui.go index 5002fe1..b72fbae 100644 --- a/src/i_ui.go +++ b/src/i_ui.go @@ -60,6 +60,11 @@ import ( "golang.org/x/term" ) +type Buffer struct { + str string + cursor int +} + type HardUI struct { s tcell.Screen mode uint8 |