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

Function dosuspend

outdated/sys/atari/tos.c:352–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350#endif
351
352int
353dosuspend()
354{
355#ifdef MINT
356 extern int kill();
357 if (__mint == 0) {
358#endif
359 pline("Sorry, it seems we have no SIGTSTP here. Try ! or S.");
360#ifdef MINT
361 } else if (signal(SIGTSTP, SIG_IGN) == SIG_DFL) {
362 suspend_nhwindows((char *) 0);
363 (void) signal(SIGTSTP, SIG_DFL);
364 (void) kill(0, SIGTSTP);
365 get_scr_size();
366 resume_nhwindows();
367 } else {
368 pline("I don't think your shell has job control.");
369 }
370#endif /* MINT */
371 return (0);
372}
373#endif /* SUSPEND */
374
375#endif /* TOS */

Callers

nothing calls this directly

Calls 2

get_scr_sizeFunction · 0.70
plineFunction · 0.50

Tested by

no test coverage detected