2.4.8 Character Input
- Function: int rl_read_key (void)
- Return the next character available from Readline's current input stream.
This handles input inserted into
the input stream via rl_pending_input (see section 2.3 Readline Variables)
rl_stuff_char(), macros, and characters read from the keyboard.
While waiting for input, this function will call any function assigned to
- Function: int rl_getc (FILE *stream)
- Return the next character available from stream, which is assumed to
be the keyboard.
- Function: int rl_stuff_char (int c)
- Insert c into the Readline input stream. It will be "read"
before Readline attempts to read characters from the terminal with
- Function: int rl_execute_next (int c)
- Make c be the next command to be executed when
is called. This sets rl_pending_input.
- Function: int rl_clear_pending_input (void)
- Unset rl_pending_input, effectively negating the effect of any
previous call to
rl_execute_next(). This works only if the
pending input has not already been read with
- Function: int rl_set_keyboard_input_timeout (int u)
- While waiting for keyboard input in
rl_read_key(), Readline will
wait for u microseconds for input before calling any function
rl_event_hook. The default waiting period is
one-tenth of a second. Returns the old timeout value.
This document was generated
by (Blade) GNU s/w Owner on November, 10 2001