Atari ST series Technical Reference Manual page 41

Hide thumbs Also See for ST series:
Table of Contents

Advertisement

XBIOS Device and System Functions
ing routines) also use these settings when determining what
kind of output to send to the printer. Note that the built-in
screen print feature does not support some possible printer
types (like Epson color printers, or color daisywheels). The
format for the Setprt() call is:
int code, newcode;
code = Setprt(newcode);
where newcode is a 16-bit flag used to describe various attri­
butes of the printer. The meaning of each flag bit is shown in
the following table:
Table 3-1. newcode Flag Bits
Bit
Number
Description
0
Print type
1
Color type
2
Control code type
3
Print quality
4
Printer port
5
Paper type
7
8
9
10
11
12
13
14
15
The old value of the printer configuration code is re­
turned in the code variable. By setting newcode to - 1
(OxFFFF), it's possible to reaa the current code value without
changing it.
The next character device function allows you to confi­
gure the RS-232 serial port.
int speed, handshake, ucr, rsr, tsr, scr;
Rsconf(speed, handshake, ucr, rsr, trs, scr);
Meaning of Value
0 = Dot-matrix
1 = Daisywheel
0 = Monochrome
1 = Color print
0 = Atari
1 = Epson
0 = Draft
1 = Final quality
0 = Parallel
1 = RS-232 serial
0 = Continuous
1 = Single Sheet
Reserved for future use
Reserved for future use
Reserved for future use
Reserved for future use
Reserved for future use
Reserved for future use
Reserved for future use
Reserved for future use
Must be 0
33

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents