Re: Delay in printing to screen [message #4347 is a reply to message #4254] |
Fri, 19 May 1995 00:00  |
peter
Messages: 80 Registered: February 1994
|
Member |
|
|
In article 3phbmeINN221@myall.awadi.com.au, mscutter@awadi.com.au (Michele Scutter) writes:
: >I'm running IDL for Windows and want to print information to the screen about the state
: >of my program, eg my program might contain the lines:
: >
: > print,'What data file do you want to restore?'
: > read,datafile
: > print,'Please wait while restoring data...'
: > restore,datafile
: >
: >The problem I have is that the restore procedure, which may take quite a few seconds, is done before the message 'Please wait while restoring data...' is printed to the screen. I'd like it to be printed before the restore procedure is started. I have also
A similar problem arises when plotting complicated graphics under X,
where IDL sends off the plot commands then merrily continues, but the
output of the commands doesn't appear until IDL returns to the prompt
or to the xmanager.
The solution in that case is to place "WAIT, 0" after the plot command,
which appears to sync everything up, flush buffers, whatever. Maybe
it'll help you under Windoze.
--------------------------------
Peter Webb, HP Labs Medical Dept
E-Mail: peter_webb@hpl.hp.com
Phone: (415) 813-3756
|
|
|