diff options
Diffstat (limited to 'widgets/tabhost.go')
-rw-r--r-- | widgets/tabhost.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/widgets/tabhost.go b/widgets/tabhost.go index b6b3041d..1322a0aa 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() } |