Skip to content

Commit

Permalink
fix: don't intercept os signals (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Sep 15, 2023
1 parent 6aa18d2 commit 02831ce
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions pterm.go
Expand Up @@ -7,11 +7,7 @@
package pterm

import (
"atomicgo.dev/cursor"
"github.com/gookit/color"
"os"
"os/signal"
"syscall"
)

var (
Expand All @@ -30,16 +26,6 @@ var (

func init() {
color.ForceColor()

// Make the cursor visible when the program stops
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
signal.Notify(c, syscall.SIGTERM)
go func() {
for range c {
cursor.Show()
}
}()
}

// EnableOutput enables the output of PTerm.
Expand Down

0 comments on commit 02831ce

Please sign in to comment.