I have created a digital clock program. I use this cmd
printf("\033[?25l");
// Hiding the cursor
but when I stop the program with Ctrl+C the terminal cursor is still hidden. How do I solve this problem and restore the cursor after Ctrl+C?