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

Added windows 10 support and cleaned up some formatting. #4

Open
wants to merge 9 commits into
base: <3
Choose a base branch
from

Conversation

wrennnnnn
Copy link

No description provided.

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
@wrennnnnn
Copy link
Author

Here's an image of it working on my VM.
image

@ms-jpq
Copy link
Owner

ms-jpq commented Jul 2, 2020

thank you 😊

i will merge this in after i finish the “smooth print” thing from another issue.

... i forgot one character in my escape codes
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
Copy link
Author

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.

@wrennnnnn
Copy link
Author

I still need someone to test this for me, as my testing may not have been complete.

Copy link
Owner

@ms-jpq ms-jpq left a 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 :|

@ms-jpq
Copy link
Owner

ms-jpq commented Jul 3, 2020

@wrennnnnn

I just updated the code to work with the new microsoft terminal.

It doesn't work with the old cmd.exe, but I couldn't make your branch work with it either.

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.

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