panagiotiss/tmux
Project ID: 30352
Description
Tmux build for CentOS and Fedora based on the official tmux spec file from
https://src.fedoraproject.org/rpms/tmux/
Installation Instructions
Optional setup
**The following are for gnome-terminal. Adjust accordingly for the terminal of your choice. **
tmux.conf
For the whole range of tmux capabilities depending on your ncurses-term version set the following in your .tmux.conf
(Enable what you need from the 'as terminal-overrides' although it does not matter if they are enabled anyway)
# TERM options
set -g default-terminal "tmux-256color" # This is the correct option.
# set -g default-terminal "xterm-256color" # Centos 7.7 does not have tmux terminfo so we need to use xterm-256color. (DO NOT use screen-256color)
set -ga terminal-overrides ",*256col*:Tc" # true colous support
set -as terminal-overrides ',*:sitm=\E[3m' # Italics support for older ncurses
set -as terminal-overrides ',*:smxx=\E[9m' # Strikeout
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours
You can also check man tmux
for more information.
Also check ncurses terminfo.src for the escape characters.
Make sure that your terminal supports the above before you start blaming tmux.
True colours
For True Colour support see
https://gist.github.com/XVilka/8346728
or just run
awk 'BEGIN{
s="/\\/\\/\\/\\/\\"; s=s s s s s s s s;
for (colnum = 0; colnum<77; colnum++) {
r = 255-(colnum*255/76);
g = (colnum*510/76);
b = (colnum*255/76);
if (g>255) g = 510-g;
printf "\033[48;2;%d;%d;%dm", r,g,b;
printf "\033[38;2;%d;%d;%dm", 255-r,255-g,255-b;
printf "%s\033[0m", substr(s,colnum+1,1);
}
printf "\n";
}'
The colours should continuous. If there are distinct regions then it does not support true colours.
Colour codes
https://askubuntu.com/a/528938
https://misc.flogisoft.com/bash/tip_colors_and_formatting
echo -e "\e[1mbold\e[0m"
echo -e "\e[3mitalic\e[0m"
echo -e "\e[3m\e[1mbold italic\e[0m"
echo -e "\e[4munderline\e[0m"
echo -e "\e[4:3mundercurl\e[0m"
echo -e "\e[9mstrikethrough\e[0m"
echo -e "\e[31mHello World\e[0m"
echo -e "\x1B[31mHello World\e[0m"
That should blink, have undercurl, and the range of colours should be the same inside and outside tmux
echo -ne \\e\[1\;3\;4:3\;5\;53\;38\;2\;255\;127\;0\;58\;2\;0\;48\;255\;48\;2\;255\;0\;{0..255..8}mX \\e\[0m\\n
Neovim and undercurl
If neovim does not have undercurl support during ssh sessions check if '$VTE_VERSION' is set.
Check the VTE_VERSION
of your local machine
echo $VTE_VERSION # 5803
Set the same on the remote machine
export VTE_VERSION=5803
Active Releases
The following unofficial repositories are provided as-is by owner of this project. Contact the owner directly for bugs or issues (IE: not bugzilla).
Release | Architectures | Repo Download |
---|---|---|
EPEL 7 | x86_64 (1)* | EPEL 7 (98 downloads) |
EPEL 8 | x86_64 (16)* | EPEL 8 (96 downloads) |
Fedora 39 | x86_64 (7)* | Fedora 39 (0 downloads) |
Fedora 40 | x86_64 (1)* | Fedora 40 (21 downloads) |
Fedora 41 | x86_64 (0)* | Fedora 41 (7 downloads) |
Fedora rawhide | x86_64 (2)* | Fedora rawhide (77 downloads) |
* Total number of downloaded packages.