-
-
Notifications
You must be signed in to change notification settings - Fork 253
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 ability to convert strings without writing to console #311
Comments
Surely sounds like a good idea to me, but that would of course be a completely different, compatibility-breaking approach that would mean more or less a rewrite of colorama. I'm not sure whether a completely new project wouldn't be more suitable for this. As a design consideration, I'd rather name the method |
Yes. I just realized a few days ago that ANSI codes work on Windows 10, though I can't get them to work for the Python Repl. Do you know the escape pattern that would work? |
ANSI codes working on the classical Windows 10 cmd is new to me. I thought that would require Windows-specific API calls? -- Does colorama work with Vistual Studio REPL? |
Yeah, putting the |
Creating a
convert(string: str)
global function would make certain programs easier.I usually code Colorama into a Python package for Windows support. I find that I have to write an initialize script in
__init__.py
because it seems unnecessary toinit()
anddeinit()
every time. This convert function would fix that.string
(this leaves room for configuration)Some examples of this used:
The text was updated successfully, but these errors were encountered: