I'm still new to C and ncurses. I was asked to do an assignment that involved making a multithreaded pong game. The game runs fine and ends with the correct lossing conditions but upon termination my terminal is all messed up. I get no echo, so I have to type stty echo
to get that back, even then the terminal behaves strangely.
My end function is the following:
void wrap_up(){
curs_set(1);
clear();
endwin();
refresh();
}
Here is a screenshot. How do I fix it?
Remove refresh after endwin. Calling refresh after endwin causes the program to go back into the curses mode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With