int delay_output(int ms) { T((T_CALLED("delay_output(%d)"), ms)); if (cur_term == 0 || cur_term->_baudrate <= 0) { (void) fflush(OUTPUT); _nc_timed_wait(0, ms, (int *)0); } #ifdef no_pad_char else if (no_pad_char) napms(ms); #endif /* no_pad_char */ else { register int nullcount; char null = '\0'; #ifdef pad_char if (pad_char) null = pad_char[0]; #endif /* pad_char */ nullcount = ms * cur_term->_baudrate / 10000; for (_nc_nulls_sent += nullcount; nullcount > 0; nullcount--) my_outch(null); if (my_outch == _nc_outch) (void) fflush(OUTPUT); } returnCode(OK); }
delay_output(int ms) { T((T_CALLED("delay_output(%d)"), ms)); if (no_pad_char) { _nc_flush(); napms(ms); } else { register int nullcount; nullcount = (ms * _nc_baudrate(ospeed)) / 10000; for (_nc_nulls_sent += nullcount; nullcount > 0; nullcount--) my_outch(PC); if (my_outch == _nc_outch) _nc_flush(); } returnCode(OK); }
NCURSES_SP_NAME(delay_output) (NCURSES_SP_DCLx int ms) { T((T_CALLED("delay_output(%p,%d)"), (void *) SP_PARM, ms)); if (!HasTInfoTerminal(SP_PARM)) returnCode(ERR); if (no_pad_char) { NCURSES_SP_NAME(_nc_flush) (NCURSES_SP_ARG); napms(ms); } else { NCURSES_SP_OUTC my_outch = GetOutCh(); register int nullcount; nullcount = (ms * _nc_baudrate(ospeed)) / (BAUDBYTE * 1000); for (_nc_nulls_sent += nullcount; nullcount > 0; nullcount--) my_outch(NCURSES_SP_ARGx PC); if (my_outch == NCURSES_SP_NAME(_nc_outch)) NCURSES_SP_NAME(_nc_flush) (NCURSES_SP_ARG); } returnCode(OK); }