Cancel.line

From AGI Wiki
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