Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QWIKC20 & Multi-Level Virtual Windows - <b>---------------------------------------------------------------------------</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ---------------------------------------------------------------------------
 setcursor                                                             QWIKC
 ---------------------------------------------------------------------------
 Function       Sets a new cursor mode for the CRT.
 Syntax         void setcursor( int cursor );
 Remarks        Using the default cursor variables set by qinit and/or the
                cursor macros, a new cursor mode can be set by with any
                combination of:

                  cursor_initial       - detected by qinit at startup
                  cursor_underline     - set by qinit
                  cursor_halfblock     - set by qinit
                  cursor_block         - set by qinit
                  cursor_off   ($2000) - turns cursor off
                  cursor_blink ($6000) - erratic blinking (MDA/CGA)

                You can simply add them together (logically ORing is best to
                prevent carry errors, but arithmetic addition is fine).
                Although a separate cursor location is kept for each video
                page, there is only one cursor mode for the CRT screen.
 Screens        Any video page as viewed.
 Example 1      Set a half-block cursor with erratic blink:

                  setcursor( cursor_halfblock+cursor_blink );

 Example 2      Set the scan lines for a block cursor, but leave it turned
                off:

                  setcursor( cursor_block+cursor_off );

 Example 3      Restore the cursor mode at start up and be sure it's turned
                on:

                  setcursor( cursor_initial );
                  modcursor( cursor_on );

                or, for those comfortable with bit operations:

                  setcursor( cursor_initial & !cursor_blink );


See Also: getcursor() modcursor()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson