use displayLine rather than display with displayCategory prompt
This commit is contained in:
parent
c8d79fc022
commit
b2e31fb012
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ proc prompt*(forcePrompts: ForcePrompt, question: string): bool =
|
||||||
display("Prompt:", question & " -> [forced no]", Warning, HighPriority)
|
display("Prompt:", question & " -> [forced no]", Warning, HighPriority)
|
||||||
return false
|
return false
|
||||||
of dontForcePrompt:
|
of dontForcePrompt:
|
||||||
display("Prompt:", question & " [y/N]", Warning, HighPriority)
|
displayLine("Prompt:", question & " [y/N]", Warning, HighPriority)
|
||||||
displayCategory("Answer:", Warning, HighPriority)
|
displayCategory("Answer:", Warning, HighPriority)
|
||||||
let yn = stdin.readLine()
|
let yn = stdin.readLine()
|
||||||
case yn.normalize
|
case yn.normalize
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue