-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Open
Description
Feature description
The Problem
First off, it's awesome pinch-zooming works so well in termux. Adjusting the font size also allows to quickly adjust the terminal size to specific needs.
Unfortunately, as of v0.118.3, you can't easily recognize the actual size you're adjusting the terminal to.
Suggested Solution
During pinch-zooming and then sticking for two seconds or so, display a small geometry indicator on top of the current terminal.
Additional information
- Some
xterms display the actual terminal size (usually rows x cols because it's a terminal; there may be a few that show cols x rows instead) when the window size is changed. - The best workaround in
termuxv.0.118.3 that I know is frequently runningstty sizewhile resizing, or evenwatch stty size. However, doing so requires you- to empty the command line (unless you haven't hit the sessions limit yet and can start a new session for that purpose),
- then to type in that
sttycommand every time (or setting up a readline binding to do so).
- Otherwise, starting the actual program that requires a certain line or column count would frequently just tell "nope, that's too few", or you'll be using smaller font than necessary because the terminal has ended up larger than required. Note that not every CLI/TUI program handles SIGWINCH properly, so you'd have to quit the program, pinch-zoom, then test again. All in all, that procedure would be even more tedious than the workaround above.
EDIT 20251102:
Cleaned up duplications due to FR template.
Metadata
Metadata
Assignees
Labels
No labels