AT&T 6300 Programmer's Manual page 388

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

OPEN COM
Statement
Example
7-232
LF allows communication files to be printed
on a serial line printer. When LF is specified, a
linefeed character (OAH) is automatically sent
after each carriage return character (ODH).
This includes the carriage return sent as a
result of the width setting. INPUT# and
LINE INPUT#, when used to read from a
COM file that was opened with the LF option,
stop when they see a carriage return. The
linefeed is always ignored.
The LF option is superseded by the BIN
option.
In the BIN mode, tabs are not expanded to
spaces, a carriage return is not forced at the
end-of-line, and CTRL
Z
is not treated as end-
of-file. When the channel is closed, CTRL
Z
is
sent over the RS232 line. The BIN option
supersedes the LF option.
In ASC mode, tabs are expanded, carriage
returns are forced at the end-of-line, CTRL
Z
is treated as end-of-file, and XON/XOFF
protocol (if supported) is enabled. When the
channel is closed, CTRL
Z
will be sent over the
RS232 line.
10 OPEN IliCOM1:9600,N,B,1,BIN" AS #2
will open communications channel 1 at a speed
of 9600 baud with no parity bit, 8 data bits, and
stop bit. Input/Output will be in the binary
mode. Other lines in the program may now
access channel 1 as file number 2.

Advertisement

Table of Contents
loading

Table of Contents