diff options
author | kotfu <kotfu@kotfu.net> | 2018-08-11 19:54:10 -0600 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-08-11 19:54:10 -0600 |
commit | 1daf5d2cb63145408520f39c799425a82b2ec948 (patch) | |
tree | 5b1458aaaf54b9b740974ab14cacdb5ade4e2724 /cmd2/transcript.py | |
parent | 0053f18fade2f2148daf19975581e8372ca7a69b (diff) | |
download | cmd2-git-1daf5d2cb63145408520f39c799425a82b2ec948.tar.gz |
First pass at improved colorizing
- colors setting now allows Always, Terminal, Never values
- poutput() and perror() honor these new settings
Diffstat (limited to 'cmd2/transcript.py')
-rw-r--r-- | cmd2/transcript.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd2/transcript.py b/cmd2/transcript.py index 5ba8d20d..a6b4cb1a 100644 --- a/cmd2/transcript.py +++ b/cmd2/transcript.py @@ -224,3 +224,6 @@ class OutputTrap(object): result = self.contents self.contents = '' return result + + def isatty(self) -> bool: + return True |