LPRINT
This page was last modified 22:51, 27 January 2018 by Rderooy. Based on work by Mars2000you and NYYRIKKI.

Contents

Effect

Used to print and format text and numbers to a printer connected to the standard MSX parallel port.

Contrary to PRINT, you can't shorten LPRINT to "L?" Doing this will cause a very hard to find problem. The listing will look fine, but it will still cause a "Syntax error". In case you have done that you can list the lines to the screen and push the RETURN key on top of the lines to fix these errors.

Syntax

LPRINT [USING <format string>;] [<print list>]

Parameters

<print list> and <format string> are exactly same as with PRINT command. Please see documentation there.

Example

10 ' Initialize Epson compatible printer and select NLQ Sans Serif font:
20 SCREEN ,,,,1:LPRINT CHR$(27);"@";CHR$(27);"k1";

Related to

LFILES, LLIST, LPOS(), PRINT, SCREEN

Compatibility

MSX-BASIC 1.0 or higher