diff options
-rw-r--r-- | cleaner/cleaner.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cleaner/cleaner.go b/cleaner/cleaner.go index 5937718b..70d3d5e8 100644 --- a/cleaner/cleaner.go +++ b/cleaner/cleaner.go @@ -21,7 +21,8 @@ func Register(f t) { ch := make(chan os.Signal, 1) signal.Notify(ch, syscall.SIGINT, syscall.SIGTERM, os.Interrupt) <-ch - fmt.Println("") + // Prevent un-terminated ^C character in terminal + fmt.Println() clean() os.Exit(1) }() |