TERMCHAN.DEF 560 B

1234567891011121314151617181920212223
  1. DEFINITION MODULE TermChan;
  2. (* Extra interface(s) to the terminal channel,
  3. not included in the Standard *)
  4. FROM IOConsts IMPORT ReadResults;
  5. IMPORT IOLink;
  6. TYPE
  7. ChanId = IOLink.ChanId;
  8. PROCEDURE LookKey ( cid : ChanId;
  9. VAR ok : BOOLEAN;
  10. VAR ch : CHAR;
  11. VAR res : ReadResults);
  12. (* Performs 'no-wait' input:
  13. If there is a character available on TermFile channel cid, return ok TRUE
  14. and the results of a Look(cid/dtp, ch, res);
  15. otherwise return ok FALSE. *)
  16. END TermChan.