Sha256: b16268a2933646d474d17f4fbb5faf6a06595ce8ed8706b5ee2c1c663db758eb

Contents?: true

Size: 823 Bytes

Versions: 8

Compression:

Stored size: 823 Bytes

Contents

/* Public Domain Curses */

#include "pdcx11.h"

#if defined(HAVE_POLL) && !defined(HAVE_USLEEP)
# include <poll.h>
#endif

void PDC_beep(void)
{
    PDC_LOG(("PDC_beep() - called\n"));

    XCursesInstruct(CURSES_BELL);
}

void PDC_napms(int ms)
{
    PDC_LOG(("PDC_napms() - called: ms=%d\n", ms));

#if defined(HAVE_USLEEP)

    usleep(1000 * ms);

#elif defined(HAVE_POLL)
    {
        struct pollfd fd;
        fd.fd = -1;
        fd.events = 0;
        poll(&fd, 1, ms);
    }
#endif
}

const char *PDC_sysname(void)
{
    return "X11";
}

PDC_version_info PDC_version = { PDC_PORT_WINGUI,
          PDC_VER_MAJOR, PDC_VER_MINOR, PDC_VER_CHANGE,
          sizeof( chtype),
#ifdef PDC_WIDE
          TRUE,
#else
          FALSE,
#endif
#ifdef PDC_FORCE_UTF8
          TRUE,
#else
          FALSE,
#endif
          };

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
curses-1.4.7 vendor/PDCurses/x11/pdcutil.c
curses-1.4.5 vendor/PDCurses/x11/pdcutil.c
curses-1.4.4 vendor/PDCurses/x11/pdcutil.c
curses-1.4.4.beta.1 vendor/PDCurses/x11/pdcutil.c
curses-1.4.3 vendor/PDCurses/x11/pdcutil.c
curses-1.4.2 vendor/PDCurses/x11/pdcutil.c
curses-1.4.1 vendor/PDCurses/x11/pdcutil.c
curses-1.4.0 vendor/PDCurses/x11/pdcutil.c