|
|
1.1 ! root 1: #include "curses.ext" ! 2: /* @(#) resetty.c: 1.1 10/15/83 (1.19 3/17/83) */ ! 3: ! 4: resetty() ! 5: { ! 6: #ifdef USG ! 7: if (SP == NULL || SP->save_tty_buf.c_cflag&CBAUD == 0) ! 8: return; /* Never called savetty */ ! 9: #else ! 10: if (SP == NULL || SP->save_tty_buf.sg_ospeed == 0) ! 11: return; /* Never called savetty */ ! 12: #endif ! 13: cur_term->Nttyb = SP->save_tty_buf; ! 14: #ifdef DEBUG ! 15: # ifdef USG ! 16: if(outf) fprintf(outf, "savetty(), file %x, SP %x, flags %x,%x,%x,%x\n", SP->term_file, SP, cur_term->Nttyb.c_iflag, cur_term->Nttyb.c_oflag, cur_term->Nttyb.c_cflag, cur_term->Nttyb.c_lflag); ! 17: # else ! 18: if(outf) fprintf(outf, "resetty(), file %x, SP %x, flags %x\n", SP->term_file, SP, cur_term->Nttyb.sg_flags); ! 19: # endif ! 20: #endif ! 21: reset_prog_mode(); ! 22: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.