Cancel.line

From AGI Wiki
Revision as of 16:53, 25 March 2019 by Andrew Korson (talk | contribs) (Created page with "The '''cancel.line''' command clears any text that is on the input line. == Syntax == cancel.line(); == Remarks == AGI clears the input line by sending backspace chara...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The cancel.line command clears any text that is on the input line.

Syntax

cancel.line();

Remarks

AGI clears the input line by sending backspace characters to the line until the cursor is at the beginning of the line. The line is cleared even if it is not visible (after using the prevent.input command).

Possible Errors

None.

Example

Code:
[ if you want to erase whatever user has typed use this command
cancel.line();

Technical Information

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

See Also

System Commands
accept.input
prevent.input