![QSI QTERM-R55 User Manual Download Page 39](http://html1.mh-extra.com/html/qsi/qterm-r55/qterm-r55_user-manual_3304037039.webp)
QTERM-R55 User's Manual
29
QSI Corporation Fax 801-466-8792 Web www.qsicorp.com Phone 801-466-8770
Command
Description
keydef
Defines the keystring for a key
keyrelease
Used for enabling or disabling key release strings
label
Used to place a marker in the code for use with gotos and gosubs
led
Used to turn the terminal LEDs on or off
left$(string$,x)
Returns the left x characters from string$
len(string$)
Returns the length of string$
log(x)
Calculates the logarithim of x
lowbat
Used in the
on lowbat
statement that define a handler for the low battery inter-
rupt
lower$(string$)
Converts the characters in string$ to lower case
ltrim$(string$)
Removes any spaces from the left side of the string
max(x,y)
Returns the higher of the x and y values
mid$(string$,x,y)
Returns the middle y characters from string$ starting at position x
min(x,y)
Returns the lower of the x and y values
mod(x,y)
Returns the remainder when dividing x by y
next x
Increments x and goes to the start of the for loop
normal
Used in the
cursor normal
statement to return the cursor mode to normal
not
Returns the inverse of whatever is after it
off
Used in other commands to turn something off
on
Used in other commands to turn something on
on x gosub
Performs a gosub to the label in the variable x
on x goto
Performs a goto to the label in the variable x
open #x
Open file x
or
Used to combine two conditional statements
pause x
Delays program execution for x seconds
peek(x$)
Used to read QTERM-R55 internal variables - legal values of x$ are: rows, col-
umns numkeys, cursorX, cursorY, COM1, COM2, ostick
pi or PI
The value of pi 3.141592653589793 in 32 bit ANSI/IEEE 754-1985 format.
Prints whatever is after it to the display
print at
Works the same as print but outputs to a specified location
ran(x)
Returns a random number between 0 and x
read
Reads one data item at a time from the data lines in the program
recv
Receives input from the serial port and stores it as a number
recv$
Receives input from the serial port and stores it as a string
release
Used in a
keydef
statement to define a key release string
rem
Signals a comment; the line is not executed
restore
Used to specify the location that read gets its data from
return
Used at the end of a gosub to return to the next line in the main program flow
continued
Table C-1. qaBASIC Command Summary