Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion geekbot_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

def get_multiline_input(prompt_color, answer_type):
lines = []
# Display the instruction only for plain text questions
if answer_type == 'text':
console.print("[italic]Leave a blank line to continue[/italic]")
while True:
console.print("[#" + prompt_color + "]> [/#" + prompt_color + "]", end="")
line = input("")
Expand All @@ -28,7 +31,7 @@ def get_multiline_input(prompt_color, answer_type):
return line

if line == "":
break # Finish on empty input
break # Finish on empty input for text questions
lines.append(line)
return "\n".join(lines)

Expand Down