From 76fd2acbbd5558d9222f8f860b3a045370494f30 Mon Sep 17 00:00:00 2001 From: Atsutane Date: Wed, 6 May 2009 17:29:17 +0200 Subject: main(): set timeout(-1) after the gamefinished so the screen showing the winner awaits an input. --- src/pong.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/pong.c b/src/pong.c index 297dfcf..b462e2c 100644 --- a/src/pong.c +++ b/src/pong.c @@ -484,6 +484,7 @@ int main(void) { clear(); getmaxyx(stdscr, y, x); mvprintw(y/2, x/3, "Player %d wins.", winner); + timeout(-1); getch(); return EXIT_SUCCESS; -- cgit v1.2.3-70-g09d2