Raxol.Terminal.Emulator.Core (Raxol v0.3.0)
View SourceCore functionality for the terminal emulator. Handles basic initialization, state management, and fundamental operations.
Summary
Functions
Returns the currently active screen buffer.
Returns the current command buffer.
Returns the current command history.
Returns the current cursor position.
Returns the current icon name.
Returns the current output buffer.
Returns the current window state.
Returns the current window title.
Creates a new terminal emulator instance with the specified dimensions and options.
Types
@type cursor_style_type() ::
:blinking_block
| :steady_block
| :blinking_underline
| :steady_underline
| :blinking_bar
| :steady_bar
@type t() :: %Raxol.Terminal.Emulator.Core{ active_buffer_type: :main | :alternate, alternate_screen_buffer: Raxol.Terminal.ScreenBuffer.t(), charset_state: Raxol.Terminal.ANSI.CharacterSets.charset_state(), command: CommandManager.t(), command_history: list(), current_command_buffer: String.t(), current_hyperlink_url: String.t() | nil, cursor: Raxol.Terminal.Command.Manager.t(), cursor_style: cursor_style_type(), height: non_neg_integer(), icon_name: String.t() | nil, last_key_event: map() | nil, main_screen_buffer: Raxol.Terminal.ScreenBuffer.t(), max_command_history: non_neg_integer(), memory_limit: non_neg_integer(), mode_manager: Raxol.Terminal.ModeManager.t(), options: map(), output_buffer: String.t(), parser_state: Raxol.Terminal.Parser.State.t(), plugin_manager: Raxol.Terminal.Plugins.PluginManager.t(), scroll_region: {non_neg_integer(), non_neg_integer()} | nil, state: StateManager.t(), style: Raxol.Terminal.ANSI.TextFormatting.text_style(), tab_stops: MapSet.t(), width: non_neg_integer(), window_state: window_state(), window_title: String.t() | nil }
@type window_state() :: %{ title: String.t(), icon_name: String.t(), size: {non_neg_integer(), non_neg_integer()}, position: {non_neg_integer(), non_neg_integer()}, stacking_order: :normal | :maximized | :iconified, iconified: boolean(), maximized: boolean(), previous_size: {non_neg_integer(), non_neg_integer()} | nil }
Functions
@spec get_active_buffer(t()) :: Raxol.Terminal.ScreenBuffer.t()
Returns the currently active screen buffer.
Returns the current command buffer.
Returns the current command history.
@spec get_cursor_position(t()) :: {non_neg_integer(), non_neg_integer()}
Returns the current cursor position.
Returns the current icon name.
Returns the current output buffer.
@spec get_window_state(t()) :: window_state()
Returns the current window state.
Returns the current window title.
@spec new(non_neg_integer(), non_neg_integer(), keyword()) :: t()
Creates a new terminal emulator instance with the specified dimensions and options.