Python colorama not working with input? -
finally got colorama working today, , works excellent when printing strings, got common error seems when attempted use colorama input.
here's code:
launch = input(fore.green + "launch attack?(y/n): ") screenshot of output:
on system, input() works colors if add
import sphinx.quickstart to module.
so here full code.
from colorama import fore import colorama import sphinx.quickstart colorama.init() launch = input(fore.green + "launch attack? (y/n): ") (this leads 2 questions:
- why not work in first place?
- what actual reason? – might dive sphinx source code.)
n.b. if run python via winpty git bash, set convert.
colorama.init(convert=true) otherwise, not color current versions.

Comments
Post a Comment