MCPcopy Create free account
hub / github.com/NetHack/NetHack / stdio_wait_synch

Function stdio_wait_synch

sys/windows/windmain.c:1337–1346  ·  view source on GitHub ↗

Add to your code: windowprocs.win_raw_print = stdio_wait_synch; */

Source from the content-addressed store, hash-verified

1335
1336/* Add to your code: windowprocs.win_raw_print = stdio_wait_synch; */
1337void
1338stdio_wait_synch(void)
1339{
1340 char valid[] = { ' ', '\n', '\r', '\033', '\0' };
1341
1342 fprintf(stdout, "--More--");
1343 (void) fflush(stdout);
1344 while (!strchr(valid, nhgetch()))
1345 ;
1346}
1347
1348/* Add to your code: windowprocs.win_raw_print = stdio_raw_print; */
1349void

Callers

nothing calls this directly

Calls 2

fprintfFunction · 0.85
fflushFunction · 0.85

Tested by

no test coverage detected