From 6e6d57e0f78ac834c21f83d184f1038115e12875 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 13 May 2024 20:20:20 +0200 Subject: this is gon be tight --- src/e_events.go | 2 ++ src/i_ui.go | 5 +++++ 2 files changed, 7 insertions(+) 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 -- cgit v1.2.3