15 #include <readline/readline.h> 16 #include <readline/history.h> 20 static struct osdContext {
26 static void rlExit(
void *
dummy) {
28 rl_cleanup_after_signal();
43 context->
osd = &present;
51 rl_bind_key(
'\t', rl_insert);
67 line = readline (prompt);
75 line = malloc(linesize);
77 printf(
"Out of memory!\n");
84 while ((c = getc(context->
in)) !=
'\n') {
90 if ((linelen + 1) >= linesize) {
94 cp = (
char *)realloc(line, linesize);
96 printf (
"Out of memory!\n");
106 line[linelen] =
'\0';
LIBCOM_API const ENV_PARAM IOCSH_HISTSIZE
Extended replacement for the Posix exit and atexit routines.
epics::pvData::PVStructurePtr dummy
LIBCOM_API long epicsStdCall envGetLongConfigParam(const ENV_PARAM *pParam, long *pLong)
Get value of a long configuration parameter.
#define epicsAtExit(F, A)
Convenience macro to register a function and context value to be run when the process exits...