Now turns off local characters (suspend, etc)
authorBill Joy <root@ucbvax.Berkeley.EDU>
Wed, 18 May 1983 02:50:11 +0000 (18:50 -0800)
committerBill Joy <root@ucbvax.Berkeley.EDU>
Wed, 18 May 1983 02:50:11 +0000 (18:50 -0800)
SCCS-vsn: usr.bin/tip/tip.c 4.13
SCCS-vsn: usr.bin/tip/tip.h 4.9

usr/src/usr.bin/tip/tip.c
usr/src/usr.bin/tip/tip.h

index 621dd9e..a2fd5f2 100644 (file)
@@ -1,4 +1,4 @@
-/*     tip.c   4.12    82/07/29        */
+/*     tip.c   4.13    83/05/17        */
 
 /*
  * tip - UNIX link to other systems
 
 /*
  * tip - UNIX link to other systems
@@ -138,6 +138,7 @@ cucommon:
         */
        ioctl(0, TIOCGETP, (char *)&defarg);
        ioctl(0, TIOCGETC, (char *)&defchars);
         */
        ioctl(0, TIOCGETP, (char *)&defarg);
        ioctl(0, TIOCGETC, (char *)&defchars);
+       ioctl(0, TIOCGLTC, (char *)&deflchars);
 #ifdef VMUNIX
        ioctl(0, TIOCGETD, (char *)&odisc);
 #endif
 #ifdef VMUNIX
        ioctl(0, TIOCGETD, (char *)&odisc);
 #endif
@@ -145,6 +146,9 @@ cucommon:
        arg.sg_flags = ANYP | CBREAK;
        tchars = defchars;
        tchars.t_intrc = tchars.t_quitc = -1;
        arg.sg_flags = ANYP | CBREAK;
        tchars = defchars;
        tchars.t_intrc = tchars.t_quitc = -1;
+       ltchars = deflchars;
+       ltchars.t_suspc = ltchars.t_dsuspc = ltchars.t_flushc
+               = ltchars.t_lnextc = -1;
        raw();
 
        pipe(fildes); pipe(repdes);
        raw();
 
        pipe(fildes); pipe(repdes);
@@ -182,6 +186,7 @@ raw()
 {
        ioctl(0, TIOCSETP, &arg);
        ioctl(0, TIOCSETC, &tchars);
 {
        ioctl(0, TIOCSETP, &arg);
        ioctl(0, TIOCSETC, &tchars);
+       ioctl(0, TIOCSLTC, &ltchars);
 #ifdef VMUNIX
        ioctl(0, TIOCSETD, (char *)&disc);
 #endif
 #ifdef VMUNIX
        ioctl(0, TIOCSETD, (char *)&disc);
 #endif
@@ -198,6 +203,7 @@ unraw()
 #endif
        ioctl(0, TIOCSETP, (char *)&defarg);
        ioctl(0, TIOCSETC, (char *)&defchars);
 #endif
        ioctl(0, TIOCSETP, (char *)&defarg);
        ioctl(0, TIOCSETC, (char *)&defchars);
+       ioctl(0, TIOCSLTC, (char *)&deflchars);
 }
 
 /*
 }
 
 /*
index 87f7a6d..ce43138 100644 (file)
@@ -1,4 +1,4 @@
-/*     tip.h   4.8     82/12/24        */
+/*     tip.h   4.9     83/05/17        */
 /*
  * tip - terminal interface program
  *
 /*
  * tip - terminal interface program
  *
@@ -187,6 +187,8 @@ struct sgttyb       arg;            /* current mode of local terminal */
 struct sgttyb  defarg;         /* initial mode of local terminal */
 struct tchars  tchars;         /* current state of terminal */
 struct tchars  defchars;       /* initial state of terminal */
 struct sgttyb  defarg;         /* initial mode of local terminal */
 struct tchars  tchars;         /* current state of terminal */
 struct tchars  defchars;       /* initial state of terminal */
+struct ltchars ltchars;        /* current local characters of terminal */
+struct ltchars deflchars;      /* initial local characters of terminal */
 
 FILE   *fscript;               /* FILE for scripting */
 
 
 FILE   *fscript;               /* FILE for scripting */