We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug lolpython 2.2.0 does not work in cygwin and msys2. lolpython 2.0.0 worked correctly. The following error message is shown.
No support for colour on this terminal. Try bash/cygwin.
To Reproduce Steps to reproduce the behavior:
from lolpython import lol_py lol_py("AAAAAAAAAAAAAAAAAAAA")
Expected behavior Gradate-colored 'AAAAAAAAAAAAAAAAAAAA' text should be shown.
Desktop (please complete the following information):
The patch to fix the issue
diff --git a/lolpython/main.py b/lolpython/main.py index 221606d..b872887 100644 --- a/lolpython/main.py +++ b/lolpython/main.py @@ -21,7 +21,7 @@ def supports_color(): """ plat = sys.platform supported_platform = (plat != 'Pocket PC' and ('ANSICON' in os.environ)) \ - or (plat.lower() == 'linux' and os.environ.get('TERM', '').endswith('256color')) + or os.environ.get('TERM', '').endswith('256color') is_wnd_term = detect_windows_terminal() # isatty is not always implemented, #6223. is_a_tty = hasattr(sys.stdout, 'isatty') and sys.stdout.isatty()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
lolpython 2.2.0 does not work in cygwin and msys2. lolpython 2.0.0 worked correctly.
The following error message is shown.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Gradate-colored 'AAAAAAAAAAAAAAAAAAAA' text should be shown.
Desktop (please complete the following information):
The patch to fix the issue
The text was updated successfully, but these errors were encountered: