Replace printcap(5) capabilities which no longer exist
with equivalent capabilities. PR: 47411 Submitted by: stb
This commit is contained in:
parent
53c9422a0b
commit
afc68343b6
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=15946
1 changed files with 37 additions and 84 deletions
|
|
@ -962,9 +962,7 @@ showpage</programlisting>
|
||||||
linkend="printing-device">Identifying the Printer
|
linkend="printing-device">Identifying the Printer
|
||||||
Device</link> for more information. Also, if the printer is
|
Device</link> for more information. Also, if the printer is
|
||||||
on a serial port, set up the communication parameters with
|
on a serial port, set up the communication parameters with
|
||||||
the <literal>fs</literal>, <literal>fc</literal>,
|
the <literal>ms#</literal> capability which is discussed in the <link
|
||||||
<literal>xs</literal>, and <literal>xc</literal>
|
|
||||||
capabilities; which is discussed in the <link
|
|
||||||
linkend="printing-commparam">Configuring Spooler
|
linkend="printing-commparam">Configuring Spooler
|
||||||
Communications Parameters</link> section.</para>
|
Communications Parameters</link> section.</para>
|
||||||
</step>
|
</step>
|
||||||
|
|
@ -1256,78 +1254,43 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
||||||
<replaceable>bps-rate</replaceable>, where
|
<replaceable>bps-rate</replaceable>, where
|
||||||
<replaceable>bps-rate</replaceable> can be 50, 75, 110,
|
<replaceable>bps-rate</replaceable> can be 50, 75, 110,
|
||||||
134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, 9600,
|
134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, 9600,
|
||||||
19200, or 38400 bits-per-second.</para>
|
19200, 38400, 57600, or 115200 bits-per-second.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><literal>fc#<replaceable>clear-bits</replaceable></literal></term>
|
<term><literal>ms#<replaceable>stty-mode</replaceable></literal></term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Clears the flag bits
|
<para>Sets the options for the terminal device after
|
||||||
<replaceable>clear-bits</replaceable> in the
|
opening the device. &man.stty.1; explains the
|
||||||
<replaceable>sgttyb</replaceable> structure after
|
available options.</para>
|
||||||
opening the device.</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term><literal>fs#<replaceable>set-bits</replaceable></literal></term>
|
|
||||||
|
|
||||||
<listitem>
|
|
||||||
<para>Sets the flag bits
|
|
||||||
<replaceable>set-bits</replaceable> in the
|
|
||||||
<replaceable>sgttyb</replaceable> structure.</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term><literal>xc#<replaceable>clear-bits</replaceable></literal></term>
|
|
||||||
|
|
||||||
<listitem>
|
|
||||||
<para>Clears local mode bits
|
|
||||||
<replaceable>clear-bits</replaceable> after opening the
|
|
||||||
device.</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term><literal>xs#<replaceable>set-bits</replaceable></literal></term>
|
|
||||||
|
|
||||||
<listitem>
|
|
||||||
<para>Sets local mode bits
|
|
||||||
<replaceable>set-bits</replaceable>.</para>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
|
||||||
<para>For more information on the bits for the
|
|
||||||
<literal>fc</literal>, <literal>fs</literal>,
|
|
||||||
<literal>xc</literal>, and <literal>xs</literal> capabilities,
|
|
||||||
see the file
|
|
||||||
<filename>/usr/include/sys/ioctl_compat.h</filename>.</para>
|
|
||||||
|
|
||||||
<para>When <application>LPD</application> opens the device
|
<para>When <application>LPD</application> opens the device
|
||||||
specified by the
|
specified by the <literal>lp</literal> capability, it sets
|
||||||
<literal>lp</literal> capability, it reads the flag bits in
|
the characteristics of the device to those specified with
|
||||||
the <literal>sgttyb</literal> structure; it clears any bits in
|
the <literal>ms#</literal> capability. Of particular
|
||||||
the <literal>fc</literal> capability, then sets bits in the
|
interest will be the <literal>parenb</literal>,
|
||||||
<literal>fs</literal> capability, then applies the resultant
|
<literal>parodd</literal>, <literal>cs5</literal>,
|
||||||
setting. It does the same for the local mode bits as
|
<literal>cs6</literal>, <literal>cs7</literal>,
|
||||||
well.</para>
|
<literal>cs8</literal>, <literal>cstopb</literal>,
|
||||||
|
<literal>crtscts</literal>, and <literal>ixon</literal>
|
||||||
|
modes, which are explained in the &man.stty.1;
|
||||||
|
manual page.</para>
|
||||||
|
|
||||||
<para>Let us add to our example printer on the sixth serial
|
<para>Let us add to our example printer on the sixth serial
|
||||||
port. We will set the bps rate to 38400. For the flag bits,
|
port. We will set the bps rate to 38400. For the mode,
|
||||||
we will set the <literal>TANDEM</literal>,
|
we will set no parity with <literal>-parenb</literal>,
|
||||||
<literal>ANYP</literal>, <literal>LITOUT</literal>,
|
8-bit characters with <literal>cs8</literal>,
|
||||||
<literal>FLUSHO</literal>, and <literal>PASS8</literal> flags.
|
no modem control with <literal>clocal</literal> and
|
||||||
For the local mode bits, we will set the
|
hardware flow control with <literal>crtscts</literal>:</para>
|
||||||
<literal>LITOUT</literal> and <literal>PASS8</literal>
|
|
||||||
flags:</para>
|
|
||||||
|
|
||||||
<programlisting>bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
<programlisting>bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
||||||
:sh:sd=/var/spool/lpd/bamboo:\
|
:sh:sd=/var/spool/lpd/bamboo:\
|
||||||
:lp=/dev/ttyd5:fs#0x82000c1:xs#0x820:</programlisting>
|
:lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:</programlisting>
|
||||||
</sect4>
|
</sect4>
|
||||||
|
|
||||||
<sect4 id="printing-textfilter">
|
<sect4 id="printing-textfilter">
|
||||||
|
|
@ -1396,7 +1359,7 @@ rattan|line|diablo|lp|Diablo 630 Line Printer:\
|
||||||
|
|
||||||
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
||||||
:sh:sd=/var/spool/lpd/bamboo:\
|
:sh:sd=/var/spool/lpd/bamboo:\
|
||||||
:lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:\
|
:lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:\
|
||||||
:if=/usr/local/libexec/if-simple:</programlisting>
|
:if=/usr/local/libexec/if-simple:</programlisting>
|
||||||
</sect4>
|
</sect4>
|
||||||
|
|
||||||
|
|
@ -2167,7 +2130,7 @@ rattan|line|diablo|lp|Diablo 630 Line Printer:\
|
||||||
|
|
||||||
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
||||||
:sh:sd=/var/spool/lpd/bamboo:\
|
:sh:sd=/var/spool/lpd/bamboo:\
|
||||||
:lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:\
|
:lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:rw:\
|
||||||
:if=/usr/local/libexec/psif:\
|
:if=/usr/local/libexec/psif:\
|
||||||
:df=/usr/local/libexec/psdf:</programlisting>
|
:df=/usr/local/libexec/psdf:</programlisting>
|
||||||
|
|
||||||
|
|
@ -3292,7 +3255,7 @@ rattan|line|diablo|lp|Diablo 630 Line Printer:\
|
||||||
|
|
||||||
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
||||||
:sh:sd=/var/spool/lpd/bamboo:sc:\
|
:sh:sd=/var/spool/lpd/bamboo:sc:\
|
||||||
:lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:\
|
:lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:rw:\
|
||||||
:if=/usr/local/libexec/psif:\
|
:if=/usr/local/libexec/psif:\
|
||||||
:df=/usr/local/libexec/psdf:</programlisting>
|
:df=/usr/local/libexec/psdf:</programlisting>
|
||||||
|
|
||||||
|
|
@ -3368,7 +3331,7 @@ rattan|line|diablo|lp|Diablo 630 Line Printer:\
|
||||||
|
|
||||||
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
||||||
:sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:\
|
:sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:\
|
||||||
:lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:\
|
:lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:rw:\
|
||||||
:if=/usr/local/libexec/psif:\
|
:if=/usr/local/libexec/psif:\
|
||||||
:df=/usr/local/libexec/psdf:</programlisting>
|
:df=/usr/local/libexec/psdf:</programlisting>
|
||||||
|
|
||||||
|
|
@ -3443,7 +3406,7 @@ rattan|line|diablo|lp|Diablo 630 Line Printer:\
|
||||||
#
|
#
|
||||||
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
||||||
:sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:mx#5000:\
|
:sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:mx#5000:\
|
||||||
:lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:\
|
:lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:rw:\
|
||||||
:if=/usr/local/libexec/psif:\
|
:if=/usr/local/libexec/psif:\
|
||||||
:df=/usr/local/libexec/psdf:</programlisting>
|
:df=/usr/local/libexec/psdf:</programlisting>
|
||||||
|
|
||||||
|
|
@ -3530,7 +3493,7 @@ madrigal.fishbaum.de</programlisting>
|
||||||
|
|
||||||
<programlisting>bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
<programlisting>bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
|
||||||
:sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:mx#5000:\
|
:sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:mx#5000:\
|
||||||
:lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:mx#5000:\
|
:lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:rw:mx#5000:\
|
||||||
:if=/usr/local/libexec/psif:\
|
:if=/usr/local/libexec/psif:\
|
||||||
:df=/usr/local/libexec/psdf:</programlisting>
|
:df=/usr/local/libexec/psdf:</programlisting>
|
||||||
|
|
||||||
|
|
@ -4739,9 +4702,9 @@ exit 2</programlisting>
|
||||||
<para>Have FreeBSD's serial line driver automatically
|
<para>Have FreeBSD's serial line driver automatically
|
||||||
convert LF to CR+LF. Of course, this works with printers
|
convert LF to CR+LF. Of course, this works with printers
|
||||||
on serial ports <emphasis>only</emphasis>. To enable this
|
on serial ports <emphasis>only</emphasis>. To enable this
|
||||||
feature, set the <literal>CRMOD</literal> bit
|
feature, use the <literal>ms#</literal> capability and
|
||||||
in <literal>fs</literal>
|
set the <literal>onlcr</literal> mode
|
||||||
capability in the <filename>/etc/printcap</filename> file
|
in the <filename>/etc/printcap</filename> file
|
||||||
for the printer.</para>
|
for the printer.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
|
@ -4848,27 +4811,17 @@ teak|hp|laserjet|Hewlett Packard LaserJet 3Si:\
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>If the printer supports XON/XOFF flow control, have
|
<para>If the printer supports XON/XOFF flow control, have
|
||||||
FreeBSD use it by specifying the TANDEM bit in the
|
FreeBSD use it by specifying the <literal>ixon</literal> mode
|
||||||
<literal>fs</literal> capability.</para>
|
in the <literal>ms#</literal> capability.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>If the printer supports carrier flow control, specify
|
<para>If the printer supports carrier flow control, specify
|
||||||
the <literal>MDMBUF</literal> bit in the
|
the <literal>crtscts</literal> mode in the
|
||||||
<literal>fs</literal> capability.
|
<literal>ms#</literal> capability.
|
||||||
Make sure the cable connecting the printer to the computer
|
Make sure the cable connecting the printer to the computer
|
||||||
is correctly wired for carrier flow control.</para>
|
is correctly wired for carrier flow control.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
|
||||||
<para>If the printer does not support any flow control, use
|
|
||||||
some combination of the <literal>NLDELAY</literal>,
|
|
||||||
<literal>TBDELAY</literal>, <literal>CRDELAY</literal>,
|
|
||||||
<literal>VTDELAY</literal>, and <literal>BSDELAY</literal>
|
|
||||||
bits in the <literal>fs</literal> capability
|
|
||||||
to add appropriate delays to the stream of data sent to
|
|
||||||
the printer.</para>
|
|
||||||
</listitem>
|
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
@ -4883,8 +4836,8 @@ teak|hp|laserjet|Hewlett Packard LaserJet 3Si:\
|
||||||
<para>This is usually another symptom of incorrect
|
<para>This is usually another symptom of incorrect
|
||||||
communications parameters with a serial printer. Double-check
|
communications parameters with a serial printer. Double-check
|
||||||
the bps rate in the <literal>br</literal> capability, and the
|
the bps rate in the <literal>br</literal> capability, and the
|
||||||
parity bits in the <literal>fs</literal> and
|
parity setting in the
|
||||||
<literal>fc</literal> capabilities; make sure the printer is
|
<literal>ms#</literal> capability; make sure the printer is
|
||||||
using the same settings as specified in the
|
using the same settings as specified in the
|
||||||
<filename>/etc/printcap</filename> file.</para>
|
<filename>/etc/printcap</filename> file.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue