From c5d1037a8471eb8d0df75c03784d4a40036d7d42 Mon Sep 17 00:00:00 2001 From: Bill Joy Date: Tue, 17 May 1983 18:50:11 -0800 Subject: [PATCH] Now turns off local characters (suspend, etc) 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 | 8 +++++++- usr/src/usr.bin/tip/tip.h | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/usr/src/usr.bin/tip/tip.c b/usr/src/usr.bin/tip/tip.c index 621dd9e684..a2fd5f2d90 100644 --- a/usr/src/usr.bin/tip/tip.c +++ b/usr/src/usr.bin/tip/tip.c @@ -1,4 +1,4 @@ -/* tip.c 4.12 82/07/29 */ +/* tip.c 4.13 83/05/17 */ /* * tip - UNIX link to other systems @@ -138,6 +138,7 @@ cucommon: */ ioctl(0, TIOCGETP, (char *)&defarg); ioctl(0, TIOCGETC, (char *)&defchars); + ioctl(0, TIOCGLTC, (char *)&deflchars); #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; + ltchars = deflchars; + ltchars.t_suspc = ltchars.t_dsuspc = ltchars.t_flushc + = ltchars.t_lnextc = -1; raw(); pipe(fildes); pipe(repdes); @@ -182,6 +186,7 @@ raw() { ioctl(0, TIOCSETP, &arg); ioctl(0, TIOCSETC, &tchars); + ioctl(0, TIOCSLTC, <chars); #ifdef VMUNIX ioctl(0, TIOCSETD, (char *)&disc); #endif @@ -198,6 +203,7 @@ unraw() #endif ioctl(0, TIOCSETP, (char *)&defarg); ioctl(0, TIOCSETC, (char *)&defchars); + ioctl(0, TIOCSLTC, (char *)&deflchars); } /* diff --git a/usr/src/usr.bin/tip/tip.h b/usr/src/usr.bin/tip/tip.h index 87f7a6dfb2..ce43138c92 100644 --- a/usr/src/usr.bin/tip/tip.h +++ b/usr/src/usr.bin/tip/tip.h @@ -1,4 +1,4 @@ -/* tip.h 4.8 82/12/24 */ +/* tip.h 4.9 83/05/17 */ /* * 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 ltchars ltchars; /* current local characters of terminal */ +struct ltchars deflchars; /* initial local characters of terminal */ FILE *fscript; /* FILE for scripting */ -- 2.20.1