http://qs321.pair.com?node_id=31794


in reply to Re: print to memory?
in thread print to memory?

Generally, \x0c (that's ctrl-L or ^L) is a page-feed to most printers.

I've written ofs in perl for the lpd before, it's not a difficult task :) However, I'd strongly recommend using the lpd (or at least, one of the new non-spooling print programs, such as pdq) rather than trying to write raw text to the hardware device.

Spud Zeppelin * spud@spudzeppelin.com

Replies are listed 'Best First'.
RE: RE: Re: print to memory?
by extremely (Priest) on Sep 11, 2000 at 01:25 UTC

    In Perl (and usually "C") string handling you can use "\f" for the formfeeds. As long as you are playing with teletype commands, you should remember that one.

    • \t ab
    • \n ewline
    • \r eturn
    • \f ormfeed
    • \b ackspace
    • \a larm
    • \e scape (also handy but a perl only idiom AFAIK)

    --
    $you = new YOU;
    honk() if $you->love(perl)