-
Notifications
You must be signed in to change notification settings - Fork 15
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
Added windows 10 support and cleaned up some formatting. #4
base: <3
Are you sure you want to change the base?
Conversation
This needs to be tested for a stock windows install, without a linux subsystem color support. But, it works for now.
Alright, this one should add native windows 10 support. Changed escape codes from \033 to \x1b to add cmd.exe support, and everything should now work in powershell and win 10 releases, as long as it's past 1703.
used friggin && instead of and
thank you 😊 i will merge this in after i finish the “smooth print” thing from another issue. |
gay.py
Outdated
@@ -251,7 +250,7 @@ def decor_24(rgb: RGB) -> Iterator[str]: | |||
|
|||
def decor_for(space: ColourSpace) -> Tuple[str, str, Callable[[RGB], Iterator[str]]]: | |||
if space == ColourSpace.EIGHT or WindowsColorTerm == True: | |||
return "\x1b[38;5;", "\x1b[48;5;", decor_8 |
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.
2 characters, seriously. that's all this changes.
I still need someone to test this for me, as my testing may not have been complete. |
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.
man the file history is gonna be all messed up :|
@wrennnnnn I just updated the code to work with the new microsoft terminal. It doesn't work with the old I guess maybe my version of Windows might be too old though, I havn't patched my VM in a while. You can try running my branch against your local machine, and if you are happy we can close this PR. |
No description provided.