mirror of
https://github.com/mrh0wl/Cloudmare.git
synced 2026-04-26 10:25:48 +03:00
[PR #18] [MERGED] Update settings.py to handle colored text for Windows #51
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Cloudmare#51
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mrh0wl/Cloudmare/pull/18
Author: @factuminc
Created: 5/4/2020
Status: ✅ Merged
Merged: 5/7/2020
Merged by: @mrh0wl
Base:
master← Head:master📝 Commits (1)
c1b1b95Update settings.py📊 Changes
1 file changed (+10 additions, -0 deletions)
View changed files
📝
lib/parse/settings.py(+10 -0)📄 Description
The ANSI escape sequences for colored text output does not work with the default Windows command prompt CLI unless VT100 emulation is enabled. I added this support for VT100 with Windows CLI directly into the program. Other solutions exist such as python modules or bundling components which modify the default ANSI.sys CLI functionality on Windows. Ultimately, I used this quick method because I felt that this is the fasted and most straightforward solution for adding the colored text output functionality on Windows.
I thought I would share this in case you want to merge the functionality. You may prefer to insert this functionality into the Cloudmare program in a different way. I have a software engineering background and use python a lot; however, I am more accustomed to only writing one file scripts when it comes to writing python. So, I also wanted to add a disclaimer that this may not be the cleanest way to add the code enabling this functionality into Cloudmare.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.