> I have a script that waits for user input, and prints info based on the
> info. The print info part sometimes takes a long time.
>
> I want to capture the INT signal (^C) but depending on if I am waiting for
> input or printing something I want (^C) to act differently.
> This program loops endl
I have a script that waits for user input, and prints info based on the
info. The print info part sometimes takes a long time.
I want to capture the INT signal (^C) but depending on if I am waiting for
input or printing something I want (^C) to act differently.
This program loops endlessly, waiti