Is there an equivalent of Term :: ANSIScreen for Python?

Perl has a great module Term::ANSIScreenfor doing all kinds of fancy cursor moves and terminal color management. I would like to override the program that is currently in Perl in Python, but the ANSI terminal colors are key to its function. Does anyone know of an equivalent?

+3
source share
4 answers

If you only need colors, you might want to borrow an implementation from pigments. IMO it is much cleaner than ActiveState

http://dev.pocoo.org/hg/pygments-main/file/b2deea5b5030/pygments/console.py

+8
source

ActiveState, . .

[: , , . ]

+3

termcolor termstyle. , stdout .

. .

+3

All Articles