August 4, 1998; Gregg M. Townsend
Requires: Version 9 graphics
This file is in the public domain.
wevents reports all the events delivered to an Icon window.
Each event produces a single line of output. The program terminates
after receiving and reporting a ^C, ^D, or DELETE key event.
Each event is reported both in Icon terms and in terms of its
internal representation. The output fields on each line are:
&interval (interval since previous event, in milliseconds)
&control, &meta, &shift (modifier keys: c, m, or s if pressed)
event returned by Event: keyword name, if any, or else image
&x, &y (usually coordinates, but new size for resize event)
image() of the first value on the event queue
hex dump of the second value (modifier flags and x coordinate)
hex dump of the third value (encoded interval and y coordinate)
Source code |
Program Library Page |
Icon Home Page