supports_images
Determines if the current terminal environment supports image display by checking if standard input is a TTY and verifying the presence of an iTerm profile environment variable.
def supports_images() - > bool
Determines if the current terminal environment supports inline image rendering by checking for an interactive TTY and the iTerm2 profile environment variable.
Returns
| Type | Description |
|---|---|
bool | True if the environment is an iTerm2 terminal session capable of displaying images, False otherwise. |