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

Function getreturn

sys/windows/windsys.c:576–593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574extern int windows_console_custom_nhgetch(void);
575
576void
577getreturn(const char *str)
578{
579 static boolean in_getreturn = FALSE;
580 char buf[BUFSZ];
581
582 if (in_getreturn || !getreturn_enabled)
583 return;
584 in_getreturn = TRUE;
585 Sprintf(buf,"Hit <Enter> %s.", str);
586 raw_print(buf);
587 if (WINDOWPORT(tty))
588 windows_console_custom_nhgetch();
589 else
590 wait_synch();
591 in_getreturn = FALSE;
592 return;
593}
594#endif
595
596/* nethack_enter_windows() is called from main immediately after

Callers

nothing calls this directly

Calls 3

raw_printFunction · 0.85
wait_synchFunction · 0.85

Tested by

no test coverage detected