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