Improve instructions in README about getting ANSI colors working in windows terminals

This commit is contained in:
Junior 2024-06-27 10:44:11 -04:00
parent b01d3f7601
commit 4cb79c61f0

View File

@ -13,11 +13,15 @@ Inside a terminal:
pip install requests colorama termcolor
```
In order to get ANSI colors in windows CMD or Powershell the virtual terminal level must be set to 1.
This is only needed **IF** :
By default the CMD and Powershell terminals will not properly show ANSI colors in Windows. This can be fixed by using the colorama module with the following code:
```python
import sys
if sys.platform == "win32":
from colorama import just_fix_windows_console
just_fix_windows_console()
```
* You have administrator access on your PC
* And you can't use colorama for some reason
In order to get ANSI colors in windows CMD or Powershell without using the colorama module (can be useful in other things so if you do have admin access this is handy to do regardless) the virtual terminal level must be set to 1.
Inside an **Administrator** terminal in the `PreReq/` folder:
```bash