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

Epson T5845-M manuels

Manuels d'utilisation et guides de l'utilisateur pour Imprimeurs Epson T5845-M.
Nous fournissons des manuels en pdf 1 Epson T5845-M à télécharger gratuitement par type de document : Manuel de l'utilisateur


Epson T5845-M Manuel de l'utilisateur (4 pages)


marque: Epson | Catégorie: Printers | Taille: 0.03 MB |

 

Table des matières





Plus de produits et de manuels pour Imprimeurs Epson

Modèles Type de document
A381H Manuel de l'utilisateur   Epson A381H User Manual, 16 pages
T544300 Manuel de l'utilisateur   Epson T544300 User Manual, 4 pages
Stylus Photo R300 Manuel de l'utilisateur   Epson Stylus Photo R300 User Manual, 2 pages
ACULASER M2000 Manuel de l'utilisateur   Epson ACULASER M2000 User Manual, 2 pages
S050192 Manuel de l'utilisateur   Epson S050192 User Manual, 4 pages
T603100 Manuel de l'utilisateur   Epson T603100 User Manual, 4 pages
7880 Manuel de l'utilisateur   Epson 7880 User Manual, 1 pages
PRO 4800 Manuel de l'utilisateur   Epson PRO 4800 User Manual, 160 pages
T545300 Manuel de l'utilisateur   Epson T545300 User Manual, 4 pages
T501201 Manuel de l'utilisateur   Epson T501201 User Manual, 4 pages
T096820 Manuel de l'utilisateur   Epson T096820 User Manual, 4 pages
T565200 Manuel de l'utilisateur   Epson T565200 User Manual, 4 pages
STYLUS SX218 Manuel de l'utilisateur   Epson STYLUS SX218 User Manual, 2 pages
CX9400FAX Manuel de l'utilisateur   Epson CX9400FAX User Manual, 8 pages
T562500 Manuel de l'utilisateur   Epson T562500 User Manual, 4 pages
T034120 Manuel de l'utilisateur   Epson T034120 User Manual, 4 pages
Stylus Color 777i Manuel de l'utilisateur   Epson Stylus Color 777i User Manual, 2 pages
T001011 Manuel de l'utilisateur   Epson T001011 User Manual, 4 pages
T044420 Manuel de l'utilisateur   Epson T044420 User Manual, 4 pages
T060120 Manuel de l'utilisateur   Epson T060120 User Manual, 4 pages