diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-05-11 14:15:29 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-05-11 14:15:29 -0400 |
commit | 71c13c907873d603bf15d68ab0372b75b271d18d (patch) | |
tree | 8d30b8b8c9c2679f37a4f29e702764fb99100d67 /commands/account/pipe.go | |
parent | 72e4b5e2b2e0de50b8572f195f73ccdd8e9d9461 (diff) | |
download | aerc-71c13c907873d603bf15d68ab0372b75b271d18d.tar.gz |
"Press any key to close" for completed processes
Diffstat (limited to 'commands/account/pipe.go')
-rw-r--r-- | commands/account/pipe.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/commands/account/pipe.go b/commands/account/pipe.go index a4c9848..f44de30 100644 --- a/commands/account/pipe.go +++ b/commands/account/pipe.go @@ -44,9 +44,12 @@ func Pipe(aerc *widgets.Aerc, args []string) error { aerc.PushStatus(" "+err.Error(), 10*time.Second). Color(tcell.ColorDefault, tcell.ColorRed) } else { - // TODO: Tab-specific status stacks aerc.PushStatus("Process complete, press any key to close.", 10*time.Second) + term.OnEvent = func(event tcell.Event) bool { + aerc.RemoveTab(term) + return true + } } } term.OnStart = func() { |