Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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 *

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?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2022-01-18 07:41 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (52 votes). Check out past polls.