Allow run-time modification of prompt.

This commit is contained in:
W. Eric Norum
2003-05-08 16:04:04 +00:00
parent 1de0a6c42d
commit 5ec41e6088
+5
View File
@@ -454,6 +454,11 @@ iocsh (const char *pathname)
&argBuf[arg], piocshFuncDef->arg[arg]))
break;
}
if((prompt != NULL) && (strcmp(argv[0], "epicsEnvSet") == 0)) {
char *newPrompt;
if ((newPrompt = getenv ("IOCSH_PS1")) != NULL)
prompt = newPrompt;
}
}
}
if (fp && (fp != stdin))