Trailing-Edge
-
PDP-10 Archives
-
SRI_NIC_PERM_FS_1_19910112
-
kcc-4/include/sys/usytty.h
There are 4 other files named usytty.h in the archive. Click here to see a list.
/* USYTTY.H - USYS TTY support definitions
** Copyright (c) 1987 by Ken Harrenstien, SRI International
*/
#ifndef _USYTTY_INCLUDED /* Include only once */
#define _USYTTY_INCLUDED
#include <sgtty.h> /* Must have this junk (includes sys/ioctl.h)*/
#ifndef _NTTYS /* # of terminals we can handle */
#define _NTTYS 3 /* Controlling terminal plus 2 random devs */
#endif
struct _tty {
int tt_ufx; /* USYS: UFX (file idx) that TTY is open on */
int tt_flags; /* USYS: flags for various internal uses */
#if SYS_T20+SYS_10X
int tt_ccoc[2]; /* T20: saved CCOC words */
int tt_jfnmod; /* T20: saved JFN mode word */
int tt_tiw; /* T20: saved terminal interrupt word */
#endif
struct sgttyb sg; /* V6: i/o speeds, erase/kill chars, flags */
struct tchars tc; /* V7: special chars */
int tt_ldisc; /* BSD: Current line discipline */
int tt_lmode; /* BSD: Local mode word */
struct ltchars lt; /* BSD: more special chars */
struct winsize ws; /* BSD4.3: window size */
};
extern struct _tty
_deftty, /* Default data when initializing struct */
_ttys[]; /* Data for open terminals */
#define _cntrl_tty (&_ttys[0]) /* First struct is that of controlling term */
#endif /* ifndef _USYTTY_INCLUDED */