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

1.1       root        1: /*     @(#) def_prog.c: 1.1 10/15/83   (1.36   3/18/83)        */
                      2: 
                      3: #include       "curses.h"
                      4: #include       "term.h"
                      5: 
                      6: extern struct term *cur_term;
                      7: 
                      8: def_prog_mode()
                      9: {
                     10: #ifdef USG
                     11:        ioctl(cur_term -> Filedes, TCGETA, &(cur_term->Nttyb));
                     12: #else
                     13:        ioctl(cur_term -> Filedes, TIOCGETP, &(cur_term->Nttyb));
                     14: #endif
                     15: }

unix.superglobalmegacorp.com

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