diff options
| author | Atsutane <atsutane@freethoughts.de> | 2009-05-06 17:29:17 +0200 |
|---|---|---|
| committer | Atsutane <atsutane@freethoughts.de> | 2009-05-06 17:29:17 +0200 |
| commit | 76fd2acbbd5558d9222f8f860b3a045370494f30 (patch) | |
| tree | cb3058af503b0495db5f4b2372e76a8d9bb51a70 /src | |
| parent | 285cc5b057ef9a3ade9aea83b1cd097ea2d81dfe (diff) | |
| download | pong-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |
