home *** CD-ROM | disk | FTP | other *** search
- /* sys/tty.h (c) Copyright 1990 H.Rogers */
-
- #ifndef __SYS_TTY_H
- #define __SYS_TTY_H
-
- #ifndef __TERMIO_H
- #include <termio.h>
- #endif
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #define MAXTTY 2
-
- #define TTY_CON 0
- #define TTY_423 1
-
- struct tty
- {
- struct termio t[1];
- struct winsize w[1];
- int (*out)(int);
- int (*in)(void);
- int (*scan)(int);
- int (*init)(void);
- int (*flush)(void);
- char *buf,*ptr;
- int cnt;
- char *del;
- int sx,cx; /* screen x, character x */
- };
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif
-