epicsReadline.h
Command-line editing functions.
Provides a generalized API for command line history and line-editing. The implementation of this API can call GNU Readline, libtecla, and on VxWorks the ledLib routines, according to the EPICS build configuration.
- Author
Eric Norum
Functions
-
void *epicsReadlineBegin(FILE *in)
Create a command-line context.
- Parameters:
in – Filehandle to read from
- Returns:
Command-line context
-
char *epicsReadline(const char *prompt, void *context)
Read a line of input.
- Parameters:
prompt – Prompt string
context – To read from
- Returns:
Line read
-
void epicsReadlineEnd(void *context)
Destroy a command-line context.
- Parameters:
context – Command-line context to destroy