Raxol.Terminal.Config.Profiles (Raxol v0.3.0)
View SourceTerminal configuration profile management.
Allows users to define, save, load, and switch between different terminal configuration profiles.
Summary
Functions
Creates a new profile with default settings.
Deletes a terminal configuration profile.
Duplicates an existing profile with a new name.
Lists all available terminal configuration profiles.
Loads a specific terminal configuration profile.
Saves the current configuration as a profile.
Updates an existing profile with new settings.
Types
@type animation_type() :: :gif | :video | :shader | :particle
@type background_type() :: :solid | :transparent | :image | :animated
@type color_mode() :: :basic | :true_color | :palette
@type config() :: map()
@type terminal_type() ::
:iterm2
| :windows_terminal
| :xterm
| :screen
| :kitty
| :alacritty
| :konsole
| :gnome_terminal
| :vscode
| :unknown
Functions
Creates a new profile with default settings.
Parameters
name
- The name of the new profile
Returns
{:ok, config}
or {:error, reason}
Deletes a terminal configuration profile.
Parameters
name
- The name of the profile to delete
Returns
:ok
or {:error, reason}
Duplicates an existing profile with a new name.
Parameters
source_name
- The name of the profile to duplicatetarget_name
- The name for the new profile
Returns
{:ok, config}
or {:error, reason}
Lists all available terminal configuration profiles.
Returns
A list of profile names.
Loads a specific terminal configuration profile.
Parameters
name
- The name of the profile to load
Returns
{:ok, config}
or {:error, reason}
Saves the current configuration as a profile.
Parameters
name
- The name of the profile to saveconfig
- The configuration to save
Returns
:ok
or {:error, reason}
Updates an existing profile with new settings.
Parameters
name
- The name of the profile to updateconfig
- The new configuration
Returns
:ok
or {:error, reason}