readline: Terminal Management
2.4.9 Terminal Management
-------------------------
-- Function: void rl_prep_terminal (int meta_flag)
Modify the terminal settings for Readline's use, so 'readline()'
can read a single character at a time from the keyboard. The
META_FLAG argument should be non-zero if Readline should read
eight-bit input.
-- Function: void rl_deprep_terminal (void)
Undo the effects of 'rl_prep_terminal()', leaving the terminal in
the state in which it was before the most recent call to
'rl_prep_terminal()'.
-- Function: void rl_tty_set_default_bindings (Keymap kmap)
Read the operating system's terminal editing characters (as would
be displayed by 'stty') to their Readline equivalents. The
bindings are performed in KMAP.
-- Function: void rl_tty_unset_default_bindings (Keymap kmap)
Reset the bindings manipulated by 'rl_tty_set_default_bindings' so
that the terminal editing characters are bound to 'rl_insert'. The
bindings are performed in KMAP.
-- Function: int rl_tty_set_echoing (int value)
Set Readline's idea of whether or not it is echoing output to its
output stream (RL_OUTSTREAM). If VALUE is 0, Readline does not
display output to RL_OUTSTREAM; any other value enables output.
The initial value is set when Readline initializes the terminal
settings. This function returns the previous value.
-- Function: int rl_reset_terminal (const char *terminal_name)
Reinitialize Readline's idea of the terminal settings using
TERMINAL_NAME as the terminal type (e.g., 'vt100'). If
TERMINAL_NAME is 'NULL', the value of the 'TERM' environment
variable is used.