I have a console program that runs in loop and I am using Ctrl-C to pause execution of the loop and enter a menu. The shortest distillation of the issue is shown below: