# OUT

Updated: 10/14/2021, 2:20:00 PM
Created: 10/14/2021, 2:20:00 PM
Last Updated By: mikes
Read Time: 1 minute(s)

Tags: output terminal

# Description

The OUT statement is used to send raw characters to the current output device (normally the terminal). The statement takes the general form:

OUT expression
1

Where expression should evaluate to a numeric integer in the range 0 to 255, being the entire range of ASCII characters.

# Note

The numeric expression is first converted to the raw ASCII character specified and then sent directly to the output advice.

An example of use is as:

EQUATE BELL TO OUT 7
BELL ;* Sound terminal bell

FOR I = 32 TO 127;
     OUT I;* Printable chars
NEXT I ;

BELL
1
2
3
4
5
6
7
8

Go back to jBASE BASIC

Go back to Programmers' Reference Guide