Specifying a line feed [message #5503] |
Wed, 17 January 1996 00:00  |
mbrown
Messages: 15 Registered: August 1995
|
Junior Member |
|
|
Can someone tell me how to print a linefeed character
using PRINTF in IDL? I'm trying to print out text to my
HP, but since the buffer doesn't get full, I have to hit
the button on the printer to get the printout. Thanks.
Myron.
-----------------------------
Myron Brown
mbrown@olie.wvitcoe.wvnet.edu
|
|
|
Re: Specifying a line feed [message #5638 is a reply to message #5503] |
Thu, 18 January 1996 00:00  |
hahn
Messages: 108 Registered: November 1993
|
Senior Member |
|
|
mbrown@olie.wvitcoe.wvnet.edu (Myron Brown) wrote:
> Can someone tell me how to print a linefeed character
> using PRINTF in IDL?
PrintF automatically generates a linefeed.
> I'm trying to print out text to my
> HP, but since the buffer doesn't get full, I have to hit
> the button on the printer to get the printout. Thanks.
I guess you need a form feed! Formfeed on a ASCII
printer is 00001100 binary, decimal 12, so you may
add
PrintF, String(12B)
after your last PrintF statement.
> Myron.
> -----------------------------
> Myron Brown
> mbrown@olie.wvitcoe.wvnet.edu
Norbert Hahn
|
|
|
Re: Specifying a line feed [message #5647 is a reply to message #5503] |
Thu, 18 January 1996 00:00  |
M.W.Gardner
Messages: 7 Registered: November 1995
|
Junior Member |
|
|
mbrown@olie.wvitcoe.wvnet.edu (Myron Brown) wrote:
> Can someone tell me how to print a linefeed character
> using PRINTF in IDL? I'm trying to print out text to my
> HP, but since the buffer doesn't get full, I have to hit
> the button on the printer to get the printout. Thanks.
>
Try :
printf("%8f%8d....%8f\n",a,b....,c)
^^
Hope that is what you need.
Matt
--
-----> Matt Gardner EMAIL->m.W.gardner@uea.ac.uk PHONE->+44- 1603-592041
School of Environmental Science,University of East Anglia,Norwich,NR4 7TJ,UK
------------------------------------------------------------ ------------------
opinions are mine - http://www.uea.ac.uk/~e449
|
|
|