Print to stdout while in a prompt
nmalcolm opened this issue · 1 comments
nmalcolm commented
Hi, is there some way to print to stdout
while a prompt is open? I have two threads, each with a loop{}
. one has inquire running and one fetches data and prints it to stdout
. The problem is the formatting gets messed up and my lines of results get spread across the terminal.
Ideally I want to have the prompt at the bottom of the terminal and have the results printed above it as they come in, but the first step is figuring how much of this is even possible.
Thanks a bunch!
nmalcolm commented
Fixed by using newline_converter::unix2dos()
on each line output.