iPXE
|
MuCurses keyboard input handling functions. More...
Go to the source code of this file.
Macros | |
#define | INPUT_DELAY 200 |
#define | INPUT_DELAY_TIMEOUT 1000 |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static int | _wgetc (WINDOW *win) |
int | wgetch (WINDOW *win) |
Pop a character from the FIFO into a window. More... | |
int | wgetnstr (WINDOW *win, char *str, int n) |
Read at most n characters from the FIFO into a window. More... | |
int | echo (void) |
int | noecho (void) |
Variables | |
int | m_delay |
bool | m_echo |
bool | m_cbreak |
MuCurses keyboard input handling functions.
Definition in file kb.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Definition at line 24 of file kb.c.
References _wputch(), _curses_window::attrs, c, ERR, _curses_screen::getc, INPUT_DELAY, INPUT_DELAY_TIMEOUT, m_delay, m_echo, mdelay(), NULL, _curses_screen::peek, _curses_window::scr, timer, and WRAP.
Referenced by wgetch(), and wgetnstr().
int wgetch | ( | WINDOW * | win | ) |
Pop a character from the FIFO into a window.
*win | window in which to echo input |
c | char from input stream |
Definition at line 55 of file kb.c.
References _wcursback(), _wgetc(), _wputch(), _curses_window::attrs, beep(), c, KEY_BACKSPACE, KEY_LEFT, KEY_MIN, m_echo, wdelch(), and WRAP.
Referenced by getch(), mvgetch(), and mvwgetch().
int wgetnstr | ( | WINDOW * | win, |
char * | str, | ||
int | n | ||
) |
Read at most n characters from the FIFO into a window.
*win | window in which to echo input |
*str | pointer to string in which to store result |
n | maximum number of characters to read into string (inc. NUL) |
rc | return status code |
Definition at line 88 of file kb.c.
References _wcursback(), _wgetc(), beep(), c, ERR, KEY_BACKSPACE, KEY_ENTER, KEY_LEFT, OK, and wdelch().
Referenced by getnstr(), getstr(), mvgetnstr(), mvgetstr(), mvwgetnstr(), mvwgetstr(), and wgetstr().
int echo | ( | void | ) |
Definition at line 133 of file kb.c.
References m_echo, OK, and TRUE.
Referenced by fc_els_echo_detect(), fc_els_echo_rx_request(), fc_els_echo_rx_response(), fc_els_echo_tx(), icmp_rx_echo_reply(), icmp_rx_echo_request(), icmp_tx_echo(), icmp_tx_echo_reply(), icmp_tx_echo_request(), ping_deliver(), and ping_rx().
int noecho | ( | void | ) |
bool m_echo |