isatty
Return true if the process has a controlling terminal.
def isatty(
fh: file-like object
) - > boolean
Return true if the process has a controlling terminal.
Parameters
| Name | Type | Description |
|---|---|---|
| fh | file-like object | The file handle or stream object to check for terminal connectivity |
Returns
| Type | Description |
|---|---|
boolean | True if the file handle is connected to a terminal device, False otherwise |