SD_CURE/IOW_ECUR & SD_CURS/IOW_DCUR
These traps enable or disable the cursor.
Trap | Value in D0.B | Action |
SD_CURE/IOW_ECUR | $0E | Enable the cursor |
SD_CURS/IOW_DCUR | $0F | Disable the cursor |
Call Parameters | Return Parameters |
D0.B | See above | D0.L | Error return. |
D1.L | | D1.L | Corrupted. |
D3.W | Timeout | D3.L | Preserved. |
A0.L | Channel ID | A0.L | Preserved. |
A1.L | | A1.L | Corrupted. |
Errors
ERR_NC | Not complete. |
ERR_NO | Channel not open. |
Notes
All registers not shown above are not used on entry and are preserved on exit.
These traps ensure that the cursor is set to the required state. No error is signalled if the cursor was already in the state required.
Example
The example below shows the use of this trap call to enable the cursor. It is assumed that A0 contains the window's ID.
enable moveq #sd_cure,d0 ; $0E
moveq #-1,d3 ; Timeout
trap #3 ; Make sure the cursor is enabled
tst.l d0 ; OK? . .
bne error ; . . no!