Console statements – BrightSign HD2000 BrightScript Reference Guide User Manual

Page 20

Advertising
background image

20

Console Statements

The statements described in this section let you send and receive strings and character to consoles. Currently
the only console is the BrightSign serial port Shell.

Statements covered in this section:

TTY Console

PRINT
@ (PRINT modifier)
TAB (PRINT modifier)
INPUT
LINEINPUT

PRINT item list

Prints an item or a list of items on the console. The items may be either string constants (character sequences
enclosed in quotes), string variables, numeric constants (numbers), variables, or expressions involving all of
the preceding items. The items to be PRINTed may be separated by commas or semi-colons. If commas are
used, the cursor automatically advances to the next print zone before printing the next item. If semi-colons
are used, no space is inserted between the items printed.

Positive numbers are printed with a leading blank (instead of a plus sign); all numbers are printed with a
trailing blank; and no blanks are inserted before or after strings.


Examples:

X=5:PRINT 25; "IS EQUAL TO"; X ^2
RUN
25 IS EQUAL TO 25

A$="STRING"
PRINT A$;A$,A$;" ";A$
RUN
STRINGSTRING STRING STRING

10 PRINT "ZONE 1","ZONE 2","ZONE 3","ZONE 4”
RUN
ZONE 1 ZONE 2 ZONE 3 ZONE 4

Each print zone is 16 char wide. The cursor moves to the next print zone each time a comma is encountered.

10 PRINT "ZONE 1"„"ZONE 3"
RUN
ZONE 1 ZONE 3

Advertising
This manual is related to the following products: