home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 316 / libsrc / console.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-10-20  |  313 b   |  19 lines

  1.  
  2. /* console IO stuff.  Abstracted out here cause I'm having so much trouble
  3.    getting Bconout and Cconout to work */
  4.  
  5. #include <osbind.h>
  6.  
  7. long console_read_byte(handle)
  8. int handle;
  9. {
  10.   return(Bconin(2) & 0xFF);
  11. }
  12.  
  13. console_write_byte(handle, c)
  14. int handle;
  15. char c;
  16. {
  17.   Fwrite(handle, 1, &c);
  18. }
  19.