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:
- Open mlterm
- Set a key binding:
Control+Shift+plus="proto:fontsize=larger"
- 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.
When using
fontsize=largerorfontsize=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:
Control+Shift+plus="proto:fontsize=larger"What happens:
font_size_changed()inui_screen.c:4501always callsresize_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=falseorzoom_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.