View | Details | Raw Unified | Return to bug 47411
Collapse All | Expand All

(-)chapter.sgml (-66 / +29 lines)
Lines 1256-1333 Link Here
1256
		  <replaceable>bps-rate</replaceable>, where
1256
		  <replaceable>bps-rate</replaceable>, where
1257
		  <replaceable>bps-rate</replaceable> can be 50, 75, 110,
1257
		  <replaceable>bps-rate</replaceable> can be 50, 75, 110,
1258
		  134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, 9600,
1258
		  134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, 9600,
1259
		  19200, or 38400 bits-per-second.</para>
1259
		  19200, 38400, 57600, or 115200 bits-per-second.</para>
1260
	      </listitem>
1260
	      </listitem>
1261
	    </varlistentry>
1261
	    </varlistentry>
1262
1262
1263
	    <varlistentry>
1263
	    <varlistentry>
1264
	      <term><literal>fc#<replaceable>clear-bits</replaceable></literal></term>
1264
	      <term><literal>ms#<replaceable>stty-mode</replaceable></literal></term>
1265
1265
1266
	      <listitem>
1266
	      <listitem>
1267
		<para>Clears the flag bits
1267
                <para>Sets the options for the terminal device after
1268
		  <replaceable>clear-bits</replaceable> in the
1268
                  opening the device. &man.stty.1; explains the available
1269
		  <replaceable>sgttyb</replaceable> structure after
1269
                  options.</para>
1270
		  opening the device.</para>
1271
	      </listitem>
1270
	      </listitem>
1272
	    </varlistentry>
1271
	    </varlistentry>
1273
1272
1274
	    <varlistentry>
1273
	  <para>When <application>LPD</application> opens the device specified by
1275
	      <term><literal>fs#<replaceable>set-bits</replaceable></literal></term>
1274
	    the <literal>lp</literal> capability, it sets the characteristics of
1276
1275
	    the device to those specified with the <literal>ms#</literal>
1277
	      <listitem>
1276
	    capability. Of particular interest will be the
1278
		<para>Sets the flag bits
1277
	    <literal>parenb</literal>, <literal>parodd</literal>,
1279
		  <replaceable>set-bits</replaceable> in the
1278
	    <literal>cs5</literal>, <literal>cs6</literal>,
1280
		  <replaceable>sgttyb</replaceable> structure.</para>
1279
	    <literal>cs7</literal>, <literal>cs8</literal>,
1281
	      </listitem>
1280
	    <literal>cstopb</literal>, <literal>crtscts</literal>, and
1282
	    </varlistentry>
1281
	    <literal>ixon</literal> modes, which are explained in the &man.stty.1;
1283
1282
	    manual page.</para>
1284
	    <varlistentry>
1283
1285
	      <term><literal>xc#<replaceable>clear-bits</replaceable></literal></term>
1284
	  <para>Let us add to our example printer on the sixth serial port. We
1286
1285
	    will set the bps rate to 38400. For the mode, we will set no parity
1287
	      <listitem>
1286
	    with <literal>-parenb</literal>, 8-bit characters with
1288
		<para>Clears local mode bits
1287
	    <literal>cs8</literal>, no modem control with
1289
		  <replaceable>clear-bits</replaceable> after opening the
1288
	    <literal>clocal</literal> and hardware flow control with
1290
		  device.</para>
1289
	    <literal>crtscts</literal>:</para>
1291
	      </listitem>
1292
	    </varlistentry>
1293
1294
	    <varlistentry>
1295
	      <term><literal>xs#<replaceable>set-bits</replaceable></literal></term>
1296
1297
	      <listitem>
1298
		<para>Sets local mode bits
1299
		  <replaceable>set-bits</replaceable>.</para>
1300
	      </listitem>
1301
	    </varlistentry>
1302
	  </variablelist>
1303
1304
	  <para>For more information on the bits for the
1305
	    <literal>fc</literal>, <literal>fs</literal>,
1306
	    <literal>xc</literal>, and <literal>xs</literal> capabilities,
1307
	    see the file
1308
	    <filename>/usr/include/sys/ioctl_compat.h</filename>.</para>
1309
1310
	  <para>When <application>LPD</application> opens the device
1311
	    specified by the
1312
	    <literal>lp</literal> capability, it reads the flag bits in
1313
	    the <literal>sgttyb</literal> structure; it clears any bits in
