Skip to main content

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​

TypeDescription
boolTrue if the environment is an iTerm2 terminal session capable of displaying images, False otherwise.