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