Skip to content

Ctrl-D causes infinite loop of line prompt #1227

Open
@lucifer1004

Description

@lucifer1004

function nonempty_line_prompt(name, msg; outs=stdout, kwargs...)
while true
val = line_prompt(name, msg; outs=outs, kwargs...)
if isempty(val)
printstyled(outs, "$(name) may not be empty!\n", color=:red)
continue
end
return val
end
end

To reproduce:

  • Run the wizard
  • Go to step 2
  • When the prompt asks you to enter a URL, press Ctrl-D
  • Infinite loop starts

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions