Open asm0dey opened 7 years ago
I think this would be a nice feature. I'm currently working on another project, which will keep me busy for several months. Therefore, I put the label "up-for-grabs" on this issue, to indicate that this feature has been specifically chosen to be implemented by contributors.
Some guidelines for contributors:
When a print method runs in parallel with a read method, an ideal implementation will allow specifying the desired behavior:
(It is OK to send a PR implementing only one of these two approaches, leaving the other one open for a future contribution.)
In order to prevent that two people work on the same thing, leave a comment here to claim this issue before starting to work on it.
Any plans on introducing it? This library is pretty useless without this feature.
Sorry, currently I have no time to implement this feature and no one stepped in to do this. Would you be interested perhaps in sending a pull request for implementing this feature?
My usecase: By default I'm waiting for some input from user. But sometimes my program's background thread needs to print some output. If I do this — this outputs is being inserted as answer into console and, of course, it's not correct behaviour. Minimalistic example:
Is it possible to make terminal redraw question if another thread is trying to print something?