#include <readline/able_history.h>


Go to the source code of this file.
Defines | |
| #define | _ABLE_CLIB_ABLE_READLINE_H 1 |
Functions | |
| char * | able_readline (able_history_t *history, const char *prompt) |
| Reads input from user with emacs style line editing. | |
| char * | able_editline (struct able_history_s *history, const char *prompt, char *text) |
| Reads input from user with emacs style line editing. | |
| char * | simple_readline (const char *prompt, int silent, int timeout, unsigned char delim, int max_len) |
| Read a line of input from user. | |
| #define _ABLE_CLIB_ABLE_READLINE_H 1 |
| char* able_editline | ( | struct able_history_s * | history, | |
| const char * | prompt, | |||
| char * | text | |||
| ) |
Reads input from user with emacs style line editing.
Obtains input from the user with full emacs style editing, allowing for:
This interface allows for text to be given at the beginning of editing instead of an empty line.
| history | An ABLE history context if history is to be used or NULL to disable history processing. | |
| prompt | A string which will be used as the prompt or NULL if no prompt is required. | |
| text | A string to start editing or NULL if none is required. This string is manipulated by able_editline and must be a heap block returned by malloc or calloc. In a similar manner to realloc only the returned string may be relied upon and the passed in pointer should be discarded. |
| char* able_readline | ( | able_history_t * | history, | |
| const char * | prompt | |||
| ) |
Reads input from user with emacs style line editing.
Obtains input from the user with full emacs style editing, allowing for:
| history | An ABLE history context if history is to be used or NULL to disable history processing. | |
| prompt | A string which will be used as the prompt or NULL if no prompt is required. |
| char* simple_readline | ( | const char * | prompt, | |
| int | silent, | |||
| int | timeout, | |||
| unsigned char | delim, | |||
| int | max_len | |||
| ) |
Read a line of input from user.
Obtains input from the user with delete support but no fancy editing or history. The display of user input and termination delimiter is selectable.
| prompt | The prompt to display to the user or NULL if no prompt is required. | |
| silent | A flag used to inhibit echoing of the user input. Non zero to inhibit. | |
| timeout | An input timeout in seconds. | |
| delim | The character used to terminate input. Typically ' ' | |
| max_len | The maximum length of input accepted. |
1.5.6