Contents |
Effect
Clears the printer buffer created by PB.TSR under MemMan 2 and optionally changes its size.
Syntax
CMD CLEAR PRINTBUF <Size>)
Parameter
<Size> is a number to specify the size of the printer buffer.
If you don't specify a size, the current size of the printer buffer is not modified.
If you specify 0 (zero) as size, the printer buffer actually no longer exists. The characters to be printed will be then directly sent to the printer.
Any other specified value is rounded upwards to always have a size corresponding to a multiple of 16kB.
You don't need to matter about the highest value you can specify according the size of the memory mapper in the used machine as it is handled by MemMan. The memory manager reserves 80kB for the 'standard' working of the computer, so if you specify a too high size, it will automatically adapt it. The adapted size can be checked with the ATTR$ FRE PRINTBUF function.
By default, after installation of PB.TSR, the size of the printer buffer is
- 48kB with a 128KB memory mapper
- 64KB with a 144KB or higher memory mapper
Example
With a 512kB memory mapper (program launched directly after installation of MemMan 2 and PB.TSR)
10 CLS:PRINT ATTR$ FRE PRINTBUF 20 PRINT:A$=INPUT$(1) 30 CMD CLEAR PRINTBUF 128 40 PRINT ATTR$ FRE PRINTBUF 50 PRINT:A$=INPUT$(1) 60 CMD CLEAR PRINTBUF 300 70 PRINT ATTR$ FRE PRINTBUF 80 PRINT:A$=INPUT$(1) 90 CMD CLEAR PRINTBUF 512 100 PRINT ATTR$ FRE PRINTBUF RUN
64 128 304 432 Ok
Related to
Compatibility
MemManTSR BASIC with PB.TSR installed