Tmux borders are drawn with dashed lines; how can I change them to continuous lines?

社会主义新天地 提交于 2019-12-03 03:34:19

问题


I'm using Mac OS X Lion, Terminal.app and Tmux version 1.6. I get a dashed line as a window border instead of a continuous line that I get when I ssh into a Debian virtual machine on the same computer using the same terminal. How can I change the dashed line to a continuous line?


回答1:


I found the origin of the problem. It's the font. I was using Monaco and it displays vertical dashes in a way that the vertical pane separator is dashed. With Menlo however it's solid.




回答2:


I had a similar problem using iTerm on mac to log into a redhat. Suddenly the vertical lines did not show and the horizontal ones were dashed.

I fixed the problem by unchecking "Treat ambiguous-width characters as double width" in iTerm->Preferences->Profiles->Text




回答3:


Actually, some fonts you like only contain a small number of glyphs to display usual characters, but failed to include glyphs for other unicode characters, for example U+2502, which is used by tmux as the vertical split line. So the system usually defaults to a fallback font, however, unfortunately, that fallback font does not provide the glyphs that are appropriate for drawing a continuous line.

One possible solution is to use terminals that supports selecting a fallback font, such as iTerm2, then you choose Menlo as you mentioned as the non-ascii font and use the original font as the same time.

The other solution requires a little more work, use fontforge or other font editors to patch the missing glyphs using those from a correctly displayed font like Menlo. Here is a link to what I have done, patching Inconsolata for Powerline using glyphs from Menlo: https://github.com/Determinant/inconsolata_for_powerline_mod




回答4:


late to the party but might be useful:

  • pick a different font for non-ASCII characters
  • reduce vertical spacing until vertical separators join into single line


来源:https://stackoverflow.com/questions/9821973/tmux-borders-are-drawn-with-dashed-lines-how-can-i-change-them-to-continuous-li

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!