You are not logged in.

#1 2025-08-08 15:20:12

Akamiblade129_7
Member
Registered: 2024-12-06
Posts: 45

[SOLVED] Tmux breaks colors in KMSCON

I've installed KMSCON and set it on VT2 recently, and it works pretty well.
But all colors disappear when I use tmux. The console just goes B/W.

# ~/.config/tmux.conf
unbind C-b
set -g prefix C-a
bind C-a send-prefix

set -g status-bg blue
set -g status-fg black

set -g default-terminal "screen-256color"
set -ag terminal-overrides ",xterm-256color:Tc"
# /etc/kmscon/kmscon.conf
font-name=Terminus
font-size=24

xkb-layout=us,ru
xkb-options=grp:caps_toggle

Info that might be useful:

  • Kernel:     6.15.9.arch1-1

  • Terminal:  kmscon 9.1.0-1 (AUR)

  • Shell:       zsh 5.9-5

  • Tmux:      tmux 3.5_a-1

Last edited by Akamiblade129_7 (2025-08-09 05:40:21)

Offline

#2 2025-08-08 19:13:27

topcat01
Member
Registered: 2019-09-17
Posts: 258

Re: [SOLVED] Tmux breaks colors in KMSCON

What is the TERM set to before running tmux? Also, what happens if you run tmux with an empty config?

tmux -f /dev/null

Offline

#3 2025-08-08 20:26:36

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,601

Re: [SOLVED] Tmux breaks colors in KMSCON

https://man.archlinux.org/man/extra/tmux/tmux.1.en#2

As for your config:

set -g default-terminal "screen-256color"
set -ag terminal-overrides ",xterm-256color:Tc"

1. screen is gnu-screen (tmux alternative), that's kinda mean tongue
2. $TERM in kmscon is likely not xterm-256color ?

Online

#4 2025-08-08 20:54:13

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,565

Re: [SOLVED] Tmux breaks colors in KMSCON

Kmscon is an aur pacakge.

Moderator Note
Moving to AUR Issues, Discussion & PKGBUILD Requests


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2025-08-09 05:20:25

Akamiblade129_7
Member
Registered: 2024-12-06
Posts: 45

Re: [SOLVED] Tmux breaks colors in KMSCON

topcat01 wrote:

What is the TERM set to before running tmux? Also, what happens if you run tmux with an empty config?

tmux -f /dev/null

Same thing happens without config. The TERM is vt102

seth wrote:

https://man.archlinux.org/man/extra/tmux/tmux.1.en#2

As for your config:

set -g default-terminal "screen-256color"
set -ag terminal-overrides ",xterm-256color:Tc"

1. screen is gnu-screen (tmux alternative), that's kinda mean tongue
2. $TERM in kmscon is likely not xterm-256color ?

Most of people say that these lines of config help them with broken colors, however it does nothing.

Last edited by Akamiblade129_7 (2025-08-09 05:33:49)

Offline

#6 2025-08-09 05:39:33

Akamiblade129_7
Member
Registered: 2024-12-06
Posts: 45

Re: [SOLVED] Tmux breaks colors in KMSCON

I actually feel dumb now. Changing terminal-overrides to vt102 fixed it:

set -ag terminal-overrides ",vt102:Tc"

Offline

#7 2025-08-09 18:46:01

topcat01
Member
Registered: 2019-09-17
Posts: 258

Re: [SOLVED] Tmux breaks colors in KMSCON

Yes, that's what I (and also seth, I think) was hinting at. Good to know it works now.

Offline

Board footer

Powered by FluxBB