comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Specifying a line feed
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Specifying a line feed [message #5503] Wed, 17 January 1996 00:00 Go to next message
mbrown is currently offline  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 Go to previous message
hahn is currently offline  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 Go to previous message
M.W.Gardner is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problems using CURSOR
Next Topic: Printing something on a plot

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:36:31 PDT 2025

Total time taken to generate the page: 0.00504 seconds