Raxol.Terminal.Buffer.CharEditor (Raxol v0.4.0)

View Source

Handles character editing operations in the terminal buffer.

Summary

Functions

Deletes a specified number of characters starting from the given row and column index. Characters to the right of the deleted characters are shifted left. Blank characters are added at the end of the line to fill the space using the provided default_style. Uses the buffer's default style for new cells.

Inserts a specified number of blank characters at the given row and column index using the provided default_style. Characters to the right of the insertion point are shifted right. Characters shifted off the end of the line are discarded. Uses the buffer's default style for new cells.

Functions

delete_characters(buffer, row, col, count, default_style)

Deletes a specified number of characters starting from the given row and column index. Characters to the right of the deleted characters are shifted left. Blank characters are added at the end of the line to fill the space using the provided default_style. Uses the buffer's default style for new cells.

insert_characters(buffer, row, col, count, default_style)

Inserts a specified number of blank characters at the given row and column index using the provided default_style. Characters to the right of the insertion point are shifted right. Characters shifted off the end of the line are discarded. Uses the buffer's default style for new cells.