You want pane-active-border-style
and pane-border-style
:
See the entry in the man
page:
pane-active-border-style style
Set the pane border style for the currently active pane. For how to specify style, see the message-command-style
option. Attributes are ignored.
pane-border-style style
Set the pane border style for pane as aside from the active pane. For how to specify style, see the
message-command-style option. Attributes are ignored.
So, in your ~/.tmux.conf
you could specify colours like so:
# border colours
set -g pane-border-style fg=magenta
set -g pane-active-border-style "bg=default fg=magenta"
Note, I use tmux 1.9a, and I find I get more consistent behaviour using:
set -g pane-border-fg magenta
set -g pane-active-border-fg green
set -g pane-active-border-bg default
Those border lines are made up of rows and columns in the console and they are indivisible. In a text-based terminal there is no structural element smaller than one character "cell" (which is about the size of that block cursor). The only way to reduce the size of the borders is to reduce the size of all rows/columns.
Fortunately, we can manipulate the colors to give the appearance of a thinner border: set the foreground to the desired color (colour208 in your case) and set the background to the background color of your panes. For the latter default
is often sufficient.
That gives us...
set -g pane-active-border-style fg=colour208,bg=default
If there's a color mismatch replace default
with the actual pane background color.
(You can, of course, configure the non-active borders similarly. Replace pane-active-border-style
with pane-border-style
and change the foreground color as desired.)
Here's a screen shot taken after I applied the above setting..
Update: I originally listed two ways to configure the border colors. The second way...
set -g pane-active-border-bg default
set -g pane-active-border-fg colour208
...should be avoided as it will no longer work in tmux 2.9 or later. The one exception is if you are using an ancient tmux build as the newer syntax isn't available prior to tmux 1.9
Best Answer
There are many options given in the manual. (See the OPTIONS section.) Create an RC file:
~/.tmux.conf
. The contents below enables UTF-8, sets the right TERM type, and draws the status bar with a black background and white foreground.In FreeBSD 10.1, I have had to add
-g
to the UTF directives.On UTF-8, many SSH clients require one to explicitly define a character set to use. For example, in Putty, select
Window -> Translation -> Remote character set: UTF-8
and selectUse Unicode line drawing code points
.And to turn off the status bar...
On colors from the manual...
So, to list the available colors, first create a script, maybe
colors.sh
:Next, execute the script, piping to
less
:This produces a list of colors, 1-255, in this format:
Pick a color from the list, perhaps colour240, a shade of grey. In
~/.tmux.conf
, use this value to set the desired color:In Fedora 17, 256-color terminals are not enabled by default. The official method used to enable 256-color terminals by default is given on the Fedora Project Wiki. Follow that guide, or, as a per-user solution, create an alias for tmux to force 256-color support with the "-2" switch.
Then start tmux to test it.
Note that, as @ILMostro_7 points out, it would not be correct to set the TERM type for
tmux
from, for example,~/.bashrc
. Each tmux pane emulates a terminal - not the same thing as an xterm. The emulation intmux
needs to match screen, a different terminal description, to behave properly; but, the real terminal does not need to do so. It's description isxterm-256color
.