From eaa9eaa4b404275f4abfbf862e5c2b2fef94fe33 Mon Sep 17 00:00:00 2001 From: Nonoo Date: Thu, 29 Oct 2020 15:21:46 +0100 Subject: [PATCH] Clear status bar on exit --- statuslog.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/statuslog.go b/statuslog.go index b03ed0c..480ae79 100644 --- a/statuslog.go +++ b/statuslog.go @@ -213,9 +213,12 @@ func (s *statusLogStruct) stopPeriodicPrint() { s.stopChan <- true <-s.stopFinishedChan - fmt.Println() - fmt.Println() - fmt.Println() + if s.isRealtimeInternal() { + s.clearInternal() + fmt.Println() + s.clearInternal() + fmt.Println() + } } func (s *statusLogStruct) initIfNeeded() {