Using 1337;SetProfile= to change the font causes the terminal to misbehave in 3.5.5beta1 when "Adjust window when changing font size" pref is disabled
Bug report
I was on previous beta version (unsure which one, exactly). I updated today and noticed that this began misbehaving.
-
iTerm2 version: 3.5.5beta1
-
OS version: Sonoma 14.6.1 (23G93)
-
Attach
~/Library/Preferences/com.googlecode.iterm2.plisthere (drag-drop from finder into this window) com.googlecode.iterm2.plist -
Attach a debug log, if possible.
-
Attach a screen capture video if it would make the reproduction steps clearer. debuglog.txt
PLEASE ATTACH YOUR PLIST FILE FOR BUG REPORTS! Seriously! I'll probably ask you for it if you don’t.
Detailed steps to reproduce the problem
- Ensure that the "Adjust window when changing font size" preference is disabled within Settings > General > Window.
- Send
\27;]1337;SetProfile=to set the profile when launching a program (in my case, Neovim). This new terminal profile modifies the font and background color.
Here is the Lua code responsible for sending the directive to iTerm: https://github.com/slice/nixfiles/blob/28f1ad5115e789b8283f2e39303cf4eda41a8847/nvim/lua/skip/assimilate.lua#L7-L9
What happened
Inputting any text does not work correctly. I think iTerm2 isn't noticing that the terminal dimensions need to change when the profile changes, while still keeping the window the same size. If I enable this preference, then it seems to work just fine.
What should have happened
In accordance with the preference being disabled, the terminal should adjust the size of the character grid without touching the size of the actual Cocoa window itself.