Raxol.Terminal.Integration (Raxol v0.3.0)

View Source

Coordinates terminal integration components and provides a unified interface for terminal operations.

This module manages the interaction between various terminal components:

  • State management
  • Input processing
  • Buffer management
  • Rendering
  • Configuration

Summary

Functions

Clears the terminal.

Gets the current terminal configuration.

Gets the current cursor position.

Gets the current terminal dimensions.

Gets the current scroll position.

Gets the current terminal title.

Gets the total number of lines in the buffer.

Gets the current visible content.

Gets the number of visible lines.

Processes user input and updates the terminal state.

Initializes a new terminal integration state.

Moves the cursor to a specific position.

Resets the terminal configuration to default values.

Resizes the terminal.

Sets a specific configuration value.

Shows or hides the cursor.

Sets the terminal title.

Updates the terminal configuration.

Writes text to the terminal.

Functions

clear(state)

Clears the terminal.

get_config(state)

Gets the current terminal configuration.

get_cursor_position(state)

Gets the current cursor position.

get_dimensions(state)

Gets the current terminal dimensions.

get_scroll_position(state)

Gets the current scroll position.

get_title(state)

Gets the current terminal title.

get_total_lines(state)

Gets the total number of lines in the buffer.

get_visible_content(state)

Gets the current visible content.

get_visible_lines(state)

Gets the number of visible lines.

handle_input(state, input)

Processes user input and updates the terminal state.

init(opts \\ %{})

Initializes a new terminal integration state.

move_cursor(state, x, y)

Moves the cursor to a specific position.

reset_config(state)

Resets the terminal configuration to default values.

resize(state, width, height)

Resizes the terminal.

scroll(state, direction, amount \\ 1)

Scrolls the terminal.

set_config_value(state, key, value)

Sets a specific configuration value.

set_cursor_visibility(state, visible)

Shows or hides the cursor.

set_title(state, title)

Sets the terminal title.

update_config(state, config)

Updates the terminal configuration.

write(state, text)

Writes text to the terminal.