Lines Matching defs:prompt
603 * Get column length of prompt text.
605 static size_t bc_history_promptColLen(const char *prompt, size_t plen) {
614 if (bc_history_ansiEscape(prompt + off, plen - off, &len)) {
619 buf[buf_len++] = prompt[off++];
659 // Write the prompt, if desired.
662 bc_file_write(&vm.fout, bc_flush_none, h->prompt, h->plen);
697 colpos = bc_history_promptColLen(h->prompt, h->plen);
1123 static BcStatus bc_history_edit(BcHistory *h, const char *prompt) {
1135 h->prompt = prompt;
1136 h->plen = strlen(prompt);
1137 h->pcol = bc_history_promptColLen(prompt, h->plen);
1139 bc_file_write(&vm.fout, bc_flush_none, prompt, h->plen);
1308 static BcStatus bc_history_raw(BcHistory *h, const char *prompt) {
1316 s = bc_history_edit(h, prompt);
1327 BcStatus bc_history_line(BcHistory *h, BcVec *vec, const char *prompt) {
1332 s = bc_history_raw(h, prompt);