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

Home » Public Forums » archive » Re: suppressing carriage return in PRINT
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: suppressing carriage return in PRINT [message #30591 is a reply to message #30588] Tue, 07 May 2002 10:21 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Chris O'Dell wrote:
>
> Kenneth,
>
>> Use the Craig Markwardt routine: STATUSLINE
>>
>> Craig: Is there any chance you can get this to work in EMACS? Or you
>> could give me some pointers how to modify it? I know
>> its not vt100 and therefore a whole different beast, but I love the
>> routine and am sometimes forced to use x-terms just because nothing
>> shows up in emacs.
>
> Doesn't work in Windows, unfortunately. Neither does someone else's
> suggestion of opening my own window with a command like:
> openw, lun, filepath(/terminal), /get_lun
>
> (this gives you the error message):
> % FILEPATH: No terminal device available with IDLde (GUI) interface
>
> Any other ideas? Btw, i'm using 5.4.
> Chris

This is what I use to print out the data number that has been read in some code of mine:

<--------snippet------->
;----------------------------------------------------------- -------------------
; -- Read data panel by panel --
;----------------------------------------------------------- -------------------

bksp = MAKE_ARRAY( 5, VALUE = 8B )
IF ( NOT KEYWORD_SET( quiet ) ) THEN $
PRINT, FORMAT = '( 5x, "Reading panel # : ", $ )'


; ------------------------
; Initialise some counters
; ------------------------

n_panels = 0L
n_pts_read = 0L


; --------------------------
; Begin panel read open loop
; --------------------------

WHILE 1 DO BEGIN


IF ( NOT KEYWORD_SET( quiet ) ) THEN $
PRINT, FORMAT = '( a, i5, $ )', STRING( bksp ), n_panels + 1
....etc...
<--------snippet------->

The "$" character in the first print suppresses the line feed (dunno if it works cross
platform) and the print of the "bksp" array (containing the ASCII backspace character)
overwrites the previous print of the panel number. Again, dunno if it works cross
platform.

paulv

--
Paul van Delst Religious and cultural
CIMSS @ NOAA/NCEP/EMC purity is a fundamentalist
Ph: (301)763-8000 x7274 fantasy
Fax:(301)763-8545 V.S.Naipaul
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: EGAD! A common block question.......
Next Topic: library help -- multiple procedures in one file

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

Current Time: Thu Oct 09 21:10:47 PDT 2025

Total time taken to generate the page: 4.71793 seconds