Lines Matching refs:tty_new
289 static long tty_orig[3], tty_new[3]; /* XXX Is there any guarantee that this will always suffice for the actual structures? */
294 static TTY_STRUCT tty_orig,tty_new;
528 memcpy(&(tty_new),&(tty_orig),sizeof(tty_orig));
529 tty_new.TTY_FLAGS &= ~ECHO;
533 if (is_a_tty && (TTY_set(fileno(tty_in),&tty_new) == -1))
537 tty_new[0] = tty_orig[0];
538 tty_new[1] = tty_orig[1] | TT$M_NOECHO;
539 tty_new[2] = tty_orig[2];
540 status = sys$qiow(0,channel,IO$_SETMODE,&iosb,0,0,tty_new,12,0,0,0,0);
550 memcpy(&(tty_new),&(tty_orig),sizeof(tty_orig));
551 tty_new.TTY_FLAGS |= ECHO;
555 if (is_a_tty && (TTY_set(fileno(tty_in),&tty_new) == -1))
559 tty_new[0] = tty_orig[0];
560 tty_new[1] = tty_orig[1] & ~TT$M_NOECHO;
561 tty_new[2] = tty_orig[2];
562 status = sys$qiow(0,channel,IO$_SETMODE,&iosb,0,0,tty_new,12,0,0,0,0);