manpagez: man pages & more
info rlman
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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_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.

© 2000-2018
Individual documents may contain additional copyright information.