Raxol.Terminal.Commands.WindowHandler (Raxol v2.0.1)
View SourceHandles window-related commands and operations for the terminal.
Summary
Functions
Cached version of char height calculation.
Cached version of char width calculation.
Gets cached font dimensions for performance.
Resizes the window with the given parameters. Parameters can be a list of integers representing width and/or height.
Functions
Cached version of char height calculation.
Cached version of char width calculation.
@spec calculate_height_chars(non_neg_integer()) :: non_neg_integer()
@spec calculate_width_chars(non_neg_integer()) :: non_neg_integer()
@spec default_char_height_px() :: non_neg_integer()
@spec default_char_width_px() :: non_neg_integer()
Gets cached font dimensions for performance.
@spec handle_t(Raxol.Terminal.Emulator.t(), list()) :: {:ok, Raxol.Terminal.Emulator.t()} | {:error, atom(), Raxol.Terminal.Emulator.t()}
@spec resize(Raxol.Terminal.Emulator.t(), list()) :: Raxol.Terminal.Emulator.t()
Resizes the window with the given parameters. Parameters can be a list of integers representing width and/or height.