COMMENT * SIMULA specification; OPTIONS(/E:QUICK,ptycheck); INTEGER PROCEDURE ptycheck(ptyin,timelimit); REF(Infile)ptyin; REAL timelimit; COMMENT Returns JOBSTS if PTY can accept input or has output within the time limit, otherwise zero. Interpretation of returned value: JB.UJA 8R400000 000000 (negative) Job number is assigned. JB.ULI 8R200000 000000 Job is logged in. JB.UML 8R100000 000000 TTY is at monitor level. JB.UOA 8R040000 000000 TTY output is available. JB.UDI 8R020000 000000 TTY at user level in input wait, or at monitor level and can accept a command. JB.UJC 8R010000 000000 JACCT is set. In particular, ^C^C will not work. JB.UJN 8R000000 777777 Job number or zero. If 0