Пример #1
0
/*
 * Use PDcurses' keyboard checker if it's initialised.
 */
static int __inline win_kbhit (void)
{
#if defined(HAVE_NCURSES) && !defined(BUILDING_UTILS)
    if ((current_screen.flags & WDG_SCR_INITIALIZED))
        return PDC_check_bios_key();
#endif
    return _kbhit();
}
Пример #2
0
bool	PDC_breakout()
#endif
/***********************************************************************/
{
extern	int	c_pindex;			/* putter index */
extern	int	c_gindex;			/* getter index */
extern	int	c_ungind;			/* wungetch() push index */

#ifdef PDCDEBUG
	if (trace_on) PDC_debug("PDC_breakout() - called\n");
#endif

	if (c_ungind)
		return (TRUE);			/* ungotten char */
	if (c_pindex > c_gindex)
		return (TRUE);			/* buffered char */

	return((bool)PDC_check_bios_key());
}