You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While it is possible to use the stdout/stderr wrappers to output something to the console, for some use-cases this is not enough.
I want to prompt the user with a selection using dialoguer, which wants to have the real terminal writer (by having an AsRawFd trait bound on the Term constructor).
I think this can be ultimately accomplished by exposing the suspend function of the MultiProgress, allowing to hide progress bars during the user interaction (as suggested in console-rs/indicatif#158). This has a side-effect of blocking every other thing that tries to write to the output (including the tracing fmt layer if it was registered), but I think there's no real way to multiplex that..
The text was updated successfully, but these errors were encountered:
While it is possible to use the stdout/stderr wrappers to output something to the console, for some use-cases this is not enough.
I want to prompt the user with a selection using dialoguer, which wants to have the real terminal writer (by having an
AsRawFd
trait bound on theTerm
constructor).I think this can be ultimately accomplished by exposing the
suspend
function of theMultiProgress
, allowing to hide progress bars during the user interaction (as suggested in console-rs/indicatif#158). This has a side-effect of blocking every other thing that tries to write to the output (including the tracing fmt layer if it was registered), but I think there's no real way to multiplex that..The text was updated successfully, but these errors were encountered: