# crt statement

The crt statement outputs unconditionally
to the terminal display, regardless of whether or not the printer
on condition is in effect.

**Synonyms:** display

## Syntax

```
crt {exp{,exp..}{:}
```

## Parameter(s)

| exp | Expression to be output unconditionally to the terminal display. |
| --- | --- |

## Description

This functions like the print statement, but is not affected by:

- The p option used with the run command at TCL.

- The printer on statement.

- A heading, footing, or page statement.

All of the @() functions provided with
the print statement are allowed.

When expressions
are separated by commas, the next expression is output starting at
the column position defined by the next output tab.

A colon
at the end inhibits the output of a CR/LF following the output of
the last printed line.

Note: To generate backwards compatible
object code, execute the set-compiler (ap command
prior to compiling.

## Example(s)

crt makes
it easy to display status messages during printing.

```
printer on
for l = 1 to maxlines
 print line<l> ;* to printer
 if rem(l,50) else crt l ;* to screen
next l
printer close
printer off
```
The line counter `l` displays on the screen
every 50 lines.

## See also

- [, reserved character](https://d3codex.com/pickbasic-flashbasic/comma-reserved-character/)
- [: relational operator](https://d3codex.com/pickbasic-flashbasic/colon-relational-operator/)
- [@() function](https://d3codex.com/pickbasic-flashbasic/at-parenthesis-function/)
- [cat relational operator](https://d3codex.com/pickbasic-flashbasic/cat-relational-operator/)
- [char() function](https://d3codex.com/pickbasic-flashbasic/char-function/)
- [CRT](https://d3codex.com/definitions/crt/)
- [footing statement](https://d3codex.com/pickbasic-flashbasic/footing-statement/)
- [heading statement](https://d3codex.com/pickbasic-flashbasic/heading-statement/)
- [lp command](https://d3codex.com/flashbasicdebugger/lp-command/)
- [Masking](https://d3codex.com/pickbasic-flashbasic/masking/)
- [page statement](https://d3codex.com/pickbasic-flashbasic/page-statement/)
- [pc command](https://d3codex.com/flashbasicdebugger/pc-command/)
- [print on statement](https://d3codex.com/pickbasic-flashbasic/print-on-statement/)
- [print statement](https://d3codex.com/pickbasic-flashbasic/print-statement/)
- [printer statement](https://d3codex.com/pickbasic-flashbasic/printer-statement/)
- [run command](https://d3codex.com/tcl/run-command/)
- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)

---
Source: https://d3codex.com/pickbasic-flashbasic/crt-statement/ - part of the D3Codex reference.
