fixes : #136
Issue:
When attempting to interrupt the program using Ctrl + C, the system raised a KeyboardInterrupt exception. This caused the program to freeze, requiring the user to kill the terminal session to regain control.
Solution:
I have added an exception handling mechanism for KeyboardInterrupt to prevent the program from freezing. This allows the program to continue running smoothly without needing to kill the terminal.
User Guidance:
To exit the program gracefully, users should follow the provided instructions instead of using Ctrl + C. Here is the suggested command for exiting the program:
To exit the loop gracefully, please type exit
Avoid using Ctrl + C as it is now handled to maintain the program's stability and avoid freezing.
fixes : #136 Issue: When attempting to interrupt the program using Ctrl + C, the system raised a KeyboardInterrupt exception. This caused the program to freeze, requiring the user to kill the terminal session to regain control.
Solution: I have added an exception handling mechanism for KeyboardInterrupt to prevent the program from freezing. This allows the program to continue running smoothly without needing to kill the terminal.
User Guidance: To exit the program gracefully, users should follow the provided instructions instead of using Ctrl + C. Here is the suggested command for exiting the program:
To exit the loop gracefully, please type exit Avoid using Ctrl + C as it is now handled to maintain the program's stability and avoid freezing.