Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

RE: Re: print to memory?

by spudzeppelin (Pilgrim)
on Sep 10, 2000 at 19:11 UTC ( #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? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2021-12-04 21:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (30 votes). Check out past polls.

    Notices?