Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 675
Tammer Ibrahim Avatar asked Sep 20 '12 19:09

Tammer Ibrahim


3 Answers

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.

like image 92
krak3n Avatar answered Oct 17 '22 11:10

krak3n


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.

like image 37
chepner Avatar answered Oct 17 '22 09:10

chepner


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

like image 37
devth Avatar answered Oct 17 '22 11:10

devth