How to prevent screen from resizing my Terminal in Mac OS X?
5,004
Solution 1
This will fix the problem: Bookmarks –> Manage Profiles –> Terminal Profiles –> Default
check "Disable session-initiated window resizing"
See also "iTerm resize the window itself when using screen".
Solution 2
Based on an Ubuntu forum post on problems with screen, I found that adding
termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
fixes the problem, but I have yet to examine it to find out how.
Related videos on Youtube
Author by
Chas. Owens
Updated on September 18, 2022Comments
-
Chas. Owens almost 2 years
I am using iTerm in Mac OS X. When I run
screen
, the terminal is resized and I get the messageAborted because of window size change.
However,
screen
is still running.How do I get it to stop resizing my terminal?
-
Chas. Owens over 14 yearsNice, this keeps me from having to figure out how the termcapinfo entry works.
-
mkelley33 over 12 yearsYour solution helped me greatly. I'm using iTerm2 on Mac OS X Lion, and the path disable session-initiated window resizing was a little different for me: Profiles -> Edit Profiles ... -> Default -> Window -> Disable session-initiated window resizing. Thank you!
-
Saucier almost 5 years@juanpablo Thank you for this one. That bugger was driving me nuts since I've been switching to neovim a couple of days ago. Upon starting nvim (
NVIM v0.3.8
) my iTerm2 (Build 3.3.2
) window used to shrink in both width and height by one row and column which did not happen with e.g. Vim 8.1. Your solution fixed that issue for me!