You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At begin of programm add defered exit handler with recover. Deferred function calls are executed in Last In First Out order. It will be called by the most recent. And bind a function with panic to ControlC combination.
Bug reports
Expected Behavior
After my program is finished with
ControlC
binding, I expect that Ctrl+C combination will work in the terminal as it did before the program launch.Current Behavior and Steps to Reproduce
After finished my program by
ControlC
binding and Ctrl+C combination do nothing.If I send text command to executor for exit it calls
os.Exit(0)
too and program finished correctly.Program exit if I press Ctrl+C in opened prompt and stty settings is corrupted.
I got settings before run program with
stty -a > stty.before
and after finish program by CTRL+C withstty -a > stty.after
.Disabled this options: -brkint -icrnl -ixon -isig
Option isig enable interrupt, quit, and suspend special characters.
More info about stty https://linux.die.net/man/1/stty
For restore initial behavior need use command
reset
.Context
The text was updated successfully, but these errors were encountered: