Add basic message viewer mockup

This commit is contained in:
Drew DeVault 2019-03-30 14:12:04 -04:00
parent 2958579ee7
commit fa04a1e036
9 changed files with 257 additions and 73 deletions
commands/terminal

View file

@ -14,11 +14,11 @@ func CommandClose(aerc *widgets.Aerc, args []string) error {
if len(args) != 1 {
return errors.New("Usage: close")
}
thost, ok := aerc.SelectedTab().(*widgets.TermHost)
term, ok := aerc.SelectedTab().(*widgets.Terminal)
if !ok {
return errors.New("Error: not a terminal")
}
thost.Terminal().Close(nil)
aerc.RemoveTab(thost)
term.Close(nil)
aerc.RemoveTab(term)
return nil
}