aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAtsutane <atsutane@freethoughts.de>2009-05-06 17:29:17 +0200
committerAtsutane <atsutane@freethoughts.de>2009-05-06 17:29:17 +0200
commit76fd2acbbd5558d9222f8f860b3a045370494f30 (patch)
treecb3058af503b0495db5f4b2372e76a8d9bb51a70 /src
parent285cc5b057ef9a3ade9aea83b1cd097ea2d81dfe (diff)
downloadpong-76fd2acbbd5558d9222f8f860b3a045370494f30.tar.gz
pong-76fd2acbbd5558d9222f8f860b3a045370494f30.tar.bz2
main(): set timeout(-1) after the gamefinished so the screen showing the winner awaits an input.
Diffstat (limited to 'src')
-rw-r--r--src/pong.c1
1 files changed, 1 insertions, 0 deletions
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;