SCCS-vsn: usr.bin/tip/tip.c 4.13
SCCS-vsn: usr.bin/tip/tip.h 4.9
-/* 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
*/
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
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);
{
ioctl(0, TIOCSETP, &arg);
ioctl(0, TIOCSETC, &tchars);
{
ioctl(0, TIOCSETP, &arg);
ioctl(0, TIOCSETC, &tchars);
+ ioctl(0, TIOCSLTC, <chars);
#ifdef VMUNIX
ioctl(0, TIOCSETD, (char *)&disc);
#endif
#ifdef VMUNIX
ioctl(0, TIOCSETD, (char *)&disc);
#endif
#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);
-/* tip.h 4.8 82/12/24 */
+/* tip.h 4.9 83/05/17 */
/*
* tip - terminal interface program
*
/*
* tip - terminal interface program
*
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 */