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

Fix clear_screen/clear_line on Windows #45

Merged
merged 1 commit into from
Jan 25, 2020

Conversation

dalance
Copy link
Contributor

@dalance dalance commented Jan 25, 2020

On windows, clear_screen does not clear attributes like underline.
dalance/procs#34

This PR adds FillConsoleOutputAttribute to clear attributes as the same as https://docs.microsoft.com/en-us/windows/console/clearing-the-screen.

@mitsuhiko mitsuhiko merged commit b88db77 into console-rs:master Jan 25, 2020
@mitsuhiko
Copy link
Collaborator

Thanks!

@dalance
Copy link
Contributor Author

dalance commented Jan 25, 2020

Thank you for your quick response!

Archina pushed a commit to Archina/console that referenced this pull request Apr 5, 2021
Archina pushed a commit to Archina/console that referenced this pull request Apr 5, 2021
dtolnay pushed a commit to dtolnay-contrib/console that referenced this pull request Feb 4, 2022
this branch builds on console-rs#44 and adds waker stats to the console's task
view.

i also rearranged the task view a bit to make it a little more readable.
now, stats are grouped into boxes, and the fields are drawn on multiple
lines (which will be nice if we start recording user fields...).

for example:
![image](https://user-images.githubusercontent.com/2796466/121950547-a0721780-cd0e-11eb-89e3-f19e82391b2e.png)

also, i refactored a few things.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
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.

None yet

2 participants