We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi. I found an issue with using os.Notify along with pterm.
os.Notify
This code will wait 10 seconds after receiving Ctrl+C
package main import ( "os" "os/signal" "syscall" "time" ) func main() { sig := make(chan os.Signal) signal.Notify(sig, os.Interrupt, syscall.SIGTERM) <-sig <-time.After(time.Second * 10) }
but after just adding an import with pterm it will close immediately
package main import ( "os" "os/signal" "syscall" "time" _ "github.com/pterm/pterm" ) func main() { sig := make(chan os.Signal) signal.Notify(sig, os.Interrupt, syscall.SIGTERM) <-sig <-time.After(time.Second * 10) }
My environment:
Problem is probably related to
pterm/pterm.go
Line 42 in 4b7a4ed
The text was updated successfully, but these errors were encountered:
Thanks for reporting this issue! We will release a fix in the next days.
Sorry, something went wrong.
MarvinJWendt
Successfully merging a pull request may close this issue.
Hi. I found an issue with using
os.Notify
along with pterm.This code will wait 10 seconds after receiving Ctrl+C
but after just adding an import with pterm it will close immediately
My environment:
Problem is probably related to
pterm/pterm.go
Line 42 in 4b7a4ed
The text was updated successfully, but these errors were encountered: