22 #define SHORTHELPMSG "For a complete description of %s read the %s manual.\n" 27 "For a complete description of %s read the %s manual.\n\ 28 There are short introductions to both Spice 3 and Nutmeg available, in\n\ 29 addition to the SPICE User's Guide and the manual pages. If you don't\n" 32 "have these documents ask your system manager for them. Below is a short\n\ 33 list of useful commands -- for a list of all commands type \"help all\",\n\ 34 and for a short description of \"command\", type \"help command\".\n" 43 struct comm *ccc[512];
45 bool allflag =
false, tmpmm;
47 if (wl &&
eq(wl->wl_word,
"all")) {
67 ccc[numcoms] = &
cp_coms[numcoms];
68 qsort((
char *) ccc, numcoms,
sizeof (
struct comm *),
70 (
int(*)(
const void*,
const void*))
hcomp);
75 for (i = 0; i < numcoms; i++) {
93 " (Not available in nutmeg)");
176 qsort((
char *) cc, n,
sizeof(
struct comm *),
178 (
int(*)(
const void*,
const void*))
hcomp);
184 for (i=0; i< n; i++) {
186 if ((com->
co_env < (level << 13)) && (!(com->
co_env & 4095) ||
214 if (path ==
NULL || *path ==
'\0') {
215 fprintf(
cp_err,
"Note: can't find help dir %s\n", opath);
216 fprintf(
cp_err,
"Defaulting to old help.\n\n");
233 struct
comm **c1, **c2;
235 return (strcmp((*c1)->co_comname, (*c2)->co_comname));
247 int ncc = 0, npl = 0;
249 char *zz =
"Are you sure you want to quit (yes)? ";
268 "the following simulation%s still in progress:\n",
269 (ncc > 1) ?
"s are" :
" is");
278 "the following plot%s been saved:\n",
279 (npl > 1) ?
"s haven't" :
" hasn't");
289 if ((*buf ==
'y') || (*buf ==
'Y') || (*buf ==
'\n'))
317 fprintf(
cp_err,
"Error: No address to send bug reports to.\n");
325 fprintf(
cp_out,
"Calling the mail program . . .(sending to %s)\n\n",
328 "Please include the OS version number and machine architecture.\n");
330 "If the problem is with a specific circuit, please include the\n");
331 fprintf(
cp_out,
"input file.\n");
336 fprintf(
cp_out,
"Bug report sent. Thank you.\n");
357 s = strrchr(buf,DIR_TERM);
362 if ((fp = fopen(buf,
"w")) !=
NULL) {
363 fprintf(fp,
"SPICE and NUTMEG bug log file: %s\n",buf);
394 "Note: rawfile is version %s (current version is %s)\n",
static char buf[MAXPROMPT]
void com_ahelp(wordlist *wl)
bool cp_getvar(char *n, int t, char *r)
struct alias * cp_aliases
void com_ghelp(wordlist *wl)
void com_version(wordlist *wl)
struct circ * ft_circuits
int access(char *pth, int m)
char * SCEDfgets(char *s, int n, FILE *fp, char *prompt)
void com_quit(wordlist *wl)
void com_bug(wordlist *wl)
void com_help(wordlist *wl)
void ShowPrompt(char *str)