Raxol.Terminal.Emulator.BufferOperations (Raxol v2.0.1)
View SourceBuffer operation functions extracted from the main emulator module. Handles active buffer management and buffer switching operations.
Summary
Functions
Clears the entire screen and scrollback buffer.
Clears the scrollback buffer.
Gets the active buffer from the emulator based on active_buffer_type.
Switches to the alternate screen buffer.
Switches to the alternate screen buffer.
Switches to the main screen buffer.
Switches to the normal (main) screen buffer.
Updates the active buffer with new buffer data.
Writes data to the output buffer.
Types
@type emulator() :: Raxol.Terminal.Emulator.t()
Functions
Clears the entire screen and scrollback buffer.
Clears the scrollback buffer.
@spec get_screen_buffer(emulator()) :: Raxol.Terminal.ScreenBuffer.t()
Gets the active buffer from the emulator based on active_buffer_type.
Switches to the alternate screen buffer.
Switches to the alternate screen buffer.
Switches to the main screen buffer.
Switches to the normal (main) screen buffer.
@spec update_active_buffer(emulator(), Raxol.Terminal.ScreenBuffer.t()) :: emulator()
Updates the active buffer with new buffer data.
Writes data to the output buffer.