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

1.1       root        1: /*     @(#) _kpmode.c: 1.1 10/15/83    (1.21   2/11/83)        */
                      2: 
                      3: #include "curses.ext"
                      4: 
                      5: extern int     _outch();
                      6: 
                      7: _kpmode(m)
                      8: {
                      9: #ifdef DEBUG
                     10:        if (outf) fprintf(outf, "kpmode(%d), SP->kp_state %d\n",
                     11:        m, SP->kp_state);
                     12: #endif
                     13:        if (m == SP->kp_state)
                     14:                return;
                     15:        if (m)
                     16:                tputs(keypad_xmit, 1, _outch);
                     17:        else
                     18:                tputs(keypad_local, 1, _outch);
                     19:        SP->kp_state = m;
                     20: }

unix.superglobalmegacorp.com

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