19 #define LEDLIB_LINESIZE 1000 21 #ifndef _WRS_VXWORKS_MAJOR 36 struct osdContext *osd = malloc(
sizeof *osd);
39 osd->ledId = (
LED_ID) ERROR;
47 osd->ledId = ledOpen(fileno(
stdin), fileno(
stdout), i);
48 if (osd->ledId == (
LED_ID) ERROR) {
50 printf(
"Warning -- Unabled to allocate space for command-line history.\n");
51 printf(
"Warning -- Command-line editting disabled.\n");
64 struct osdContext *osd = context->
osd;
71 if (osd->ledId != (
LED_ID) ERROR) {
79 i = strlen(osd->line);
81 if ((i >= 1) && (osd->line[i-1] ==
'\n'))
82 osd->line[i-1] =
'\0';
96 if (ledId != (
LED_ID) ERROR)
LIBCOM_API const ENV_PARAM IOCSH_HISTSIZE
LIBCOM_API long epicsStdCall envGetLongConfigParam(const ENV_PARAM *pParam, long *pLong)
Get value of a long configuration parameter.