io-extensions.red 703 B

12345678910111213141516171819202122232425262728293031
  1. %
  2. % IO-EXTENSIONS.RED - Random, possibly useful functions
  3. %
  4. % Author: Eric Benson
  5. % Symbolic Computation Group
  6. % Computer Science Dept.
  7. % University of Utah
  8. % Date: 22 October 1981
  9. % Copyright (c) 1981 University of Utah
  10. %
  11. on SysLisp;
  12. syslsp procedure ChannelTYI Chn; %. Read one char ASCII value
  13. MkINT ChannelReadChar Chn;
  14. syslsp procedure ChannelTYO(Chn, Ch); %. Write one char ASCII value
  15. ChannelWriteChar(Chn, Lisp2Char Ch);
  16. off SysLisp;
  17. global '(IN!* OUT!*);
  18. lisp procedure TYI(); %. Read ASCII value from curent input
  19. ChannelTYI IN!*;
  20. lisp procedure TYO Ch; %. Write ASCII value to current output
  21. ChannelTYO(OUT!*, Ch);
  22. END;