# cursor

Definition: | cursor(integer i)
Description: | Select a style of cursor for the console window. Windows platform only, does nothing on Linux.
pwa/p2js: | Not supported
Comments: | The following constants may be used:
        global constant NO_CURSOR = #2000,
                 UNDERLINE_CURSOR = #0607,
           THICK_UNDERLINE_CURSOR = #0507,
                HALF_BLOCK_CURSOR = #0407,
                     BLOCK_CURSOR = #0007
The second and fourth hex digits (from the left) determine the top and bottom rows of pixels in the cursor. The first digit controls whether the cursor will be visible or not. For example, #0407 turns on the 4th through 7th rows.
Example: |
    cursor(BLOCK_CURSOR)
Implementation: | See builtins\pscreen.e (an autoinclude) for details of the actual implementation.
See Also: | text_rows. There is also a JavaScript elem.style.cursor attribute.