Raxol.Demo.DemoHandler (Raxol v2.6.0)

View Source

Generates demo content for the terminal showcase. Produces ANSI-formatted output demonstrating Raxol's capabilities.

Summary

Functions

Displays animation capabilities (static representation).

Displays ANSI color palette (16, 256, and truecolor).

Displays UI component gallery.

Displays VT100/ANSI escape sequence demo.

Returns help text with available commands.

Sets terminal theme (returns theme-specific escape codes).

Returns welcome message for new sessions.

Functions

demo_animation()

@spec demo_animation() :: {:ok, String.t()}

Displays animation capabilities (static representation).

demo_colors()

@spec demo_colors() :: {:ok, String.t()}

Displays ANSI color palette (16, 256, and truecolor).

demo_components()

@spec demo_components() :: {:ok, String.t()}

Displays UI component gallery.

demo_emulation()

@spec demo_emulation() :: {:ok, String.t()}

Displays VT100/ANSI escape sequence demo.

help()

@spec help() :: {:ok, String.t()}

Returns help text with available commands.

set_theme(name)

@spec set_theme(String.t()) :: {:ok, String.t()} | {:error, String.t()}

Sets terminal theme (returns theme-specific escape codes).

welcome_message()

@spec welcome_message() :: String.t()

Returns welcome message for new sessions.