From 1170893e395ff5e3e7bee7ff51224b4a572f01cf Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 17 Mar 2019 14:02:33 -0400 Subject: Add basic terminal widget --- lib/ui/interfaces.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/ui/interfaces.go') diff --git a/lib/ui/interfaces.go b/lib/ui/interfaces.go index c38fcff..d27afe2 100644 --- a/lib/ui/interfaces.go +++ b/lib/ui/interfaces.go @@ -16,6 +16,8 @@ type Drawable interface { type Interactive interface { // Returns true if the event was handled by this component Event(event tcell.Event) bool + // Indicates whether or not this control will receive input events + Focus(focus bool) } type Simulator interface { -- cgit v1.2.3