7-
32
ENDL
ine
(End of Line)
ENDL=C
causes each line sent to the printer to end with a carriage return
(factory default)
(CHR$ (13)) only.
ENDL=L
causes each line sent to the printer to end with a line feed
(CHR$ (10)) only.
ENDL=CL
causes each line sent to the printer to end with a carriage return
and a line feed (CHR$ (13); CHR$ (10)).
ENDL=LC
causes each line sent to the printer to end with a line feed and a
carriage return (CHR$ (10); CHR$ (13)).
Note: Refer to
REST
ore and
SAVE
commands to alter the
default in non-volatile memory.
ENDL?
returns
C
,
L
,
CL
, or
LC
, depending on the present setting.
IBM BASICA Example (assuming com1 is initialized to #1 and 5A-1MP
ECHO
is
OFF
):
.
.
.
100
PRINT #1 "ENDLINE?"
'Get present setting.
110
INPUT #1, A$
'A$="C", "L", "CL", or "LC".
120
IF MID$ (A$,1,1)=C THEN PRINT "CARRIAGE
RETURN" ELSE PRINT "LINE FEED"
130
IF LEN (A$)=1 THEN PRINT "ONLY.": GOTO 150
140
IF MID$ (A$,2,1)=C THEN PRINT" AND
CARRIAGE RETURN." ELSE PRINT "AND
LINE FEED"
.
.
.
200
PRINT #1, "ENDL=CL"
'Setting for many IBM compatible printers.
TERMINAL Example (assuming
ECHO
is
ON
):
ENDL?
Request setting.
C
Power-up default.
ENDLINE=LINE FEED
ENDL?
Request setting.
L
Ignored extra chrs after "l" in "line feed".
ENDL=LC
Set to line feed, carriage return.
ENDL?
Verify it.
LC
It worked.