Raxol.Terminal.Clipboard.Manager (Raxol v0.5.0)

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.

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.

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(manager)

Clears the clipboard content.

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.

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.