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

1.1       root        1: /*     @(#) _inschars.c: 1.1 10/15/83  (1.21   2/11/83)        */
                      2: 
                      3: #include "curses.ext"
                      4: 
                      5: char *tparm();
                      6: 
                      7: extern int     _outch();
                      8: 
                      9: /*
                     10:  * Insert n blank characters.
                     11:  */
                     12: _inschars(n)
                     13: {
                     14: #ifdef DEBUG
                     15:        if(outf) fprintf(outf, "_inschars(%d).\n", n);
                     16: #endif
                     17:        if (enter_insert_mode && SP->phys_irm == 0) {
                     18:                tputs(enter_insert_mode, 1, _outch);
                     19:                SP->phys_irm = 1;
                     20:        }
                     21:        if (parm_ich && n > 1)
                     22:                tputs(tparm(parm_ich, n), n, _outch);
                     23:        else
                     24:                while (--n >= 0)
                     25:                        tputs(insert_character, 1, _outch);
                     26: }

unix.superglobalmegacorp.com

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