iTerm2 fullscreen causes an empty line at the bottom

5

1

When I fullscreen an iTerm2 window, an empty line appears at the bottom of the terminal window. How do I get rid of it?

Compare these two screenshots:

Windowed (appears as expected) Windowed (appears as expected)

Fullscreen (empty line appears at bottom) Fullscreen (empty line appears at bottom)

I had enabled the Use Lion-style Fullscreen windows setting,

iTerm > Preferences > General > Window > Use Lion-style Fullscreen windows

so I tried disabling it. That appeared to resolve the problem--fullscreening a window after disabling this feature looked good, no extra line. But then after I switched applications using Command-Tab a few times, the extra line suddenly appeared. What's happening?!

Is this a bug? How do I prevent this from happening?


Solution: The accepted answer helped me to get rid of the extra line. I changed the font size in my iTerm2 profile settings to 16pt Monaco from 18pt Monaco. Here is a screenshot:

No extra line after switching font size

Stew

Posted 2016-02-12T18:03:18.240

Reputation: 990

1

See http://askubuntu.com/q/687885/398785

– egmont – 2016-02-15T17:48:18.733

1@egmont - great! That solved my problem. Would you like to answer below with a quote from your link? I will upvote and accept your answer.

That would help people find this solution who (like me) may at first assume it's an issue with iTerm2, rather than with terminal emulators generally. – Stew – 2016-02-15T18:13:04.030

Answers

4

See this answer, excerpted below. It was written about gnome-terminal, but it's the same for iTerm:

Terminal emulators work with a grid of cells: a whole number of cells both horizontally and vertically. That's why when you resize the window by dragging its corner, it resizes in unusually large steps rather than pixels. [...]

In fullscreen mode, gnome-terminal is forced to a size that's not a multiple of the size of its character cells. Utilities and applications running inside terminals have no notion of such partial cells and couldn't draw in the remaining area, it just doesn't exist for them.

You might want to experiment with different font sizes, you might find one where an integer number of cells just fit (or at least the gap is not that large)

egmont

Posted 2016-02-12T18:03:18.240

Reputation: 1 791

4

Change the vertical character spacing in iTerm2 Fonts preferences and it should do the trick

jmgarnier

Posted 2016-02-12T18:03:18.240

Reputation: 140

1Actually, this *is* an answer to the question.  The problem is that it's already been given. – Scott – 2017-01-17T04:36:38.600

@Scott This answer has not already been given, unless the other was deleted. Changing the font size is not the same as changing the vertical spacing. The former will affect character width, the latter will not. – 8bittree – 2017-01-20T17:57:29.697

@8bittree: Oh?  I don't use Mac, so I didn't know that they were different.  In that case, this answer should probably be more detailed, so that even a dummy (like me) can understand it and how to use it. – Scott – 2017-01-20T19:48:50.970

@Scott It's not a Mac specific thing, more of an application specific thing. Visually, it's basically equivalent to adjusting the line spacing in apps like Outlook or Word. – 8bittree – 2017-01-20T19:59:41.807

@8bittree: It's not a Mac specific thing? Do people use iTerm on non-Mac systems? – Scott – 2017-01-20T20:07:50.820

1@Scott To my knowledge, iTerm is Mac specific. I was (and thought you were) referring to the ability to adjust vertical character spacing as not being a Mac specific concept. – 8bittree – 2017-01-20T20:30:50.210

this also helps with the standard mac terminal app. just change (and restore) the vertical spacing and the bottom blank line disappears. – sds – 2018-04-03T13:09:54.380

1

Change the font size will do the trick. My monitor is 1920 x 1080, I set the font size to 15 and fixed the issue, btw I use the Meslo Nerd Font Mono.

You should try the different font sizes to find out the correct one.

Finn

Posted 2016-02-12T18:03:18.240

Reputation: 111