PI is now a pre-defined variable.
INPUTLINE has been implemented for receiving string input from a user.
Example:
CLS
Y=3
PROMPT="ANSWER>"
TEXT=""
REPEAT
INPUTLINE
UNTIL RESULT
PRINTLINE RESULT
In this example, the string will be edited on the line specified by Y (0 to 21). If a negative number is provided in Y, the next text line will be used.
PROMPT can contain an optional string.
TEXT will contain the string currently being edited.
The loop is used to refresh the cursor blink.
Before enter is pressed, RESULT will contain an empty string (""). When enter is pressed, RESULT will return the string in TEXT.
Note: INPUTLINE will only work in text mode.
Have fun!