Tammer Ibrahim
Tammer Ibrahim

Reputation: 193

Vertical tmux borders dashed only when using iTerm

At my new job I'll need to use a mac, and I'm trying to use tmux with iTerm version 2.

While horizontal borders appear to be displayed with the proper ACS box-drawing characters[1], the vertical borders are dashed. This is not a problem in Terminal.app, the borders are displayed correctly. The problem appears to occur regardless of the font I select.

In all the screen shots I can find of iTerm and tmux this seems to be the case as well. Is this simply a limitation of iTerm, or is there a problem with my terminfo or locale?

[1] Tmux borders displayed as x q instead of lines?

Upvotes: 9

Views: 5703

Answers (4)

Clambake
Clambake

Reputation: 678

Update: This worked for me! https://github.com/Determinant/inconsolata_for_powerline_mod

I don't think that's the solution. I have noticed the same issue. What I see is that if I make my font huge, the alphanumerics scale accordingly, but the box drawing characters dont. Not sure where the issue lies. Notice in the attached image how the alphanumerics have scaled proportionally but the line drawing characters have not. Font is Inconsolata at 14pt.

https://i.sstatic.net/KOipL.png

Upvotes: 2

devth
devth

Reputation: 2750

In iTerm2 I was able to get things looking near-perfect by using a larger font for non-ascii characters:

enter image description here

Settings:

enter image description here

Upvotes: 2

krak3n
krak3n

Reputation: 966

Old post but anyway for people looking into this still. I find it best to set a different font for Non-Ascii characters and my actual font used for ASCII characters.

For reference I use Menlo for Powerline for Non-ASCII and Droid Sans Mono for my ASCII font and this sorts out the vertical line spacing without faffing around with vertical spacing etc.

Upvotes: 7

chepner
chepner

Reputation: 531808

The gap you see between the vertical bar characters is a combined effect the current font's design and vertical spacing. For me, I saw a marked decrease in the gaps when I switched to Courier New, but I also don't observe a difference between iTerm2 and Terminal for the same font. Decreasing the vertical spacing from the font selector can help, but may also crowd the lines together too much.

Upvotes: 3

Related Questions