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

View Source

Manages screen buffer preferences and settings.

Summary

Functions

Returns a specification to start this module under a supervisor.

Gets the current preferences.

Callback implementation for GenServer.init/1.

Sets new preferences.

Types

t()

@type t() :: %Raxol.Terminal.ScreenBuffer.Preferences{
  auto_wrap: boolean(),
  cursor_blink: boolean(),
  cursor_style: atom(),
  font_size: non_neg_integer(),
  line_height: non_neg_integer(),
  scrollback_size: non_neg_integer(),
  tab_width: non_neg_integer(),
  word_wrap: boolean()
}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get()

Gets the current preferences.

init()

init(preferences)

Callback implementation for GenServer.init/1.

set(preferences)

Sets new preferences.

start_link(_)