Lines Matching defs:prompt
156 // Print prompt, parsing escapes
157 static void do_prompt(char *prompt)
161 if (!prompt) prompt = "\\$ ";
162 while (*prompt) {
163 c = *(prompt++);
166 if (*prompt=='!') prompt++;
174 cc = *(prompt++);
190 prompt--;
697 // 1 to request another line of input (> prompt), -1 for syntax err
1219 if ((prompt = parse_line(new, &scratch))<0) break;
1222 if (!prompt) {
1243 int prompt = 0;
1262 char *s = getenv(prompt ? "PS2" : "PS1");
1264 if (!s) s = prompt ? "> " : (getpid() ? "\\$ " : "# ");
1272 prompt = parse_line(new, &scratch);
1274 if (prompt != 1) {
1276 if (!prompt) run_function(&scratch);
1278 prompt = 0;
1283 if (prompt) error_exit("%ld:unfinished line"+4*!TT.lineno, TT.lineno);