Raxol.Terminal.SessionManager.WindowFactory (Raxol Terminal v2.6.0)

Copy Markdown View Source

Window and pane creation helpers for SessionManager.

Summary

Functions

Creates the initial set of windows for a new session. Returns {updated_session, windows}.

Creates a pane at a given index within a window.

Splits an existing pane in a direction, returning the new pane.

Functions

create_initial_windows(session, config)

Creates the initial set of windows for a new session. Returns {updated_session, windows}.

create_pane(window_id, config, index)

Creates a pane at a given index within a window.

create_window_with_panes(window_id, session_id, window_name, config)

Creates a window with the specified panes.

generate_pane_id()

generate_window_id()

split_pane(pane, direction, config)

Splits an existing pane in a direction, returning the new pane.