Clean up colorama and color ANSI terminal instructions/tutorials.
This commit is contained in:
parent
ede1079052
commit
b01d3f7601
|
@ -1,6 +1,8 @@
|
|||
# A simple example of making a function
|
||||
|
||||
from colorama import just_fix_windows_console
|
||||
from Utils.TextColors import TextColors
|
||||
just_fix_windows_console()
|
||||
|
||||
# Functions are blocks of code that can be
|
||||
# called/referenced from elsewhere in the code.
|
||||
|
|
10
README.md
10
README.md
|
@ -6,13 +6,19 @@ This repository is primarily a collection of resources and learning aides for St
|
|||
|
||||
* The requests module provides web/REST API access
|
||||
* The colorama module provides access to color and cursor positioning in a terminal
|
||||
* The termcolor module provides access to console text colors as well
|
||||
* In order to get ANSI colors in windows CMD or Powershell the virtual terminal level must be set to 1
|
||||
* The termcolor module provides access to console text colors as well in a different way (include for compatibility)
|
||||
|
||||
Inside a terminal:
|
||||
```bash
|
||||
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** :
|
||||
|
||||
* You have administrator access on your PC
|
||||
* And you can't use colorama for some reason
|
||||
|
||||
Inside an **Administrator** terminal in the `PreReq/` folder:
|
||||
```bash
|
||||
reg import VirtualTerminalLevel.reg
|
||||
|
|
Loading…
Reference in New Issue
Block a user