Skip to content
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

/dev/zero fix (final) #211

Merged
merged 1 commit into from
Dec 11, 2023
Merged

/dev/zero fix (final) #211

merged 1 commit into from
Dec 11, 2023

Conversation

sharifhsn
Copy link
Contributor

Fixes #200.

Instead of flushing on every single print, it flushes only when the first line is printed. This produces the expected behavior for hexyl /dev/zero:

❯ target/debug/hexyl /dev/zero
┌────────┬─────────────────────────┬─────────────────────────┬────────┬────────┐
│00000000│ 00 00 00 00 00 00 00 00 ┊ 00 00 00 00 00 00 00 00 │⋄⋄⋄⋄⋄⋄⋄⋄┊⋄⋄⋄⋄⋄⋄⋄⋄│
^C

@sharkdp sharkdp merged commit 1792090 into sharkdp:master Dec 11, 2023
14 checks passed
@sharkdp
Copy link
Owner

sharkdp commented Dec 11, 2023

Thank you!

@sharifhsn sharifhsn deleted the devzero branch December 12, 2023 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hexyl /dev/zero hangs
2 participants