On Saturday, Feb 15, 2003, at 14:40 US/Pacific, Tom McDonough wrote:
I'm trying to force a form feed using perl 5.6 and os x.2 without
using the
format command.
These don't work:
print LPR "\007"; # form feed ? doesn't work
$ff = v12;
print LPR "$ff"; # Camel book Sec 2.6.7: doesn't work
print LPR "\f"; # Camel book page 663: doesn't work
I presume that you opened LPR with something like
open(LPR, "|lpr $args")
and that you are trying to talk to the line printer???
the ascii value in octal of 007 is 'bel' - cf man ascii,
so I am not at all sure why you went there...
or are you trying to write to the terminal app?
I know that ^L ( control L ) will do it at the command line,
if you just type it, but not from a perl script....
so are you targetting a terminal app? or a printer?
you will probably want to peek at
man stty
for the stty configuration issues if a terminal app...
ciao
drieux
---