4f85a1eb76
Change-Id: If881ec130833c7e7e62caa3d31e350a531f5bc8e Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/12398 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
36 lines
539 B
C
36 lines
539 B
C
/* Public Domain Curses */
|
|
|
|
#include "pdcos2.h"
|
|
|
|
RCSID("$Id: pdcutil.c,v 1.14 2008/07/14 04:24:51 wmcbrine Exp $")
|
|
|
|
#if defined(OS2) && !defined(__EMX__)
|
|
APIRET APIENTRY DosSleep(ULONG ulTime);
|
|
#endif
|
|
|
|
void PDC_beep(void)
|
|
{
|
|
PDC_LOG(("PDC_beep() - called\n"));
|
|
|
|
#ifdef EMXVIDEO
|
|
putchar('\007');
|
|
#else
|
|
DosBeep(1380, 100);
|
|
#endif
|
|
}
|
|
|
|
void PDC_napms(int ms)
|
|
{
|
|
PDC_LOG(("PDC_napms() - called: ms=%d\n", ms));
|
|
|
|
#ifdef __EMX__
|
|
_sleep2(ms);
|
|
#else
|
|
DosSleep(ms);
|
|
#endif
|
|
}
|
|
|
|
const char *PDC_sysname(void)
|
|
{
|
|
return "OS/2";
|
|
}
|