home *** CD-ROM | disk | FTP | other *** search
- PROCEDURE cursor(on:BOOLEAN);{---------------This sets the cursor on/off}
-
- {procedure cursor will set the cursor on or off depending if the argument sent
- is true or false. If the argument is false the cursor will be turned off,
- if the argument is true the cursor is the cursor is turned on.}
-
- CONST
- video_io=$10; {this is the interrupt number}
- VAR
- regs:RECORD CASE INTEGER OF {this sets up the registers}
- 1: (AX,BX,CX,DX,BP,DI,SI,DS,ES,Flags: INTEGER);
- 2: (AL,AH,BL,BH,CL,CH,DL,DH: Byte);
- END;
- BEGIN
- IF on THEN {if the user wants a cursor then}
- BEGIN
- regs.ch:=$06; {set the registers up for display}
- regs.cl:=$07; {ch = start line, cl = end line}
- END
- ELSE {else, the cursor is not displayed}
- BEGIN
- regs.ch:=$20; {set the register up for non-}
- regs.cl:=$00; {display, ch=$20 doesn't display}
- END;
- regs.ah:=$01;
- regs.al:=$00;
- Intr(video_io,regs);
- END;