CRT Statement

Outputs data to the display.

Syntax

CRT {print-list}

Syntax elements

print-list is a single expression or a series of expressions, separated by commas or colons.

The expressions can be any text string enclosed in quotes, a numerical value, a variable that evaluates to a text string, or any expression used to denote output formatting.

Operation

The CRT statement is functionally equivalent to the PRINT statement, except that the CRT statement converts all system delimiters to printable characters, and the CRT statement is not affected by the PRINTER ON/OFF statements or the P option of the RUN command.

Output formatting, format strings, direct cursor control, and video effects operate the same with the CRT statement as with the PRINT statement. For example, a colon (:) at the end of print-list inhibits a new line. Refer to the section PRINT Using Output Formatting in the description of the PRINT statement, and to the description of the @ function for more information.

FOOTING and HEADING statements have no effect on CRT output.

Examples

CRT 5*(X+Y)

Displays the current value of the expression 5*(X+Y).

CRT

Displays a blank line.

A = 728
B = 4
CRT A/B,A+B,A,B:

Displays the values 182 (A/B), 732 (A+B), 728 and 4. The cursor is left at the end of the displayed values.