BASIC PAUSE Statement - fvdhoef/aquarius-plus GitHub Wiki

PAUSE

TYPE: plusBASIC system statement


FORMAT: PAUSE

Action: Suspends program execution until a key is pressed.

  • The program continues with the statement following the PAUSE after the key is pressed.
  • Break will occur if Ctrl-C is pressed unless SET BREAK OFF has been executed.

FORMAT: PAUSE message

Action: As above, but prints the specified message to the screen before pausing.

  • message is string expression specifying the message to displayed.
  • The cursor is not moved to the beginning of the next line.
Example
PAUSE "Press a key"

Displays the message Press a key then waits for a key to be pressed.


FORMAT: PAUSE jiffies

Action: As above, but pauses for the specified number of jiffies.

  • A jiffie is 1/60th of a second.
Example
PAUSE 60

Pause for 1 second.

PAUSE UNTIL

TYPE: plusBASIC v0.24h system statement

FORMAT: PAUSE UNTIL condition

Action: As PAUSE, but suspends program execution until the specified condition is true.

  • condition is a numeric expression that evaluates to 0 for false, or any other number for true.
Example
PAUSE UNTIL INKEY OR JOYK(0)

Pause until a keyboard key or game controller button is pressed.

⚠️ **GitHub.com Fallback** ⚠️