[PR #18] [MERGED] Update settings.py to handle colored text for Windows #51

Closed
opened 2026-03-03 15:57:03 +03:00 by kerem · 0 comments
Owner

📋 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: masterHead: master


📝 Commits (1)

📊 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.

## 📋 Pull Request Information **Original PR:** https://github.com/mrh0wl/Cloudmare/pull/18 **Author:** [@factuminc](https://github.com/factuminc) **Created:** 5/4/2020 **Status:** ✅ Merged **Merged:** 5/7/2020 **Merged by:** [@mrh0wl](https://github.com/mrh0wl) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`c1b1b95`](https://github.com/mrh0wl/Cloudmare/commit/c1b1b9515d332300ca59a293c17ef37fa09f1265) Update settings.py ### 📊 Changes **1 file changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `lib/parse/settings.py` (+10 -0) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 15:57:03 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloudmare#51
No description provided.