|
|
1.1 root 1: #include "curses.ext"
2: /* @(#) noraw.c: 1.1 10/15/83 (1.19 3/17/83) */
3:
4: noraw()
5: {
6: #ifdef USG
7: (cur_term->Nttyb).c_cc[VINTR] = (cur_term->Ottyb).c_cc[VINTR];
8: (cur_term->Nttyb).c_cc[VQUIT] = (cur_term->Ottyb).c_cc[VQUIT];
9: (cur_term->Nttyb).c_iflag |= ISTRIP;
10: (cur_term->Nttyb).c_cflag &= ~CSIZE;
11: (cur_term->Nttyb).c_cflag |= CS7;
12: (cur_term->Nttyb).c_cflag |= PARENB;
13: nocrmode();
14: #else
15: (cur_term->Nttyb).sg_flags&=~RAW;
16: # ifdef DEBUG
17: if(outf) fprintf(outf, "noraw(), file %x, SP %x, flags %x\n", SP->term_file, SP, cur_term->Nttyb.sg_flags);
18: # endif
19: #endif
20: SP->fl_rawmode=FALSE;
21: reset_prog_mode();
22: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.