Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

RE: Re: print to memory?

by spudzeppelin (Pilgrim)
on Sep 10, 2000 at 19:11 UTC ( [id://31794]=note: print w/replies, xml ) Need Help??


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)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://31794]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-20 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found