Seth Woolley's Man Viewer

Manual for update - man n update

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

update(7,n)(n)                    Tcl Built-In Commands                   update(7,n)(n)

       update(7,n) - Process pending events and idle callbacks

       update(7,n) ?idletasks?

       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  idletasks  keyword 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-

       The  update(7,n)  idletasks  command is useful in(1,8) 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
       update(7,n) idletasks will cause them to run.  However, there are some kinds
       of updates that only happen in(1,8) response to events, such as those  trig-
       gered  by  window  size changes; these updates will not occur in(1,8) update(7,n)

       The update(7,n) command with no options is useful in(1,8) 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(3,n) you  occasion-
       ally call update(7,n) then user input will be processed during the next call
       to update(7,n).

       after(n), bgerror(n)

       event, flush(8,n), handler, idle, update(7,n)

Tcl                                   7.5                            update(7,n)(n)

References for this manual (incoming links)