Raxol.Terminal.Commands.WindowHandlers (Raxol v0.5.0)

View Source

Handles 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

calculate_height_chars(pixel_height)

@spec calculate_height_chars(non_neg_integer()) :: non_neg_integer()

Calculates the window height in characters based on the pixel height.

calculate_width_chars(pixel_width)

@spec calculate_width_chars(non_neg_integer()) :: non_neg_integer()

Calculates the window width in characters based on the pixel width.

default_char_height_px()

@spec default_char_height_px() :: non_neg_integer()

Returns the default character height in pixels.

default_char_width_px()

@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.