{{htmlmetatags>metatag-robots=() metatag-title=(PRINT BUFFER | ugBASIC User Manual) metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum) metatag-description=(Manual page for PRINT BUFFER) metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png) metatag-og:title=(PRINT BUFFER | ugBASIC User Manual) metatag-og:description=(Manual page for PRINT BUFFER) }} ====== ugBASIC User Manual ====== ===== PRINT BUFFER ✓ ===== ===== SYNTAX ===== PRINT BUFFER buf1 [; [buf2] [; ...] ... ] PRINT BUFFER RAW buf1 [; [buf2] [; ...] ... ] PRINT BUFFER [expression]{;|,[expression]|;[expression]} ... ==== PURPOSE ==== This is a specific variant of ''PRINT'' that can be used to print large amount of text. The ''PRINT BUFFER'' instruction does not have the limits of ''PRINT'' strings, and is able to print any file that have been loaded. An item or a list of items can follow the command. The list of items can consist of any group of buffers. Each element in the list must be separated by either a semi-colon '';'' or a comma '',''. A semi-colon prints the data immediately after the previous value, whereas a comma first moves the cursor to the next ''TAB'' position on the screen. Normally the cursor will be advanced downwards by a single line after each ''PRINT BUFFER'' instruction. This can be suppressed by adding a separator after the print. As before, a semicolon will preserve the cursor position after the operation, and a comma will place the cursor to the next ''TAB'' stop before proceeding. Finally, it is possible to omit the native conversion of the buffer storage system, if you want to print "as is". In that case you need to use the ''RAW'' keyword. ==== EXAMPLE ==== PRINT BUFFER description PRINT BUFFER RAW descriptionRaw file := load("example.txt") PRINT BUFFER file See also the following example files: * ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/buffers_print_01.bas|buffers_print_01.bas]]'' * ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/contrib_ascii.bas|contrib_ascii.bas]]'' * ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/contrib_ascii2.bas|contrib_ascii2.bas]]'' * ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/buffers_print_01.bas|buffers_print_01.bas]]'' ==== ABBREVIATION ==== ? Bf ==== AVAILABLE ON ==== * Atari (400/800) * Atari XL/XE * Commodore 128 (MOS 8502) * Commodore 128 (Zilog Z80) * Commodore 64 * Commodore 64+REU * TRS-80 Color Computer * TRS-80 Color Computer 3 * ColecoVision * Amstrad CPC 664 * Dragon 32 * Dragon 64 * Thomson MO5 * Thomson MO5 * Olivetti Prodest PC128 * Commodore PLUS/4 * SEGA SC-3000 * SEGA SG-1000 * VG-5000 * Commodore VIC-20 * ZX Spectrum 48 ==== ANY PROBLEM? ==== If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please [[https://github.com/spotlessmind1975/ugbasic/issues/new?title=ISSUE ON PRINT BUFFER|open an issue]] for this keyword on GitHub. Thank you!===== POWERED BY ===== [[:ugbasic:user:index|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]