##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: October 2016 # Modified: 2016-11-27/04:01-0500 ##+ # # EvGet.icn, demonstrate Execution Monitoring event get # Needs 1to4.icn as the monitoring target # $include "evdefs.icn" link evinit, printf procedure main() # initialize the Target Process (a loaded task co-expression) EvInit("1to4") # loop across events until the task completes perline := 0 while ec := EvGet() do { # keep the event code display all lined up if (perline +:= 1) > 16 then write() & perline := 1 if ec == E_Fret then perline := 1 # event code display in octal, to match evdefs.icn defines printf("%03o ", ord(ec)) } write() end