How to prevent screen from resizing my Terminal in Mac OS X?

8

4

I am using iTerm in Mac OS X. When I run screen, the terminal is resized and I get the message

Aborted because of window size change.

However, screen is still running.

How do I get it to stop resizing my terminal?

Chas. Owens

Posted 2010-02-26T16:53:12.410

Reputation: 1 842

Answers

11

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".

juanpablo

Posted 2010-02-26T16:53:12.410

Reputation: 5 216

Nice, this keeps me from having to figure out how the termcapinfo entry works. – Chas. Owens – 2010-03-09T16:13:05.690

@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! – Saucier – 2019-08-22T14:14:20.167

Your 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! – mkelley33 – 2012-01-31T20:11:00.327

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.

Chas. Owens

Posted 2010-02-26T16:53:12.410

Reputation: 1 842

1Did you discover what this magical termcap incantation does? :) – Ether – 2012-03-02T23:18:58.563