added PDX constant
[unix-history] / usr / src / usr.bin / tip / tip.h
index 2ae9193..cfbf675 100644 (file)
@@ -1,4 +1,4 @@
-/*     tip.h   4.1     81/05/09        */
+/*     tip.h   4.6     81/12/16        */
 /*
  * tip - terminal interface program
  *
 /*
  * tip - terminal interface program
  *
@@ -10,6 +10,7 @@
 #include <stdio.h>
 #include <pwd.h>
 #include <sys/types.h>
 #include <stdio.h>
 #include <pwd.h>
 #include <sys/types.h>
+#include <ctype.h>
 
 /*
  * Remote host attributes
 
 /*
  * Remote host attributes
@@ -31,6 +32,7 @@ int   BR;                     /* line speed for conversation */
 int    FS;                     /* frame size for transfers */
 
 char   DU;                     /* this host is dialed up */
 int    FS;                     /* frame size for transfers */
 
 char   DU;                     /* this host is dialed up */
+char   HW;                     /* this device is hardwired, see hunt.c */
 
 /*
  * String value table
 
 /*
  * String value table
@@ -79,9 +81,6 @@ typedef
        acu_t;
 
 #define        equal(a, b)     (strcmp(a,b)==0)/* A nice function to string compare */
        acu_t;
 
 #define        equal(a, b)     (strcmp(a,b)==0)/* A nice function to string compare */
-#define islower(c)     ((c)>='a'&&(c)<='z')
-#define toupper(c)     (c)-=('a'-'A')
-#define isnum(c)       ((c)>='0'&&(c)<= '9')
 #define CTRL(c)                ('c'&037)
 
 /*
 #define CTRL(c)                ('c'&037)
 
 /*
@@ -163,6 +162,7 @@ extern value_t      vtable[];       /* variable table */
 #define VERBOSE                21
 #define SHELL          22
 #define HOME           23
 #define VERBOSE                21
 #define SHELL          22
 #define HOME           23
+#define ECHOCHECK      24
 #else
 #define PHONES         11
 #define PROMPT         12
 #else
 #define PHONES         11
 #define PROMPT         12
@@ -175,6 +175,7 @@ extern value_t      vtable[];       /* variable table */
 #define VERBOSE                19
 #define SHELL          20
 #define HOME           21
 #define VERBOSE                19
 #define SHELL          20
 #define HOME           21
+#define ECHOCHECK      22
 #endif
 
 #define NOVAL  ((value_t *)NULL)
 #endif
 
 #define NOVAL  ((value_t *)NULL)
@@ -201,6 +202,7 @@ int quit;                   /* same; but on other end */
 int    intflag;                /* recognized interrupt */
 int    stoprompt;              /* for interrupting a prompt session */
 int    timedout;               /* ~> transfer timedout */
 int    intflag;                /* recognized interrupt */
 int    stoprompt;              /* for interrupting a prompt session */
 int    timedout;               /* ~> transfer timedout */
+int    cumode;                 /* simulating the "cu" program */
 
 char   fname[80];              /* file name buffer for ~< */
 char   copyname[80];           /* file name buffer for ~> */
 
 char   fname[80];              /* file name buffer for ~< */
 char   copyname[80];           /* file name buffer for ~> */
@@ -231,6 +233,7 @@ struct capacity {
 
 #ifdef VMUNIX
 int    odisc;                          /* initial tty line discipline */
 
 #ifdef VMUNIX
 int    odisc;                          /* initial tty line discipline */
+extern int disc;                       /* current tty discpline */
 #endif
 
 extern char            *ctrl();
 #endif
 
 extern char            *ctrl();