tk inactive
Gives the time since the last input of the user.
tk inactive ?-displayof WINDOW?
tk inactive ?-displayof WINDOW? reset
Description
In ztk the result is always 0, and reset gives an empty string.
Returns
0, or an empty string for reset.
Examples
% tk inactive
0
% tk inactive reset
Errors
ztk accepts each word.
Differences from Tcl
- The result is 0. Tk 8.6.16 on X11 gives the milliseconds since the last input, or -1 when the system does not track it.
- A word other than
resetis accepted. Tk 8.6.16 givesbad option.
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1