dmutters / 5emonstergenerator

Scripts for generating Dungeons and Dragons 5th Edition monster stats.
GNU General Public License v3.0
0 stars 0 forks source link

TODO: Implement non-colorized text file creation #31

Closed dmutters closed 5 months ago

dmutters commented 5 months ago

Currently, it's possible to output to a text file with something like this (on Linux/Mac): ./monstergenerator | tee file.txt

However, the resulting text file will include escape sequences for color codes--which is fine if it's viewed in terminal, but problematic when viewed in a text editor.

Fixing this will involve finding a way to disable Colorama colors based upon user input. Maybe implementing functions and/or methods that include a conditional element to detect a variable that's populated based upon user input? That could then be used instead of directly referencing Colorama methods.

dmutters commented 5 months ago

Done.