comparison nnchat.c @ 222:a1fefbce0b7a

Add a simple 'press enter to continue' for Windows port, when an error occurs so the user can see it before the application closes.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 27 Nov 2010 17:45:20 +0200
parents f6160051b72e
children 03af28fb1c38
comparison
equal deleted inserted replaced
221:f6160051b72e 222:a1fefbce0b7a
1409 endwin(); 1409 endwin();
1410 THMSG(1, "NCurses deinitialized.\n"); 1410 THMSG(1, "NCurses deinitialized.\n");
1411 } 1411 }
1412 1412
1413 if (isError) { 1413 if (isError) {
1414 #ifdef __WIN32
1415 char *tmp = promptRequester("Press enter to quit.\n", FALSE);
1416 th_free(tmp);
1417 #else
1414 THMSG(1, "Error exit.\n"); 1418 THMSG(1, "Error exit.\n");
1419 #endif
1415 } 1420 }
1416 1421
1417 th_free(optUserNameEnc); 1422 th_free(optUserNameEnc);
1418 1423
1419 nn_conn_close(conn); 1424 nn_conn_close(conn);