Raxol.Terminal.Buffer.Initializer (Raxol v0.5.0)
View SourceHandles initialization and validation of screen buffers. This module provides functions for creating new screen buffers and validating their dimensions and properties.
Summary
Functions
Creates a new screen buffer with the specified dimensions. Validates and normalizes the input dimensions to ensure they are valid.
Validates a dimension value, returning a default if invalid.
Functions
@spec new(non_neg_integer(), non_neg_integer(), non_neg_integer()) :: Raxol.Terminal.ScreenBuffer.t()
Creates a new screen buffer with the specified dimensions. Validates and normalizes the input dimensions to ensure they are valid.
@spec validate_dimension(integer(), non_neg_integer()) :: non_neg_integer()
Validates a dimension value, returning a default if invalid.