-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
fix (hx --health): Don't print headers in white #12355
Conversation
Alright, I've improved this to print the table headers in bold so they still have some kind of visual highlighting. |
If the terminal has a white background, this makes them invisible. Make them bold instead. Fixes helix-editor#5516
|
||
// We can't directly use println!() because of | ||
// https://github.com/crossterm-rs/crossterm/issues/589 | ||
let _ = crossterm::execute!(std::io::stdout(), Print(data)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to reviewers: this workaround was not actually necessary (as can be verified by changing this line to write!(std::io::stdout(), "{}", data);
). The linked crossterm issue is about the Display
implementation of crossterm types, which is not relevant because the format!
call works on strings and styling is added later. This was probably an artifact of refactoring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
fix (hx --health): Don't print headers in white (helix-editor#12355)
Revert "fix (hx --health): Don't print headers in white (helix-editor#12355)"
If the terminal has a white background, this makes them invisible.
fixes #5516