I am catching signal with
rescue Interrupt => e
But it always prints:
^CShutting down!
Is there a way to prevent the default CTRL+C output:
^C
Any ideas?
I am catching signal with
rescue Interrupt => e
But it always prints:
^CShutting down!
Is there a way to prevent the default CTRL+C output:
^C
Any ideas?
Some terminals support
stty -echoctl
to disable echoing of control characters:If the above doesn't work, you can disable all echoing by setting
IO#echo=
tofalse
: