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

Function get_cursinfo

sys/msdos/vidtxt.c:451–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449}
450
451static void
452get_cursinfo(uchar *start, uchar *end, uchar *flg)
453{
454 union REGS regs;
455
456 regs.x.dx = 0;
457 regs.h.ah = GETCURPOS; /* get cursor position */
458 regs.x.cx = 0;
459 regs.x.bx = 0;
460 (void) int86(VIDEO_BIOS, &regs, &regs); /* Get Cursor Position */
461
462 if (regs.h.ch != 0x3f) {
463 *start = regs.h.ch;
464 *end = regs.h.cl;
465 } else {
466 *start = 6;
467 *end = 7;
468 }
469 *flg = 1;
470}
471#endif /* SCREEN_BIOS && !PC9800 */
472
473void

Callers 1

txt_startupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected