home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / UNXCONIO.H < prev    next >
C/C++ Source or Header  |  1997-07-05  |  464b  |  23 lines

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /*
  4. **  UNXCONIO.H - Port crucial DOS|Win|OS/2 non-blocking console I/O
  5. **               functions to Unix/Posix.
  6. **
  7. **  public domain SNIPPETS header for use with Steve Poole's TERM_OPT.C
  8. */
  9.  
  10. #ifndef UNXCONIO__H
  11. #define UNXCONIO__H
  12.  
  13. #include <stdio.h>
  14. #include <unistd.h>
  15.  
  16. #define echo_on()  term_option(0)
  17. #define echo_off() term_option(1)
  18.  
  19. int term_option();
  20. int getch();
  21.  
  22. #endif /* UNXCONIO__H */
  23.