Re: Disappearing Window?

Scott Raney ((no email))
Thu, 24 Nov 94 10:58:56 MST

>
> use unix
> The unix sleep command takes virtually no cpu, so do a shell call
>
> on Mouseup
> shelll "sleep X"
> end mouseUp
>
> or on card open - cannot remeber the exact hypercard syntax
> shell "sleep ...

This isn't a very good solution since the shell function doesn't
really block (although it appears to from the script). This is so
that you can you can abort a hung process by pressing control-C, and
so that MetaCard will continue to redraw the windows while a long
program is running. Shell will poll the running program (and for X
redraw and keyboard events) every 100 msecs until the program exits,
taking up even more CPU time than if you'd just used the idle
messages.
Scott

> Pete Diffey
>

-- 
***********************************************************************
* Scott Raney  303-447-3936            Remember: the better you look, *
* raney@metacard.com                   the more you'll see -- Lidia   *
***********************************************************************