Raxol.Terminal.Input.InputBuffer (Raxol v0.4.0)
View SourceHandles input buffering for the terminal emulator. Provides functionality for storing, retrieving, and manipulating input data.
Summary
Functions
Appends data to the buffer, handling escape sequences appropriately.
Removes the last character from the buffer. Uses graphemes to handle multi-byte characters correctly.
Clears the buffer.
Removes the first character from the buffer.
Checks if the buffer is empty.
Gets the buffer contents.
Handles escape sequence processing.
Inserts a character at the specified position. Raises ArgumentError if position is out of bounds.
Gets the maximum size of the buffer.
Creates a new input buffer with default values.
Gets the overflow mode of the buffer.
Prepends data to the buffer.
Replaces a character at the specified position. Raises ArgumentError if position is out of bounds.
Sets the buffer contents.
Sets the maximum size of the buffer. If the current content exceeds the new max size, it will be handled according to the current overflow mode.
Sets the overflow mode of the buffer.
Gets the current size of the buffer.
Types
@type t() :: Raxol.Terminal.Input.Types.input_buffer()
Functions
Appends data to the buffer, handling escape sequences appropriately.
Removes the last character from the buffer. Uses graphemes to handle multi-byte characters correctly.
Clears the buffer.
Removes the first character from the buffer.
Checks if the buffer is empty.
Gets the buffer contents.
Handles escape sequence processing.
Inserts a character at the specified position. Raises ArgumentError if position is out of bounds.
Gets the maximum size of the buffer.
Creates a new input buffer with default values.
Gets the overflow mode of the buffer.
Prepends data to the buffer.
Replaces a character at the specified position. Raises ArgumentError if position is out of bounds.
Sets the buffer contents.
Sets the maximum size of the buffer. If the current content exceeds the new max size, it will be handled according to the current overflow mode.
Sets the overflow mode of the buffer.
Gets the current size of the buffer.