Mercurial > vim
comparison src/os_msdos.c @ 36:125e80798a85 v7.0021
updated for version 7.0021
author | vimboss |
---|---|
date | Thu, 09 Dec 2004 21:34:53 +0000 |
parents | 4102fb4ea781 |
children | 410fa1a31baf |
comparison
equal
deleted
inserted
replaced
35:8f3a526c2fe1 | 36:125e80798a85 |
---|---|
503 static int saved = FALSE; | 503 static int saved = FALSE; |
504 | 504 |
505 if (restore) | 505 if (restore) |
506 { | 506 { |
507 if (saved) | 507 if (saved) |
508 regs.h.ah = 0x01; /*Set Cursor*/ | 508 regs.h.ah = 0x01; /* Set Cursor */ |
509 else | 509 else |
510 return; | 510 return; |
511 } | 511 } |
512 else | 512 else |
513 { | 513 { |
514 regs.h.ah = 0x03; /*Get Cursor*/ | 514 regs.h.ah = 0x03; /* Get Cursor */ |
515 regs.h.bh = 0x00; /*Page */ | 515 regs.h.bh = 0x00; /* Page */ |
516 saved = TRUE; | 516 saved = TRUE; |
517 } | 517 } |
518 | 518 |
519 (void)int86(0x10, ®s, ®s); | 519 (void)int86(0x10, ®s, ®s); |
520 } | 520 } |
526 static void | 526 static void |
527 mch_set_cursor_shape(int thickness) | 527 mch_set_cursor_shape(int thickness) |
528 { | 528 { |
529 union REGS regs; | 529 union REGS regs; |
530 | 530 |
531 regs.h.ch = 7 - thickness; /*Starting Line*/ | 531 regs.h.ch = 7 - thickness; /* Starting Line */ |
532 regs.h.cl = 7; /*Ending Line*/ | 532 regs.h.cl = 7; /* Ending Line */ |
533 regs.h.ah = 0x01; /*Set Cursor*/ | 533 regs.h.ah = 0x01; /* Set Cursor */ |
534 (void)int86(0x10, ®s, ®s); | 534 (void)int86(0x10, ®s, ®s); |
535 } | 535 } |
536 | 536 |
537 void | 537 void |
538 mch_update_cursor(void) | 538 mch_update_cursor(void) |