Raxol.Terminal.Buffer.Writer (Raxol v0.3.0)

View Source

Handles 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

write_char(buffer, x, y, char, style \\ nil)

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.

write_string(buffer, x, y, string)

Writes a string to the buffer at the specified position. Handles wide characters and bidirectional text.