-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for synchronized output, leveraging Funami580's work #205
base: main
Are you sure you want to change the base?
Support for synchronized output, leveraging Funami580's work #205
Conversation
@chris-laplante this has some conflicts still, can you clean those up? @mitsuhiko got time to look at this? |
Co-authored-by: Funami580 <63090225+Funami580@users.noreply.github.com>
d997294
to
5d0d3ea
Compare
Done. |
As per request I copied this comment from my indicatif PR:
Just a note for the future: The Windows 10 terminal can support ANSI codes, if you enable them. If you call console/src/windows_term/mod.rs Line 77 in de2f15a
So in the future it might look like this. #[inline]
pub fn is_synchronized_output_supported(&self) -> bool {
#[cfg(unix)]
{
supports_synchronized_output()
}
#[cfg(not(unix))]
{
self.colors_supported() && supports_synchronized_output()
}
} I think it would be more efficient to cache the result of But right now, the In my last update for this PR, I simply removed By the way, this one line that I removed in console ( |
@Funami580 Thank you! Would you be able to make the change for I've given you push access to my fork (https://github.com/chris-laplante/console). Or at least I think I did... |
Sure, done!
I don't have a mac either ^^ |
Thanks! I guess I could have made that change after all lol 🤡 Happy to share the commit credit though :). If you want to make any of the other changes you described before, feel free. |
Thanks for the option, but I'm not sure if the changes (I think you mean removing |
That's fair. I'm not a maintainer of this crate so I defer to @mitsuhiko, when he gets some time :). |
Funami580 did the heavy lifting - all I did was take their
SyncGuard
and move it here into console.See also console-rs/indicatif#625
TODO before merge (see console-rs/indicatif#618 (comment)):
std::ptr
for macOS (I don't have a mac to compile for testing purposes)supports_synchronized_output
entirely?