aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-05-13 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-05-13 20:20:20 +0200
commit6e6d57e0f78ac834c21f83d184f1038115e12875 (patch)
tree5e8d664dbf52e7a546206aed648abcad6df9d937
parentrfix (diff)
downloadhardflip-6e6d57e0f78ac834c21f83d184f1038115e12875.tar.gz
hardflip-6e6d57e0f78ac834c21f83d184f1038115e12875.tar.bz2
hardflip-6e6d57e0f78ac834c21f83d184f1038115e12875.tar.xz
hardflip-6e6d57e0f78ac834c21f83d184f1038115e12875.tar.zst
hardflip-6e6d57e0f78ac834c21f83d184f1038115e12875.zip
this is gon be tight
-rw-r--r--src/e_events.go2
-rw-r--r--src/i_ui.go5
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