1314
	    the <literal>fc</literal> capability, then sets bits in the
1315
	    <literal>fs</literal> capability, then applies the resultant
1316
	    setting.  It does the same for the local mode bits as
1317
	    well.</para>
1318
1319
	  <para>Let us add to our example printer on the sixth serial
1320
	    port.  We will set the bps rate to 38400.  For the flag bits,
1321
	    we will set the <literal>TANDEM</literal>,
1322
	    <literal>ANYP</literal>, <literal>LITOUT</literal>,
1323
	    <literal>FLUSHO</literal>, and <literal>PASS8</literal> flags.
1324
	    For the local mode bits, we will set the
1325
	    <literal>LITOUT</literal> and <literal>PASS8</literal>
1326
	    flags:</para>
1327
1290
1328
	  <programlisting>bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
1291
	  <programlisting>bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
1329
        :sh:sd=/var/spool/lpd/bamboo:\
1292
        :sh:sd=/var/spool/lpd/bamboo:\
1330
        :lp=/dev/ttyd5:fs#0x82000c1:xs#0x820:</programlisting>
1293
        :lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:</programlisting>
1331
	</sect4>
1294
	</sect4>
1332
1295
1333
	<sect4 id="printing-textfilter">
1296
	<sect4 id="printing-textfilter">
Lines 1396-1402 Link Here
1396
1359
1397
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
1360
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
1398
        :sh:sd=/var/spool/lpd/bamboo:\
1361
        :sh:sd=/var/spool/lpd/bamboo:\
1399
        :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:\
1362
        :lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:\
1400
        :if=/usr/local/libexec/if-simple:</programlisting>
1363
        :if=/usr/local/libexec/if-simple:</programlisting>
1401
	</sect4>
1364
	</sect4>
1402
1365
Lines 2167-2173 Link Here
2167
2130
2168
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
2131
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
2169
        :sh:sd=/var/spool/lpd/bamboo:\
2132
        :sh:sd=/var/spool/lpd/bamboo:\
2170
        :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:\
2133
        :lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:rw:\
2171
        :if=/usr/local/libexec/psif:\
2134
        :if=/usr/local/libexec/psif:\
2172
        :df=/usr/local/libexec/psdf:</programlisting>
2135
        :df=/usr/local/libexec/psdf:</programlisting>
2173
2136
Lines 3292-3298 Link Here
3292
3255
3293
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
3256
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
3294
        :sh:sd=/var/spool/lpd/bamboo:sc:\
3257
        :sh:sd=/var/spool/lpd/bamboo:sc:\
3295
        :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:\
3258
        :lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:rw:\
3296
        :if=/usr/local/libexec/psif:\
3259
        :if=/usr/local/libexec/psif:\
3297
        :df=/usr/local/libexec/psdf:</programlisting>
3260
        :df=/usr/local/libexec/psdf:</programlisting>
3298
            
3261
            
Lines 3368-3374 Link Here
3368
3331
3369
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
3332
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
3370
        :sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:\
3333
        :sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:\
3371
        :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:\
3334
        :lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:rw:\
3372
        :if=/usr/local/libexec/psif:\
3335
        :if=/usr/local/libexec/psif:\
3373
        :df=/usr/local/libexec/psdf:</programlisting>
3336
        :df=/usr/local/libexec/psdf:</programlisting>
3374
3337
Lines 3443-3449 Link Here
3443
#
3406
#
3444
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
3407
bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
3445
        :sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:mx#5000:\
3408
        :sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:mx#5000:\
3446
        :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:\
3409
        :lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:rw:\
3447
        :if=/usr/local/libexec/psif:\
3410
        :if=/usr/local/libexec/psif:\
3448
        :df=/usr/local/libexec/psdf:</programlisting>
3411
        :df=/usr/local/libexec/psdf:</programlisting>
3449
3412
Lines 3530-3536 Link Here
3530
                  
3493
                  
3531
              <programlisting>bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
3494
              <programlisting>bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\
3532
        :sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:mx#5000:\
3495
        :sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:mx#5000:\
3533
        :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:mx#5000:\
3496
        :lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:rw:mx#5000:\
3534
        :if=/usr/local/libexec/psif:\
3497
        :if=/usr/local/libexec/psif:\
3535
        :df=/usr/local/libexec/psdf:</programlisting>
3498
        :df=/usr/local/libexec/psdf:</programlisting>

Return to bug 47411