Compuprint 914 Specifikace Strana 266

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 374
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 265
4-152
Guide to Printers and Printing
This frequently removes all the printer control problems that existed, but adds one new one.
When the formatter filter operates in passthru mode, the mapping of linefeeds to carriage
returns and linefeeds is disabled. The forms still do not print correctly.
Suppose that the application does not allow the insertion of carriage returns into the data
stream, you can fix this problem with a simple filter, as follows:
#include <stdio.h>
main(int argc, char **argv)
{
int ch ;
while (EOF != (ch = fgetc(stdin)))
{
switch (ch)
{
case 10: fputc(ch,stdout) ;
fputc(0x0D,stdout) ;
break ;
default: fputc(ch,stdout) ;
break ;
}
}
}
Compile your program and name it cr_mapper. and install it in an accessible location, such
as /usr/lib/lpd. Assign it ownership of root.printq and permissions 555.
Assuming you have an ASCII queue named asc on an IBM 4029 LaserPrinter, you can use
lsvirprt to select the asc queue and then format the f1 filter attribute. You should see
something like the following:
User defined filter 1
f1 =
As the f1 attribute has a null default value, the definition is sparse.
Edit the f1 attribute so its definition appears as follows:
User defined filter 1
f1 =
’/usr/lib/lpd/cr_mapper’
When you save the new definition of f1, you can again format it with lsvirprt; you should
see something like the following:
User defined filter 1
f1 = /usr/lib/lpd/cr_mapper
’/usr/lib/lpd/cr_mapper’
The f1 filter can now be used from the command line by using commands such as:
qprt –Pasc –f1 filename
enq –Pasc –o –f –o 1 filename
If the _d attribute was not set to p, the –dp flag and argument would have to be added to the
commands.
qprt –Pasc –dp –f1 filename
enq –Pasc –o –d –o p –o –f –o 1 filename
The cr_mapper program reads characters from stdin and writes them to stdout. Whenever
it reads and writes a linefeed (a hex A, or decimal 10), it writes out a carriage return (a hex
D).
Zobrazit stránku 265
1 2 ... 261 262 263 264 265 266 267 268 269 270 271 ... 373 374

Komentáře k této Příručce

Žádné komentáře

HP Compaq NX5000 Handbücher

Bedienungsanleitungen und Benutzerhandbücher für PC / Workstation Barebones HP Compaq NX5000.
Wir stellen 1 PDF-Handbücher HP Compaq NX5000 zum kostenlosen herunterladen nach Dokumenttypen zur Verfügung Bedienungsanleitung


Inhaltsverzeichnis





Weitere Produkte und Handbücher für PC / Workstation Barebones HP

Modelle Dokumententyp
t5740e Betriebsanweisung   HP t5740e Hardware reference guide, 41 Seiten
Pavilion 6600 - Desktop PC Bedienungsanleitung   dv6600 Bro_FA_0207.qxd (Page 1), 8 Seiten
Pavilion 21-a000 Betriebsanweisung   HP Pavilion 21-a000 User`s guide, 20 Seiten
Pavilion 500 - Desktop PC Bedienungsanleitung   HP Pavilion 500-281 Desktop PC with Windows 7, 2 Seiten
Presario 1700 - Notebook PC Spezifikationen   HP Presario 1700 - Notebook PC Specifications, 135 Seiten
Vectra 525 Bedienungsanleitung    Familiarization Guide, 38 Seiten
xw4000 Bedienungsanleitung   hp workstations xw4000 and xw6000 Getting Started Guide, 24 Seiten
Vectra XU 5/1XX Installationsanleitung   HP Vectra XU 5/1XX Installation guide, 150 Seiten
C200 Bedienungsanleitung   C200 Product Specification, 16 Seiten
TouchSmart IQ540 - Desktop PC Betriebsanweisung   HP TouchSmart IQ540 - Desktop PC User guide, 20 Seiten
Pavilion t370 Bedienungsanleitung   HP Pavilion t370.nl [en] [it] , 2 Seiten
Pavilion a6720 Spezifikationen   HP Pavilion a6720 Specifications, 36 Seiten
TouchSmart IQ507 Bedienungsanleitung   Wall-Mounting your HP TouchSmart, 16 Seiten
7800 Betriebsanweisung   HP 7800 User guide, 30 Seiten
Pavilion a6800 - Desktop PC Bedienungsanleitung   Datum:25.12.2014 Modell:HP Pavilion Desktop PC, 2 Seiten
Autodesk Lustrexw8400 Bedienungsanleitung   HP and Autodesk in Product Development, 4 Seiten
Pavilion v500 - Desktop PC Bedienungsanleitung   HP Pavilion Desktop PC 500, 2 Seiten
XW8200 Bedienungsanleitung   XW8200 Workstation Setup, 4 Seiten
Compaq Presario,Presario SR1720 Bedienungsanleitung   Inventario Noviembre 2014 [en] , 3 Seiten
Brio 82xx Technical Information   HP Brio 82xx Technical information [en] , 114 Seiten