Raxol.Terminal.Commands.WindowHandlers (Raxol v0.5.0)
View SourceHandles window-related commands and operations for the terminal.
Summary
Functions
Calculates the window height in characters based on the pixel height.
Calculates the window width in characters based on the pixel width.
Returns the default character height in pixels.
Returns the default character width in pixels. This is used for calculating window dimensions and text layout.
Functions
@spec calculate_height_chars(non_neg_integer()) :: non_neg_integer()
Calculates the window height in characters based on the pixel height.
@spec calculate_width_chars(non_neg_integer()) :: non_neg_integer()
Calculates the window width in characters based on the pixel width.
@spec default_char_height_px() :: non_neg_integer()
Returns the default character height in pixels.
@spec default_char_width_px() :: non_neg_integer()
Returns the default character width in pixels. This is used for calculating window dimensions and text layout.