From 661e3ec2a4dd97d4a8a8eab4f281b088770a6af2 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 26 Feb 2018 22:41:54 -0500 Subject: Implement basic ex line input TODO: - scrolling - commit/cancel - command history (via an external command history provider) - tab completion (via an external tab completion provider) --- ui/interactive.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ui/interactive.go (limited to 'ui/interactive.go') 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 +} -- cgit