Raxol.Terminal.Commands.WindowHandler (Raxol v2.0.1)

View Source

Handles window-related commands and operations for the terminal.

Summary

Functions

cached_char_height_px()

Cached version of char height calculation.

cached_char_width_px()

Cached version of char width calculation.

calculate_height_chars(pixel_height)

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

calculate_width_chars(pixel_width)

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

default_char_height_px()

@spec default_char_height_px() :: non_neg_integer()

default_char_width_px()

@spec default_char_width_px() :: non_neg_integer()

get_cached_char_dimensions()

Gets cached font dimensions for performance.

handle_deiconify(emulator)

handle_icon_name(emulator, params)

handle_icon_title(emulator, params)

handle_iconify(emulator)

handle_lower(emulator)

handle_maximize(emulator)

handle_move(emulator, params)

handle_raise(emulator)

handle_refresh(emulator)

handle_report_desktop_size(emulator)

handle_report_position(emulator)

handle_report_size_pixels(emulator)

handle_report_state(emulator)

handle_report_text_area_size(emulator)

handle_resize(emulator, params)

handle_restore(emulator)

handle_t(emulator, params)

@spec handle_t(Raxol.Terminal.Emulator.t(), list()) ::
  {:ok, Raxol.Terminal.Emulator.t()}
  | {:error, atom(), Raxol.Terminal.Emulator.t()}

handle_window_title(emulator, params)

resize(emulator, params)

Resizes the window with the given parameters. Parameters can be a list of integers representing width and/or height.