Raxol.Terminal.Clipboard (Raxol v0.2.0)
View SourceHandles clipboard operations for the terminal emulator.
This module provides functionality for:
- Copying text to the system clipboard
- Pasting text from the system clipboard
- Managing clipboard history
Summary
Functions
Clears the clipboard history.
Copies text to the system clipboard and adds it to the history.
Checks if clipboard operations are enabled.
Gets the clipboard history.
Creates a new clipboard manager with default values.
Retrieves text from the system clipboard.
Enables or disables clipboard operations.
Types
@type t() :: %Raxol.Terminal.Clipboard{ enabled: boolean(), history: [String.t()], history_limit: non_neg_integer() }
Functions
Clears the clipboard history.
Copies text to the system clipboard and adds it to the history.
Checks if clipboard operations are enabled.
Gets the clipboard history.
@spec new(non_neg_integer()) :: t()
Creates a new clipboard manager with default values.
Retrieves text from the system clipboard.
Enables or disables clipboard operations.