NAME
ggiGetSelectFD - Obtain a file descriptor for a visual
SYNOPSIS
#include <ggi/ggi.h>
int ggiGetSelectFD(ggi_visual_t vis);
DESCRIPTION
ggiGetSelectFD obtains a (Unix) file descriptor for the specified visual. This file descriptor then can be passed as part of a set to select(2) -- when there is input available, it becomes readable. This is useful in user interfaces where you need to wait for multiple inputs at once.
RETURN VALUE
File descriptor, or -1 if it is not available (you will need to poll the visual for events then).
When the file descriptor becomes readable, use ggiEventPoll and ggiEventRead to get the event.