Raxol.Terminal.Buffer.Writer (Raxol v0.3.0)
View SourceHandles writing characters and strings to the Raxol.Terminal.ScreenBuffer. Responsible for character width, bidirectional text segmentation, and cell creation.
Summary
Functions
Writes a character to the buffer at the specified position. Handles wide characters by taking up two cells when necessary. Accepts an optional style to apply to the cell.
Writes a string to the buffer at the specified position. Handles wide characters and bidirectional text.
Functions
@spec write_char( Raxol.Terminal.ScreenBuffer.t(), non_neg_integer(), non_neg_integer(), String.t(), Raxol.Terminal.ANSI.TextFormatting.text_style() | nil ) :: Raxol.Terminal.ScreenBuffer.t()
Writes a character to the buffer at the specified position. Handles wide characters by taking up two cells when necessary. Accepts an optional style to apply to the cell.
@spec write_string( Raxol.Terminal.ScreenBuffer.t(), non_neg_integer(), non_neg_integer(), String.t() ) :: Raxol.Terminal.ScreenBuffer.t()
Writes a string to the buffer at the specified position. Handles wide characters and bidirectional text.