CONSOLECURSOR: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
{{PageSyntax}} | {{PageSyntax}} | ||
: [[_CONSOLECURSOR]] {{Parameter|_HIDE|_SHOW}}[, {{Parameter|size%}}] | : [[_CONSOLECURSOR]] <nowiki>{</nowiki>{{Parameter|<nowiki> _HIDE | _SHOW </nowiki>}}<nowiki>}</nowiki> [, {{Parameter|size%}}] | ||
Line 34: | Line 34: | ||
{{Cm|$CONSOLE}}:{{Cl|ONLY}} | {{Cm|$CONSOLE}}:{{Cl|ONLY}} | ||
{{Cl|_CONSOLECURSOR | {{Cl|_CONSOLECURSOR|_CONSOLECURSOR _HIDE}} | ||
{{Cl|LINE INPUT}} {{Text|<nowiki>"Input without cursor: "</nowiki>|#FFB100}}, a$ | {{Cl|LINE INPUT}} {{Text|<nowiki>"Input without cursor: "</nowiki>|#FFB100}}, a$ | ||
{{Cl|PRINT}} | {{Cl|PRINT}} | ||
{{Cl|_CONSOLECURSOR | {{Cl|_CONSOLECURSOR|_CONSOLECURSOR _SHOW}} , {{Text|50|#F580B1}} | ||
{{Cl|LINE INPUT}} {{Text|<nowiki>"Input with half line height cursor: "</nowiki>|#FFB100}}, a$ | {{Cl|LINE INPUT}} {{Text|<nowiki>"Input with half line height cursor: "</nowiki>|#FFB100}}, a$ | ||
{{Cl|PRINT}} | {{Cl|PRINT}} |
Latest revision as of 21:19, 5 October 2024
The _CONSOLECURSOR statement is used to switch the text cursor in Console Windows off/on or change its size.
Syntax
- _CONSOLECURSOR { _HIDE | _SHOW } [, size%]
Parameters
- _HIDE or _SHOW switch the text cursor off or on respectively, the default at program start is on.
- The optional size% is specified as percentage value (0-100) of the console line height.
Description
Availability
Examples
- Example 1
- Simple usage example how to use the _CONSOLECURSOR statement.
$CONSOLE:ONLY _CONSOLECURSOR _HIDE LINE INPUT "Input without cursor: ", a$ PRINT _CONSOLECURSOR _SHOW , 50 LINE INPUT "Input with half line height cursor: ", a$ PRINT _CONSOLECURSOR , 10 PRINT "press any key...";: SLEEP SYSTEM |
See also