diff options
Diffstat (limited to 'cmd2/utils.py')
-rw-r--r-- | cmd2/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd2/utils.py b/cmd2/utils.py index d14ef90f..2db6a267 100644 --- a/cmd2/utils.py +++ b/cmd2/utils.py @@ -345,6 +345,10 @@ class StdSim(object): """Clear the internal contents""" self.buffer.byte_buf = b'' + def isatty(self) -> bool: + """StdSim will never be considered an interactive stream""" + return False + def __getattr__(self, item: str): if item in self.__dict__: return self.__dict__[item] |