rust-ctrlc icon indicating copy to clipboard operation
rust-ctrlc copied to clipboard

Handling runs after the loop executes

Open KanseiKy opened this issue 4 years ago • 1 comments

image As you can see, the above image show $ $ Keyboard intterupt. Use `exit` to exit What I expect it to be is something like

$ *ctrl+c*
Keyboard intterupt. Use `exit` to exit`
$

But that didn't happened. It runs the next iteration from my loop. Basically

prompt
wait for user input
ctrl+c
prompt
SIGINT handling
wait for user input

It should be

prompt
wait for user input
ctrl+c
SIGINT handling
prompt
wait for user input

(SIGINT handling and 2nd prompt supposed to swap places) I don't know if this is a bug or not but I can send more details if required

KanseiKy avatar Jun 25 '21 15:06 KanseiKy

Does this happen to you if you run cargo run --example readme_example?

Detegr avatar Oct 06 '21 19:10 Detegr

Closed as stale.

Detegr avatar May 20 '23 18:05 Detegr