|
|
1.1 ! root 1: #include "curses.ext" ! 2: /* @(#) nl.c: 1.1 10/15/83 (1.19 3/17/83) */ ! 3: ! 4: nl() ! 5: { ! 6: #ifdef USG ! 7: (cur_term->Nttyb).c_iflag |= ICRNL; ! 8: (cur_term->Nttyb).c_oflag |= ONLCR; ! 9: # ifdef DEBUG ! 10: if(outf) fprintf(outf, "nl(), file %x, SP %x, flags %x,%x\n", SP->term_file, SP, cur_term->Nttyb.c_iflag, cur_term->Nttyb.c_oflag); ! 11: # endif ! 12: #else ! 13: (cur_term->Nttyb).sg_flags |= CRMOD; ! 14: # ifdef DEBUG ! 15: if(outf) fprintf(outf, "nl(), file %x, SP %x, flags %x\n", SP->term_file, SP, cur_term->Nttyb.sg_flags); ! 16: # endif ! 17: #endif ! 18: reset_prog_mode(); ! 19: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.