How to change tmux border size - macos

I'm using
set -g window-style 'bg=default'
set -g window-active-style 'bg=#262626'
to highlight active pane in tmux and just same foreground for active/inactive borders
set -g pane-border-fg '#4d5057'
set -g pane-active-border-fg '#4d5057'
and I got this result, so, as you can see there is a big sized border, which has terminal default background and it looks awful, so im trying to find way to reduce border size in tmux to 1px or something like this.
Actually it looks like a padding but it's not, if we'll try to set border bg to red, for example, we'll get this result.
As additional information, I'm using Mac OS and iTerm2 as terminal, but same problem presented even in default terminal for me.
So, the question is: how to reduce border size to 1px or make border bg transparent (not default, which equals terminal bg)?
Thank you.

The borders are drawn by regular box-drawing characters in your terminal, so there is no way to make a border only 1px wide. The border will always be 1 character wide and 1 character tall, since it is drawn with characters.
A terminal application like iTerm may have the ability to draw at a pixel-perfect level and create multiple terminal windows to draw different panes, but this is because it has access to your OS or window system's low-level drawing commands. But tmux runs inside a terminal, and it only has one terminal window to work with. This is why it's limited to using normal terminal characters to draw borders.

Related

Running Ipython in cmd with colored background causes inconsistant background color

When changing the cmd background and font color using the "color" function and running the IPython terminal the black background is used for some of the lines, most notably the entire prompt line. It looks like the default background in Ipython is black and it is used inconsistantly, sometimes as the background for the text displayed, sometimes as background for "padded" lines.
example
I have tried changing the color display to "NoColor" and "LightBG" using the %colors magic but that does not change the background color, just the font and I am lost where to begin looking for a solution. I would like IPython to consistantly use the background color that I set up as the cmd background.

Mac Terminal Cursor Position More Visible

I want to change the cursor in terminal to be more readable, since I have a black background and white text.
I have looked at a bunch of posts on this and it doesn't seem possible, especially since I don't want to change the text color, just the cursor color.
I'm on OSX Mavericks, using TotalTerminal. Here is a screen shot of me hovering over a character of text which is hard to see
I found some stuff in the Terminal.plist but I changing them doesn't seem to be doing anything

Is there a way to find the titlebar height and window borders in GNOME3?

xwininfo used to return the dimensions of the window including the border and titlebar until GNOME2. Now the same command returns the dimensions of the actual window without the borders and titlebar. So is there another command that I can use in a shell script to add the two together to get the real dimensions?
It seems like
xwininfo -frame
provides the full height of the window, including the title bar. Although I am not sure about the width shown, which seems a bit overstated.

How to show the vim theme in its original colors using iTerm

I have a Linux box,. I use "Konsole" application. Inside "Konsole" the original colorschemes for Vim always show up right. They are not limited by the color palettes defined by the Konsole. Anytime I change the Konsole colorscheme, the terminal Vim colors are left intact.
However, in iTerm I can never get the exact colors for the schemes. If I change the iTerm theme, the Vim colors get mixed up too.
Is there any way to show up the vim theme in its original colors using iTerm, the absolute colors?
:echo &t_Co
returns 256.
I recently asked a similar question which got migrated to superuser. My problem was that white actually gave me grey.
In my console there was a colour palette and X11 colour names were actually mapped to a position on the palette. Changing the palette changes the colour, the meaning of X11 White is rendered according to palette location 16 in my case.

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?
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.
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.
In iTerm2 I was able to get things looking near-perfect by using a larger font for non-ascii characters:
Settings:
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.
http://i.stack.imgur.com/KOipL.png

Resources