1mNAME0m
       update - Process pending events and idle callbacks

1mSYNOPSIS0m
       1mupdate 22m?1midletasks22m?


1mDESCRIPTION0m
       This  command is used to bring the application ``up to date'' by enter-
       ing the event loop repeatedly until all pending events (including  idle
       callbacks) have been processed.

       If  the  1midletasks  22mkeyword is specified as an argument to the command,
       then no new events or errors are processed;  only  idle  callbacks  are
       invoked.   This  causes  operations that are normally deferred, such as
       display updates and window layout calculations, to be performed immedi-
       ately.

       The  1mupdate  idletasks  22mcommand is useful in scripts where changes have
       been made to the application's state and  you  want  those  changes  to
       appear  on  the display immediately, rather than waiting for the script
       to complete.  Most display updates are performed as idle callbacks,  so
       1mupdate idletasks 22mwill cause them to run.  However, there are some kinds
       of updates that only happen in response to events, such as those  trig-
       gered  by  window  size changes; these updates will not occur in 1mupdate0m
       1midletasks22m.

       The 1mupdate 22mcommand with no options is useful in scripts where  you  are
       performing  a  long-running computation but you still want the applica-
       tion to respond to events such as user interactions;  if you  occasion-
       ally call 1mupdate 22mthen user input will be processed during the next call
       to 1mupdate22m.


1mSEE ALSO0m
       after(n), bgerror(n)


1mKEYWORDS0m
