Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ after(1) — Sprite KS.390

Media Vault

Software Library

Restoration Projects

Artifacts Sought

after  —  User Commands

NAME

after − Execute a command after a time delay

SYNOPSIS

after ms ?arg1 arg2 arg3 ...? 


 

DESCRIPTION

This command is used to delay execution of the program or to execute a command in background after a delay.  The ms argument gives a time in milliseconds.  If ms is the only argument to after then the command sleeps for ms milliseconds and returns.  While the command is sleeping the application still responds to X events and other events. 


If additional arguments are present after ms, then a Tcl command is formed by concatenating all the additional arguments in the same fashion as the concat command.  After returns immediately but arranges for the command to be executed ms milliseconds later in background.  The command will be executed at global level (outside the context of any Tcl procedure). 


If an error occurs while executing the delayed command then the tkerror mechanism is used to report the error. 

The after command always returns an empty string. 
 

SEE ALSO

tkerror
 

KEYWORDS

delay, sleep, time

Sprite version 1.0  —  

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026