GNU Info

Info Node: (readline.info)Character Input

(readline.info)Character Input


Next: Terminal Management Prev: Modifying Text Up: Readline Convenience Functions
Enter node , (file) or (file)node

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 (Note: Readline Variables) and
     `rl_stuff_char()', macros, and characters read from the keyboard.
     While waiting for input, this function will call any function
     assigned to the `rl_event_hook' variable.

 - 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
     `rl_read_key()'.

 - Function: int rl_execute_next (int c)
     Make C be the next command to be executed when `rl_read_key()' 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 `rl_read_key()'.

 - 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
     assigned to `rl_event_hook'.  The default waiting period is
     one-tenth of a second.  Returns the old timeout value.


automatically generated by info2www version 1.2.2.9