Hello,
Python script is sending to stdout ascii color sequences.
If I launch this script under ConEmu, then I see colored output.
If launch under Far3, then it prints all characters of ascii sequesce: ←[92m
How to tune Far3 so that it would print colored output of python script?
Color ascii sequences in stdout are not understood by Far3 Topic is solved
- DrKnS
- Posts: 6114
- Joined: Thu 04 Aug, 2005 06:44
- Location: Kyiv
- Has thanked: 12 times
- Been thanked: 426 times
Color ascii sequences in stdout are not understood by Far3
Escape sequences are not enabled by default neither in cmd nor in python interpreter.
Conemu intercepts the output using some black magic and processes everything itself.
You can enable escape sequences from within your script with something like:
Conemu intercepts the output using some black magic and processes everything itself.
You can enable escape sequences from within your script with something like:
Color ascii sequences in stdout are not understood by Far3
DrKnS, code example in your answer is empty.DrKnS wrote: ↑Mon 25 Jan, 2021 19:41 Escape sequences are not enabled by default neither in cmd nor in python interpreter.
Conemu intercepts the output using some black magic and processes everything itself.
You can enable escape sequences from within your script with something like:
Code: [Select all] [Expand/Collapse]
python uses colorama and calls init(), so initialization is done already.
Color ascii sequences in stdout are not understood by Far3
DrKnS, Thank you!
I found out that init was not called actually
I found out that init was not called actually