Raxol.Terminal.Clipboard.Manager (Raxol v2.0.1)

View Source

Manages clipboard operations for the terminal, including copying and pasting text.

Summary

Functions

Appends text to the current clipboard content.

Clears the clipboard content (global function).

Clears the clipboard content.

Copies content to the clipboard with the specified format.

Checks if the clipboard is empty.

Gets the current clipboard content.

Gets the current clipboard mode.

Gets the length of the clipboard content.

Creates a new clipboard manager instance.

Pastes content from the clipboard with the specified format.

Prepends text to the current clipboard content.

Resets the clipboard manager to its initial state.

Sets the clipboard content.

Sets the clipboard mode.

Types

t()

@type t() :: %Raxol.Terminal.Clipboard.Manager{
  content: String.t(),
  mode: :normal | :bracketed
}

Functions

append(manager, text)

Appends text to the current clipboard content.

clear()

Clears the clipboard content (global function).

clear(manager)

Clears the clipboard content.

copy(content, format \\ :text)

Copies content to the clipboard with the specified format.

empty?(manager)

Checks if the clipboard is empty.

get_content(manager)

Gets the current clipboard content.

get_mode(manager)

Gets the current clipboard mode.

length(manager)

Gets the length of the clipboard content.

new()

Creates a new clipboard manager instance.

paste(format \\ :text)

Pastes content from the clipboard with the specified format.

prepend(manager, text)

Prepends text to the current clipboard content.

reset(manager)

Resets the clipboard manager to its initial state.

set_content(manager, content)

Sets the clipboard content.

set_mode(manager, mode)

Sets the clipboard mode.