Toggle the screen cursor on or off
SET CURSOR ON | off | <xlToggle>
ON enables the cursor display.
OFF disables the cursor display.
<xlToggle> is a logical expression that must be enclosed in parentheses. A value of true (.T.) is the same as ON, and a value of false (.F.) is the same as OFF.
SET CURSOR toggles the screen cursor on or off. When the CURSOR is OFF, keyboard entry and screen display are unaffected. The cursor is merely hidden and data entry may still be accomplished without the cursor being visible. ROW() and COL() are updated as if the cursor were visible.
This command suppresses the cursor while the screen is being painted. Ideally, the only time the cursor shows in a production program is when the user is editing GETs, MEMOEDIT(), or some kind of line edit.
. This example shows a typical use of SET CURSOR: LOCAL lAnswer := .F. @ 24, 0 @ 24, 15 SAY "Do you want to QUIT? [Y/N]"; GET lAnswer; PICTURE "Y" SET CURSOR ON READ SET CURSOR OFF
COL(), ROW(), SET CONSOLE, SETCURSOR(), SETPOS()