LPRINT and LLIST now output to a printer device or file instead of the screen. By default, output is appended to LPT1.TXT in the current directory. Use --lpt to redirect to a real printer device (/dev/lp0, LPT1 on FreeDOS) or a custom file path. Includes full PRINT format support (semicolons, commas, TAB, SPC, PRINT USING) and LLIST with line number range parsing.
9 lines
259 B
QBasic
9 lines
259 B
QBasic
10 REM LPRINT test - outputs to printer (LPT1.TXT by default)
|
|
20 LPRINT "LPRINT test"
|
|
30 LPRINT "Numbers: ";1;2;3
|
|
40 LPRINT "Comma",",","zones"
|
|
50 LPRINT TAB(5);"TAB(5)"
|
|
60 LPRINT SPC(3);"SPC(3)"
|
|
70 LPRINT USING "###.##"; 42.5
|
|
80 PRINT "LPRINT test complete"
|