GNU Readline Library. Node: Utility Functions
Modifying Text
Readline Convenience Functions
Alternate Interface
2.4.8: Utility Functions
- Function: int rl_read_key
()
-
Return the next character available. This handles input inserted into
the input stream via pending input (see Readline Variables)
and
rl_stuff_char ()
, macros, and characters read from the keyboard.
- Function: int rl_getc
(FILE *)
-
Return the next character available from 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: rl_extend_line_buffer (int
len)
-
Ensure that
rl_line_buffer
has enough space to hold len
characters, possibly reallocating it if necessary.
- Function: int rl_initialize
()
-
Initialize or re-initialize Readline's internal state.
- Function: int rl_reset_terminal
(char *terminal_name)
-
Reinitialize Readline's idea of the terminal settings using
terminal_name as the terminal type (e.g.,
vt100
).
- Function: int alphabetic
(int c)
-
Return 1 if c is an alphabetic character.
- Function: int numeric
(int c)
-
Return 1 if c is a numeric character.
- Function: int ding
()
-
Ring the terminal bell, obeying the setting of
bell-style
.
The following are implemented as macros, defined in chartypes.h
.
- Function: int uppercase_p
(int c)
-
Return 1 if c is an uppercase alphabetic character.
- Function: int lowercase_p
(int c)
-
Return 1 if c is a lowercase alphabetic character.
- Function: int digit_p
(int c)
-
Return 1 if c is a numeric character.
- Function: int to_upper
(int c)
-
If c is a lowercase alphabetic character, return the corresponding
uppercase character.
- Function: int to_lower
(int c)
-
If c is an uppercase alphabetic character, return the corresponding
lowercase character.
- Function: int digit_value
(int c)
-
If c is a number, return the value it represents.
Modifying Text
Readline Convenience Functions
Alternate Interface