about summary refs log tree commit diff stats
path: root/widgets/tabhost.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/tabhost.go')
-rw-r--r--widgets/tabhost.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/widgets/tabhost.go b/widgets/tabhost.go
index b6b3041..1322a0a 100644
--- a/widgets/tabhost.go
+++ b/widgets/tabhost.go
@@ -1,11 +1,15 @@
 package widgets
 
+import (
+	"time"
+)
+
 type TabHost interface {
 	BeginExCommand(cmd string)
 	SetStatus(status string) *StatusMessage
 	SetError(err string) *StatusMessage
-	PushStatus(text string) *StatusMessage
-	PushError(text string) *StatusMessage
-	PushSuccess(text string) *StatusMessage
+	PushStatus(text string, expiry time.Duration) *StatusMessage
+	PushError(text string, expiry time.Duration) *StatusMessage
+	PushSuccess(text string, expiry time.Duration) *StatusMessage
 	Beep()
 }