| 449 | } |
| 450 | |
| 451 | static void |
| 452 | get_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, ®s, ®s); /* 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 | |
| 473 | void |