Alaja.ImageTerminal (Alaja v1.0.0)

Copy Markdown View Source

Terminal detection for image rendering.

Detects terminal emulator and determines the best image rendering protocol to use.

Summary

Functions

Detects the terminal emulator.

Returns the image protocol for the current terminal.

Returns true if the terminal supports images.

Functions

detect()

@spec detect() :: atom()

Detects the terminal emulator.

image_protocol()

@spec image_protocol() :: :kitty | :iterm2 | :sixel | :ascii

Returns the image protocol for the current terminal.

supports_images?()

@spec supports_images?() :: boolean()

Returns true if the terminal supports images.