home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 2 / DATAFILE_PDCD2.iso / utilities2 / unixlib36d / UnixLib36d / clib / sys / h / tty < prev    next >
Encoding:
Text File  |  1993-09-01  |  516 b   |  39 lines

  1. /* sys/tty.h (c) Copyright 1990 H.Rogers */
  2.  
  3. #ifndef __SYS_TTY_H
  4. #define __SYS_TTY_H
  5.  
  6. #ifndef __TERMIO_H
  7. #include <termio.h>
  8. #endif
  9.  
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13.  
  14. #define MAXTTY    2
  15.  
  16. #define TTY_CON 0
  17. #define TTY_423 1
  18.  
  19. struct tty
  20.   {
  21.   struct termio t[1];
  22.   struct winsize w[1];
  23.   int (*out)(int);
  24.   int (*in)(void);
  25.   int (*scan)(int);
  26.   int (*init)(void);
  27.   int (*flush)(void);
  28.   char *buf,*ptr;
  29.   int cnt;
  30.   char *del;
  31.   int sx,cx;        /* screen x, character x */
  32.   };
  33.  
  34. #ifdef __cplusplus
  35.     }
  36. #endif
  37.  
  38. #endif
  39.