Raxol.Terminal.Config.Application (Raxol v0.2.0)
View SourceTerminal configuration application.
This module handles applying configuration settings to the terminal, ensuring all changes are properly propagated throughout the system.
Summary
Functions
Applies a configuration to the terminal.
Applies a partial configuration update to the terminal.
Gets the current terminal configuration.
Resets terminal configuration to default values.
Functions
Applies a configuration to the terminal.
This function takes a configuration and applies it to the current terminal instance, updating the terminal state and behavior.
Parameters
config- The configuration to applyterminal_pid- The PID of the terminal process (optional)
Returns
{:ok, applied_config} or {:error, reason}
Applies a partial configuration update to the terminal.
This allows updating only specific parts of the configuration without changing other settings.
Parameters
partial_config- The partial configuration to applyterminal_pid- The PID of the terminal process (optional)
Returns
{:ok, updated_config} or {:error, reason}
Gets the current terminal configuration.
Parameters
terminal_pid- The PID of the terminal process (optional)
Returns
The current terminal configuration.
Resets terminal configuration to default values.
Parameters
terminal_pid- The PID of the terminal process (optional)optimize- Whether to optimize for detected capabilities (default: true)
Returns
{:ok, default_config} or {:error, reason}