From owner-freebsd-doc Mon Jul 29 13:06:55 1996 Return-Path: owner-doc Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA19204 for doc-outgoing; Mon, 29 Jul 1996 13:06:55 -0700 (PDT) Received: from gatekeeper.fsl.noaa.gov (gatekeeper.fsl.noaa.gov [137.75.131.181]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA19195 for ; Mon, 29 Jul 1996 13:06:32 -0700 (PDT) Received: from emu.fsl.noaa.gov (kelly@emu.fsl.noaa.gov [137.75.60.32]) by gatekeeper.fsl.noaa.gov (8.7.5/8.7.3) with ESMTP id UAA24772 for ; Mon, 29 Jul 1996 20:06:24 GMT Message-Id: <199607292006.UAA24772@gatekeeper.fsl.noaa.gov> Received: by emu.fsl.noaa.gov (1.40.112.4/16.2) id AA069890800; Mon, 29 Jul 1996 14:06:41 -0600 Date: Mon, 29 Jul 1996 14:06:41 -0600 From: Sean Kelly To: doc@freebsd.org Subject: Patch for printing.sgml Sender: owner-doc@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Here are some diffs for printing.sgml that describe the stty-style mode setting capability in /etc/printcap. These diffs also clarify printers connected in read/write mode and add some new text on flow-control troubleshooting. I've tested these diffs by running `patch < file' and then remaking the handbook. If you don't get similar results, please let me know and I'll fix 'em! --- /tmp/printing.sgml Sun Jun 23 11:55:54 1996 +++ printing.sgml Sun Jun 23 11:56:21 1996 @@ -851,10 +851,18 @@ /etc/printcap file using the /etc/printcap: + LPD opens the device in the /etc/printcap: # # /etc/printcap for host rose - identified what devices to use @@ -865,7 +873,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\ :sh:sd=/var/spool/lpd/bamboo:\ - :lp=/dev/ttyd5: + :lp=/dev/ttyd5:rw: If you do not specify the fc#/ - - Clears the flag bits fs#/ + 4800, 9600, 19200, 38400, 57600, or 115200 + bits-per-second. - Sets the flag bits ms=/ - xc#/ + Sets termios communications parameters using a + comma-separated list of identifiers compatible with + the stty command. See the termios(4) and the + stty(1) manual pages for more information. - Clears local mode bits xs#/ - - Sets local mode bits - For more information on the bits for the /usr/include/sys/ioctl_compat.h. - - When LPD opens the device specified by the bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\ :sh:sd=/var/spool/lpd/bamboo:\ - :lp=/dev/ttyd5:fs#0x82000c1:xs#0x820: + :lp=/dev/ttyd5:rw:\ + :ms=cs8,-cstopb,-parenb,ixon,ixoff,cread,clocal,-opost,-echo,-echonl: - Installing the Text Filter @@ -1011,7 +1009,8 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\ :sh:sd=/var/spool/lpd/bamboo:\ - :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:\ + :lp=/dev/ttyd5:rw:\ + :ms=cs8,-cstopb,-parenb,ixon,ixoff,cread,clocal,-opost,-echo,-echonl:\ :if=/usr/local/libexec/if-simple: @@ -1158,9 +1157,10 @@ Have FreeBSD's serial line driver automatically convert LF to CR+LF. Of course, this works with printers on serial ports - /etc/printcap file for the printer. + /etc/printcap file. Send an - If the printer supports XON/XOFF flow - control, have FreeBSD use it by specifying the - TANDEM bit in the If the printer supports XON/XOFF (software) + flow control, specify the /etc/printcap file. + + If the printer supports RTS/CTS flow + control, specify the If the printer supports DSR flow control, + specify the If the printer supports carrier flow - control, specify the MDMBUF bit in the If the printer does not support any flow - control, use some combination of the NLDELAY, - TBDELAY, CRDELAY, VTDELAY, and BSDELAY bits in - the + + For the last three flow control options, make sure + the cable connecting the printer to the computer is + correctly wired. + + If the printer has no flow control feature, try + using a lower bps rate. /etc/printcap file. + and the parity options in the /etc/printcap file. @@ -3321,7 +3331,8 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\ :sh:sd=/var/spool/lpd/bamboo:sc:\ - :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:\ + :lp=/dev/ttyd5:rw:\ + :ms=cs8,-cstopb,-parenb,ixon,ixoff,cread,clocal,-opost,-echo,-echonl:\ :if=/usr/local/libexec/psif:\ :df=/usr/local/libexec/psdf: @@ -3393,7 +3404,8 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\ :sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:\ - :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:\ + :lp=/dev/ttyd5:rw:\ + :ms=cs8,-cstopb,-parenb,ixon,ixoff,cread,clocal,-opost,-echo,-echonl:\ :if=/usr/local/libexec/psif:\ :df=/usr/local/libexec/psdf: @@ -3451,7 +3463,8 @@ # bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\ :sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:mx#5000:\ - :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:\ + :lp=/dev/ttyd5:rw:\ + :ms=cs8,-cstopb,-parenb,ixon,ixoff,cread,clocal,-opost,-echo,-echonl:\ :if=/usr/local/libexec/psif:\ :df=/usr/local/libexec/psdf: @@ -3524,7 +3537,8 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\ :sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:mx#5000:\ - :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:mx#5000:\ + :lp=/dev/ttyd5:rw:\ + :ms=cs8,-cstopb,-parenb,ixon,ixoff,cread,clocal,-opost,-echo,-echonl:\ :if=/usr/local/libexec/psif:\ :df=/usr/local/libexec/psdf: