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. |
ERR_NC | Not complete. |
ERR_NO | Channel not open. |
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!