0

I am using tmux in bash on my MacBook Pro. Inside tmux, there is some spacing above/beside the tmux statusbar and shell that I'd like to get rid of.

tmux spacing

I zoomed in a bit further for better visibility:

tmux spacing

As you can see, there are 2px spacing top of the status bar and 5px spacing left of the entire shell. Is there an option I can specify in my .tmux.conf to get rid of this?

pfincent
  • 452
  • 2
  • 7
  • 21
  • This might be because your window is not an exact multiple of the font size. If you shrink the window height by 2 or 3 pixels does the space go away? – meuh Nov 03 '19 at 17:01
  • I can only shrink my window height in discrete steps, each of which is equal to the height of one line, so the spacing does not change unfortunately. – pfincent Nov 03 '19 at 17:06
  • Changing my font size does actually make the spacing go away, but only the one above the status bar, not on the sides. Also, the font size is then either way too big or too small to be useful. – pfincent Nov 03 '19 at 17:07
  • It is probably a feature of your terminal emulator. Which one are you using? It might have some padding options? I don't know MacOS enough to help. You might compare with another terminal like `xterm`. – meuh Nov 03 '19 at 17:13
  • I'm using the default/preinstalled Terminal. I just tried it out with iTerm2, the problem persists, though. – pfincent Nov 03 '19 at 17:27
  • You could try asking on sister site for MacOS [apple.stackexchange](https://apple.stackexchange.com/). For example this [question](https://apple.stackexchange.com/questions/366119/mac-terminal-padding) seems to be the opposite to yours. – meuh Nov 03 '19 at 17:32
  • I will do that, thank you for your help :) – pfincent Nov 03 '19 at 17:33

0 Answers0