* get cursor position * * This is implemented as a macro under DJGPPFAST. */
| 402 | * This is implemented as a macro under DJGPPFAST. |
| 403 | */ |
| 404 | void txt_get_cursor(int *x, int *y) |
| 405 | { |
| 406 | union REGS regs; |
| 407 | |
| 408 | regs.x.dx = 0; |
| 409 | regs.h.ah = GETCURPOS; /* get cursor position */ |
| 410 | regs.x.cx = 0; |
| 411 | regs.x.bx = 0; |
| 412 | (void) int86(VIDEO_BIOS, ®s, ®s); /* Get Cursor Position */ |
| 413 | *x = regs.h.dl; |
| 414 | *y = regs.h.dh; |
| 415 | if (!cursor_info) { |
| 416 | cursor_start_scanline = regs.h.ch; |
| 417 | cursor_end_scanline = regs.h.cl; |
| 418 | cursor_info = 1; |
| 419 | } |
| 420 | } |
| 421 | |
| 422 | void txt_hide_cursor(void) |
| 423 | { |
no outgoing calls
no test coverage detected