MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / isatty

Method isatty

cmd2/utils.py:466–470  ·  view source on GitHub ↗

StdSim only considered an interactive stream if `echo` is True and `inner_stream` is a tty.

(self)

Source from the content-addressed store, hash-verified

464 self.buffer.byte_buf.clear()
465
466 def isatty(self) -> bool:
467 """StdSim only considered an interactive stream if `echo` is True and `inner_stream` is a tty."""
468 if self.echo:
469 return self.inner_stream.isatty()
470 return False
471
472 @property
473 def line_buffering(self) -> bool:

Callers 5

__init__Method · 0.80
_create_main_sessionMethod · 0.80
ppagedMethod · 0.80

Calls

no outgoing calls

Tested by 1