Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/aws/aws-cli
/ is_a_tty
Function
is_a_tty
awscli/utils.py:400–404 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
398
399
400
def
is_a_tty():
401
try
:
402
return
os.isatty(sys.stdout.fileno())
403
except
Exception:
404
return
False
405
406
407
def
is_stdin_a_tty():
Callers
5
__init__
Method · 0.90
_should_use_color
Method · 0.90
_is_color_allowed
Method · 0.90
_should_use_color
Method · 0.90
get_output_stream
Method · 0.85
Calls
1
fileno
Method · 0.80
Tested by
no test coverage detected