Annotation of researchv10no/ncurses/screen/cbreak.c, revision 1.1.1.1

1.1       root        1: #include "curses.ext"
                      2: /*     @(#) cbreak.c: 1.1 10/15/83     (1.19   3/17/83)        */
                      3: 
                      4: cbreak()
                      5: {
                      6: #ifdef USG
                      7:        (cur_term->Nttyb).c_lflag &= ~ICANON;
                      8:        (cur_term->Nttyb).c_cc[VMIN] = 1;
                      9:        (cur_term->Nttyb).c_cc[VTIME] = 1;
                     10: # ifdef DEBUG
                     11:        if(outf) fprintf(outf, "crmode(), 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, "crmode(), file %x, SP %x, flags %x\n", SP->term_file, SP, cur_term->Nttyb.sg_flags);
                     17: # endif
                     18: #endif
                     19:        SP->fl_rawmode = TRUE;
                     20:        reset_prog_mode();
                     21: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.