-
Notifications
You must be signed in to change notification settings - Fork 284
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
Add windows support with blessed #78
Conversation
I don't understand why the check fails, could you help me? |
This line fails: > t_color.normal = u'\x1b[0;10m'
E AttributeError: can't set attribute which is a workaround for #32. |
"fixed" |
gpustat/core.py
Outdated
@@ -487,11 +493,12 @@ def print_formatted(self, fp=sys.stdout, force_color=False, no_color=False, | |||
raise ValueError("--color and --no_color can't" | |||
" be used at the same time") | |||
|
|||
if force_color: | |||
if force_color and not self.is_windows(): |
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.
Why checking windows here? On windows, the --color
flag should also work.
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.
you're right! my bad
I am trying to add a travis CI test. Do you have any idea about why the test fails? |
No idea! For me the test works fine. The tests worked before, didn't they? |
Not on windows. |
Mhh. seriously no clue. The tests run fine on my Windows machine, also the command |
No worries, I will take care of them. FYI I reported an issue jquast/blessed#126. |
- To prevent blinking cursors, do not re-store cursor locations - Workaround sgr0 character issues (#32) again - Misc: various style cleanups
I've re-added support for Windows and fixed the broken imports/code
Main changes:
blessing
toblessed
. Essentially the same library, yet also works on Windowssignal.SIGPIPE
on Windows (not available). Don't know what that line's adding anyway.locale
formatting stringNone
, reportNone
Some remarks: On Windows (and partially on Linux), newer NVIDIA drivers can only report the memory usage of individual processes if the card is in TCC (dedicated) mode, that means no monitor is attached to them.
It might be handy to report this in the README