#include <termios.h>
#include <isc/lang.h>
#include <isc/result.h>
Go to the source code of this file.
Data Structures | |
struct | isc_keyboard_t |
Defines | |
#define | ISC_KEYBOARD_H 1 |
Functions | |
isc_result_t | isc_keyboard_open (isc_keyboard_t *keyboard) |
isc_result_t | isc_keyboard_close (isc_keyboard_t *keyboard, unsigned int sleepseconds) |
isc_result_t | isc_keyboard_getchar (isc_keyboard_t *keyboard, unsigned char *cp) |
isc_boolean_t | isc_keyboard_canceled (isc_keyboard_t *keyboard) |
Definition in file keyboard.h.
#define ISC_KEYBOARD_H 1 |
Definition at line 21 of file keyboard.h.
isc_result_t isc_keyboard_open | ( | isc_keyboard_t * | keyboard | ) |
Definition at line 38 of file keyboard.c.
References isc_keyboard_t::fd, ISC_R_IOERROR, ISC_R_SUCCESS, REQUIRE, isc_keyboard_t::result, and isc_keyboard_t::saved_mode.
Referenced by kbdstart().
isc_result_t isc_keyboard_close | ( | isc_keyboard_t * | keyboard, | |
unsigned int | sleepseconds | |||
) |
Definition at line 83 of file keyboard.c.
References isc_keyboard_t::fd, ISC_R_CANCELED, ISC_R_SUCCESS, REQUIRE, isc_keyboard_t::result, and isc_keyboard_t::saved_mode.
Referenced by kbdstop().
isc_result_t isc_keyboard_getchar | ( | isc_keyboard_t * | keyboard, | |
unsigned char * | cp | |||
) |
Definition at line 98 of file keyboard.c.
References isc_keyboard_t::fd, ISC_R_CANCELED, ISC_R_IOERROR, ISC_R_SUCCESS, REQUIRE, isc_keyboard_t::result, and isc_keyboard_t::saved_mode.
Referenced by kbdget().
isc_boolean_t isc_keyboard_canceled | ( | isc_keyboard_t * | keyboard | ) |
Definition at line 124 of file keyboard.c.
References ISC_R_CANCELED, ISC_TF, and isc_keyboard_t::result.
Referenced by kbdstop().