Raxol.Terminal.Integration.Config (Raxol v0.5.0)

View Source

Manages configuration for the terminal integration.

Summary

Functions

Applies configuration changes to the terminal state.

Returns the default configuration.

Gets a specific configuration value.

Gets emulator configuration.

Resets the configuration to default values.

Sets a specific configuration value.

Updates the buffer manager configuration.

Updates the terminal configuration.

Updates the renderer configuration.

Updates the scroll buffer configuration.

Validates the configuration.

Types

t()

@type t() :: %Raxol.Terminal.Integration.Config{
  behavior: map(),
  memory_limit: integer(),
  rendering: map()
}

Functions

apply_config_changes(state, changes)

Applies configuration changes to the terminal state.

default_config()

Returns the default configuration.

get_config_value(state, path)

Gets a specific configuration value.

get_emulator_config(config)

Gets emulator configuration.

reset_config(state)

Resets the configuration to default values.

set_config_value(state, path, value)

Sets a specific configuration value.

update_buffer_manager(buffer_manager_state, config)

Updates the buffer manager configuration.

update_config(state, opts)

Updates the terminal configuration.

Merges the provided opts into the current configuration and validates the result before applying.

update_renderer_config(renderer_state, config)

Updates the renderer configuration.

update_scroll_buffer(scroll_buffer_state, config)

Updates the scroll buffer configuration.

validate_config(config)

Validates the configuration.