Raxol.Terminal.ScreenBuffer.Theme (Raxol v0.5.0)

View Source

Manages themes for the screen buffer.

Summary

Functions

Returns a specification to start this module under a supervisor.

Gets the current theme.

Callback implementation for GenServer.init/1.

Sets the light theme.

Types

t()

@type t() :: %Raxol.Terminal.ScreenBuffer.Theme{
  background: String.t(),
  cursor: String.t(),
  foreground: String.t(),
  name: String.t(),
  selection: String.t()
}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

current()

Gets the current theme.

init()

init(theme)

Callback implementation for GenServer.init/1.

light()

Sets the light theme.

start_link(_)