Send color text to printer

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default Re: Send color text to printer

    Joe,

    this is the same question you posted on July 31st. If you didn't get any
    replies then, you're not likely to now, either. I'd suggest assuming now
    that no-one here has anything relevant to say on this.

    If there is an alternate module, it'll be on CPAN - go have a look.

    Regards,

    Garry



    Joe Hasting wrote:
    > I have been using the Term::ANSIColor to display color on my screen, but I
    > would like to direct this color to a printer. I try to print it directly
    > (see example below) but it just prints the ANSI escape sequences as
    > regular
    > text. Could anyone say if there is an alternate MODULE or another
    > technique to print in color?
    >
    > thanks
    > J
    >
    >
    > use Term::ANSIColor;
    >
    > open(LPR, "|lpr -P agrprt166 >/dev/null 2>&1");
    > print LPR "test\n";
    > print LPR "test\n";
    > close(LPR);
    >
    > open(LPR, "|lpr -P agrprt166 >/dev/null 2>&1");
    > print LPR colored ("test\n", "red on_black");
    > print LPR colored ("test\n", "green on_red");
    > close(LPR);
    Garry Short Guest

  2. Similar Questions and Discussions

    1. Send direclty to printer
      I have an ASP that pulls several records back from a MSSQL database via VB script. I'm trying to create a link that I can place at the end of each...
    2. Fonts get funky when I send a PC PDF file to a printer with a MAC-based system
      When I prepare a PC PDF file to go to a printer the fonts "default" ( some of the text, not all is uneven) when a printer with a Mac-based system...
    3. Send Documents to Printer
      I have a series of hyperlinks on my page which open up documents. Mainly pdfs. Can anyone tell me if it is possible to send these straight to...
    4. b&w printing with 4 color printer
      I am needing to make some reasonably good 8x10 black and white prints from scanned photographs. I tried every possible combination of color space,...
    5. Send to Printer Option???
      Hello all- I am interested in putting in a 'print' button onto my page....how do I go about doing this??? --> on a side note....I have a link...
  3. #2

    Default Re: Send color text to printer

    "Joe Hasting" <hasting@agere.com> wrote in
    news:bgofen$71r$1@alageremail2.agere.com:
    > I have been using the Term::ANSIColor to display color on my screen,
    > but I would like to direct this color to a printer. I try to print it
    > directly (see example below) but it just prints the ANSI escape
    > sequences as regular text. Could anyone say if there is an alternate
    > MODULE or another technique to print in color?
    You could write an ANSI terminal driver for your printer ...

    I keep seeing your posts and I am completely baffled as to why you think
    sending ANSI sequences to the printer should do anything.

    (goes away and googles a bit and comes back)

    Oh, so Amiga used to have ANSI printer drivers huh? Did not know that.

    Without knowing your specific context, I am going to suggest generating
    HTML, and printing that.

    Sinan.
    --
    A. Sinan Unur
    [email]asu1@c-o-r-n-e-l-l.edu[/email]
    Remove dashes for address
    Spam bait: mailto:uce@ftc.gov
    A. Sinan Unur Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139