Skip to content

Option to prevent window resize when changing font size #174

Description

@sporteka2

When using fontsize=larger or fontsize=smaller (e.g. via keyboard shortcut or menu), mlterm resizes the window to fit the same number of columns/rows with the new font size.

This is unexpected for users who want a "zoom" behavior like web browsers — where the content gets bigger but the window stays the same size.

Steps to reproduce:

  1. Open mlterm
  2. Set a key binding: Control+Shift+plus="proto:fontsize=larger"
  3. Press the key — font gets bigger but the window also resizes

What happens:
font_size_changed() in ui_screen.c:4501 always calls resize_window(screen), which resizes the X window to fit the current columns/rows with the new font.

Expected behavior:
An option (e.g. resize_on_font_change=false or zoom_mode=true) that keeps the window size fixed when changing font size, allowing the content to be clipped or overflow instead of resizing the window.

This would make mlterm behave more like a web browser zoom, which many users expect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions