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

1.1       root        1: /*
                      2:  * Code for various kinds of delays.  Most of this is nonportable and
                      3:  * requires various enhancements to the operating system, so it won't
                      4:  * work on all systems.  It is included in curses to provide a portable
                      5:  * interface, and so curses itself can use it for function keys.
                      6:  */
                      7: 
                      8: /*     @(#) delayoutpt.c: 1.1 10/15/83 (1.10   3/6/83) */
                      9: 
                     10: #include "curses.ext"
                     11: #include <signal.h>
                     12: 
                     13: /*
                     14:  * Delay the output for ms milliseconds.
                     15:  * Note that this is NOT the same as a high resolution sleep.  It will
                     16:  * cause a delay in the output but will not necessarily suspend the
                     17:  * processor.  For applications needing to sleep for 1/10th second,
                     18:  * this is not a usable substitute.  It causes a pause in the displayed
                     19:  * output, for example, for the eye wink in snake.  It is disrecommended
                     20:  * for "delay" to be much more than 1/2 second, especially at high
                     21:  * baud rates, because of all the characters it will output.  Note
                     22:  * that due to system delays, the actual pause could be even more.
                     23:  * Some games won't work decently with this routine.
                     24:  */
                     25: delay_output(ms)
                     26: int ms;
                     27: {
                     28:        extern int _outchar();          /* it's in putp.c */
                     29: 
                     30:        return _delay(ms*10, _outchar);
                     31: }

unix.superglobalmegacorp.com

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