Raxol.Terminal.Emulator.Output (Raxol v0.5.0)

View Source

Handles output processing for the terminal emulator. Provides functions for output buffering, processing, and formatting.

Summary

Functions

Clears the output buffer.

Gets the current output buffer content.

Processes the output buffer and updates the emulator state.

Processes output data and updates the emulator state.

Writes data to the output buffer.

Writes a control character to the output buffer. Returns {:ok, updated_emulator}.

Writes an escape sequence to the output buffer. Returns {:ok, updated_emulator}.

Writes a line to the output buffer. Returns {:ok, updated_emulator}.

Functions

clear_output_buffer(emulator)

Clears the output buffer.

get_output_buffer(emulator)

Gets the current output buffer content.

process_buffer(emulator)

Processes the output buffer and updates the emulator state.

process_output(emulator, data)

Processes output data and updates the emulator state.

write(emulator, data)

Writes data to the output buffer.

write_control(emulator, char)

Writes a control character to the output buffer. Returns {:ok, updated_emulator}.

write_escape(emulator, sequence)

Writes an escape sequence to the output buffer. Returns {:ok, updated_emulator}.

write_line(emulator, data)

Writes a line to the output buffer. Returns {:ok, updated_emulator}.