|
|
1.1 ! root 1: /********************************************************************* ! 2: * COPYRIGHT NOTICE * ! 3: ********************************************************************** ! 4: * This software is copyright (C) 1982 by Pavel Curtis * ! 5: * * ! 6: * Permission is granted to reproduce and distribute * ! 7: * this file by any means so long as no fee is charged * ! 8: * above a nominal handling fee and so long as this * ! 9: * notice is always included in the copies. * ! 10: * * ! 11: * Other rights are reserved except as explicitly granted * ! 12: * by written permission of the author. * ! 13: * Pavel Curtis * ! 14: * Computer Science Dept. * ! 15: * 405 Upson Hall * ! 16: * Cornell University * ! 17: * Ithaca, NY 14853 * ! 18: * * ! 19: * Ph- (607) 256-4934 * ! 20: * * ! 21: * Pavel.Cornell@Udel-Relay (ARPAnet) * ! 22: * decvax!cornell!pavel (UUCPnet) * ! 23: *********************************************************************/ ! 24: ! 25: /* ! 26: ** lib_tstp.c ! 27: ** ! 28: ** The routine tstp(). ! 29: ** ! 30: ** $Log: lib_tstp.c,v $ ! 31: * Revision 1.8 93/04/12 14:14:38 bin ! 32: * Udo: third color update ! 33: * ! 34: * Revision 1.2 92/04/13 14:38:48 bin ! 35: * update by vlad ! 36: * ! 37: * Revision 2.1 82/10/25 14:49:39 pavel ! 38: * Added Copyright Notice ! 39: * ! 40: * Revision 2.0 82/10/25 13:50:01 pavel ! 41: * Beta-one Test Release ! 42: * ! 43: ** ! 44: */ ! 45: ! 46: #ifdef RCSHDR ! 47: static char RCSid[] = ! 48: "$Header: /src386/usr/lib/ncurses/RCS/lib_tstp.c,v 1.8 93/04/12 14:14:38 bin Exp Locker: bin $"; ! 49: #endif ! 50: ! 51: #include "term.h" ! 52: #include "curses.h" ! 53: #include "curses.priv.h" ! 54: #include <signal.h> ! 55: ! 56: ! 57: static ! 58: outc(ch) ! 59: char ch; ! 60: { ! 61: putc(ch, SP->_ofp); ! 62: } ! 63: ! 64: ! 65: tstp() ! 66: { ! 67: #ifdef TRACE ! 68: if (_tracing) ! 69: _tracef("tstp() called"); ! 70: #endif ! 71: ! 72: endwin(); ! 73: ! 74: #ifdef SIGTSTP ! 75: kill(0, SIGTSTP); ! 76: signal(SIGTSTP, tstp); ! 77: #endif ! 78: ! 79: fixterm(); ! 80: flushinp(); ! 81: tputs(enter_ca_mode, 1, outc); ! 82: wrefresh(curscr); ! 83: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.