aboutsummaryrefslogtreecommitdiffstats
path: root/ui/interactive.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/interactive.go')
-rw-r--r--ui/interactive.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/interactive.go b/ui/interactive.go
new file mode 100644
index 00000000..5dd5feff
--- /dev/null
+++ b/ui/interactive.go
@@ -0,0 +1,10 @@
+package ui
+
+import (
+ tb "github.com/nsf/termbox-go"
+)
+
+type Interactive interface {
+ // Returns true if the event was handled by this component
+ Event(event tb.Event) bool
+}