Lines Matching defs:prompt
314 std::string prompt = m_set_prompt;
315 if (use_line_numbers && prompt.length() == 0)
316 prompt = ": ";
317 std::string continuation_prompt = prompt;
321 const size_t prompt_width = ColumnWidth(prompt);
326 prompt += std::string(padded_prompt_width - prompt_width, ' ');
336 (line_index == 0) ? prompt.c_str() : continuation_prompt.c_str());
339 return (line_index == 0) ? prompt : continuation_prompt;
431 std::string prompt =
433 int line_length = (int)(content.length() + ColumnWidth(prompt));
535 // Paint a ANSI formatted version of the desired prompt over the version
1504 void Editline::SetPrompt(const char *prompt) {
1505 m_set_prompt = prompt == nullptr ? "" : prompt;