Please enable JavaScript to view this site.

ZTERM

This escape sequence causes the next printer passthrough command to create a file, rather than passing the data to either the parallel port or to ZTERM's dot-matrix printer emulator.

Parameter

Value or Description

Lead in

CHR$(27) CHR$(24)

File name

Followed with CHR$(0)

 

The file is written into the default folder used for log files. This escape sequence works on the next printer passthrough command - if you want always send printer output to a file you must prefix each printer passthrough command with this escape sequence.

When transparent print mode terminates, ZTERM will display a dialog telling the user that the output file has been generated. Prefixing the file name with a ! character, will prevent ZTERM from displaying this dialog.

Example

PRINT CHR$(27);CHR$(24);"example.lst";CHR$(0);

PRINT TAB(-1,82);        ! printer passthrough mode

PRINT "This will end up in a file on the PC"

PRINT TAB(-1,83);        ! printer passthrough off