Skip to content

Commit

Permalink
Handle Ctrl+C
Browse files Browse the repository at this point in the history
  • Loading branch information
ktg-123 committed May 10, 2021
1 parent 63d869e commit 3cf1d6c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ void signal_handler(int sig_num)
{
// Prevent user to exit with Ctrl+C
signal(SIGINT, signal_handler);
cout << "\n Oops! It seems you are trying to exit. Please use exit command\n";
cout << "Press enter to continue";
cout << "^C\n";
fflush(stdout);
}

Expand Down

0 comments on commit 3cf1d6c

Please sign in to comment.