diff options
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/terminal.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go index 6ad6904..bbe7f82 100644 --- a/widgets/terminal.go +++ b/widgets/terminal.go @@ -180,6 +180,7 @@ func (term *Terminal) Close(err error) { } if term.cmd != nil && term.cmd.Process != nil { term.cmd.Process.Kill() + term.cmd.Wait() term.cmd = nil } if !term.closed && term.OnClose != nil { |