- arg.sg_flags = RAW | TANDEM;
- ioctl(FD, TIOCSETP, &arg);
-
- ioctl(0, TIOCGETP, &defarg); /* store initial status */
- ioctl(0, TIOCGETC, &defchars);
- arg = defarg;
- arg.sg_flags = ANYP | CBREAK;
- tchars = defchars;
- tchars.t_intrc = tchars.t_quitc = -1;
-