Raxol.Plugins.ImagePlugin (Raxol v2.9.2)

View Source

Plugin that enables displaying images in the terminal using the iTerm2 image protocol. Supports various image formats and provides options for image display.

The image placeholder cell renders the file at config[:image_path]. The default is the Raxol logo bundled in the repository at priv/images/logo.png; the Hex package does not ship it, so set :image_path when using the plugin from a dependency.

Summary

Functions

Returns the API version for compatibility checking.

Returns metadata for the plugin.

Types

t()

@type t() :: %Raxol.Plugins.ImagePlugin{
  api_version: String.t(),
  config: map(),
  dependencies: [map()],
  description: String.t(),
  enabled: boolean(),
  image_escape_sequence: String.t() | nil,
  name: String.t(),
  sequence_just_generated: boolean(),
  state: map(),
  version: String.t()
}

Functions

api_version()

Returns the API version for compatibility checking.

get_metadata()

Returns metadata for the plugin.