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

Function txt_monoadapt_check

sys/msdos/vidtxt.c:509–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507
508#ifdef MONO_CHECK
509int
510txt_monoadapt_check(void)
511{
512 union REGS regs;
513
514 regs.h.al = 0;
515 regs.h.ah = GETMODE; /* get video mode */
516 (void) int86(VIDEO_BIOS, &regs, &regs);
517 return (regs.h.al == 7) ? 1 : 0; /* 7 means monochrome mode */
518}
519#endif /* MONO_CHECK */
520#endif /* NO_TERMS */
521

Callers 1

term_startupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected