Set.cursor.char

From AGI Wiki
Revision as of 22:19, 20 April 2019 by Andrew Korson (talk | contribs) (Created page with "The '''set.cursor.char''' command sets the cursor character. == Syntax == set.cursor.char(msg mCURSORCHAR);<br /> set.cursor.char("message text"); == Remarks ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The set.cursor.char command sets the cursor character.

Syntax

set.cursor.char(msg mCURSORCHAR);
set.cursor.char("message text");

Remarks

The cursor character (the character displayed at the end of the player input line) is set to the first character of the message referenced by argument mCURSORCHAR.

Possible Errors

None.

Example

Code:

<syntaxhighlight lang="agi"> set.cursor.char("_"); [ underscore is a common choice for cursor set.cursor.char(">>>"; [ only the first character is used </syntaxhighlight>

Technical Information

Required Interpreter Version: Available in all AGI versions.
Byte-Code Value: 108 (0x6C hex)

See Also

Display Commands