1: # include   <signal.h>
   2: 
   3: # include   "curses.ext"
   4: 
   5: /*
   6:  * handle stop and start signals
   7:  *
   8:  * %G% (Berkeley) %W%
   9:  */
  10: tstp() {
  11: 
  12: # ifdef SIGTSTP
  13: 
  14:     SGTTY   tty;
  15: # ifdef DEBUG
  16:     if (outf)
  17:         fflush(outf);
  18: # endif
  19:     tty = _tty;
  20:     mvcur(0, COLS - 1, LINES - 1, 0);
  21:     endwin();
  22:     fflush(stdout);
  23:     kill(0, SIGTSTP);
  24:     signal(SIGTSTP, tstp);
  25:     _tty = tty;
  26:     stty(_tty_ch, &_tty);
  27:     wrefresh(curscr);
  28: # endif	SIGTSTP
  29: }

Defined functions

tstp defined in line 10; used 3 times
Last modified: 1983-05-18
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 616
Valid CSS Valid XHTML 1.0 Strict