Tmux and dimmed colors in Terminal.app on MacOS


Atcold

question

On my Mac (10.11) Tmux doesn't display -ed colors dimcorrectly , which is causing trouble.

In the image below, the name of the author of the submission should be indicated with dim white. This works fine in Terminal.app but not in Tmux .

git lg1 comparison

Does anyone have any clues on how to debug this method?
I believe it has something to do with $TERMvariables, but I don't know where to start.

In Terminal.app $TERM will be set to xterm-256color.
In Tmux $TERM set to screen-256color.

on .tmux.confme set -g default-terminal "screen-256color". xterm-256colorIn Tmux , somehow conflicts with Vim 's background color , but doesn't change its dimbehavior.

More information

I've opened an issue on Tmux 's GitHub repository ; an answer has been provided, but I don't fully understand it.

It looks like Terminal.app has no dimdirectives, although it can be handled.
Tmux can't get the diminformation because it doesn't exist, so it can't display the font correctly.

Now I'm not sure why one works and the other doesn't.

Atcold

easy to repair

Add the following code to ~/.tmux.conf.

set -sa terminal-overrides ",*:dim=\\E[2m"

Tentative explanation

Application.app doesn't seem to have dima directive (see number 24).

Terminal 0: xterm-256color [references=1, flags=0x1]:
   1: acsc: (string) ``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~
   0: AX: (flag) true
   2: bel: (string) \007
...
  23: dch1: (string) \033[P
  24: dim: [missing]
  25: dl: (string) \033[%p1%dM

This is the output of a command run tmux showmsgs -Tinside Tmux .

On the other hand, Terminal.app is still "sending" dim(don't know how or why ) because it's working, as shown in the image above.

Adding the missing dimdirective ( magically ) solved the problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Related


Tmux and dimmed colors in Terminal.app on MacOS

Atcold question On my Mac (10.11) Tmux doesn't display -ed colors dimcorrectly , which is causing trouble. In the image below, the name of the author of the submission should be indicated with dim white. This works fine in Terminal.app but not in Tmux . Does a

TMUX and terminal colors are not the same locally and on ssh

alpha1554 I have a bunch of dotfiles that allow me to have a nice theme on terminal and tmux on localhost. I use cat, fish and tamarisk. In order to define the colors correctly and have global consistency, I use the following files: .Xresoures kitty.conf fish_

How to display colors in Terminal (macOS Sierra)

Ron I added export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcxto .bash_profile, saved the file, then ran in terminal source .bash_profileand was able to see the colors. However, when closing the terminal and opening it again, I see no color even though my .bash_profileis

How to display colors in Terminal (macOS Sierra)

Ron I added export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcxto .bash_profile, saved the file, then ran in terminal source .bash_profileand was able to see the colors. However, when closing the terminal and opening it again, I see no color even though my .bash_profileis

Terminal colors look incorrect when using tmux with termite

Erick Caesar The terminal I'm using is termite and it's pretty good, but when using tmux I also have issues with vim's color scheme and some colors in the terminal itself. Here's what it happens: As shown in the screenshot, when I open nvim or vim with tmux, i

Terminal colors look incorrect when using tmux with termite

Erick Caesar The terminal I'm using is termite and it's pretty good, but when using tmux I also have issues with vim's color scheme and some colors in the terminal itself. Here's what it happens: As shown in the screenshot, when I open nvim or vim with tmux, i

Tmux in multiple Terminal.app windows

good news I'm just trying Tmux so I can avoid going to the same host over and over again. I like the panes that tmux provides, but here's my focus: I have to ssh into a separate server (server1), authenticate with Duo, then ssh from that server to my final des

Tmux in multiple Terminal.app windows

good news I'm just trying Tmux so I can avoid going to the same host over and over again. I like the panes that tmux provides, but here's my focus: I have to ssh into a separate server (server1), authenticate with Duo, then ssh from that server to my final des

Tmux in multiple Terminal.app windows

good news I'm just trying Tmux so I can avoid going to the same host over and over again. I like the panes that tmux provides, but here's my focus: I have to ssh into a separate server (server1), authenticate with Duo, then ssh from that server to my final des

Different macOS terminal colors for user input and shell output

Panda When I do something on Mac Terminal, the user's input and the shell's output have the same color This is difficult when I have a lot of operations and want to look back in history because all the lines of user input and shell output are mixed. I would li

Different macOS terminal colors for user input and shell output

Panda When I do something on Mac Terminal, the user's input and the shell's output have the same color This is difficult when I have a lot of operations and want to look back in history because all the lines of user input and shell output are mixed. I would li

Different macOS terminal colors for user input and shell output

panda When I do something on Mac Terminal, the user's input and the shell's output have the same color This is difficult when I have a lot of operations and want to look back in history because all the lines of user input and shell output are mixed. I would li

Different macOS terminal colors for user input and shell output

panda When I do something on Mac Terminal, the user's input and the shell's output have the same color This is difficult when I have a lot of operations and want to look back in history because all the lines of user input and shell output are mixed. I would li

Favorite MacOS Terminal app to log HTML content

Podgipnosozom In order to capture frames of html animations and stitch them into a video, I'm about to use Timecut (available from npm). However, the result wasn't sharp video - the captured image was rather blurry for some reason. What other terminal applicat

Use Terminal to check if an app is installed on MacOS

Kevin Roberts I'm making a small cross-platform CLI tool in TypeScript/NodeJs. Its main function requires it to check which browsers are installed on the host. On Linux and Windows it works perfectly. I've done a lot of research on how to achieve this, current

Favorite MacOS Terminal app to log HTML content

Podgipnosozom In order to capture frames of html animations and stitch them into a video, I'm about to use Timecut (available from npm). However, the result wasn't sharp video - the captured image was rather blurry for some reason. What other terminal applicat

How to start Terminal app on PATH in Swift on macOS?

Mike Lischke I want to launch a terminal app (like "git") in a Swift app on macOS. My code looks like this: do { let process: Process = Process(); process.launchPath = "git"; process.arguments = [ "..." ]; process.laun

Favorite MacOS Terminal app to log HTML content

Podgipnosozom In order to capture frames of html animations and stitch them into a video, I'm about to use Timecut (available from npm). However, the result wasn't sharp video - the captured image was rather blurry for some reason. What other terminal applicat

Use Terminal to check if an app is installed on MacOS

Kevin Roberts I'm making a small cross-platform CLI tool in TypeScript/NodeJs. Its main function requires it to check which browsers are installed on the host. On Linux and Windows it works perfectly. I've done a lot of research on how to achieve this, current

Favorite MacOS Terminal app to log HTML content

Podgipnosozom In order to capture frames of html animations and stitch them into a video, I'm about to use Timecut (available from npm). However, the result wasn't sharp video - the captured image was rather blurry for some reason. What other terminal applicat

Vim colors not showing in tmux

Jordan I have been unable to use vim in tmux for about a week. I keep all my dotfiles in Github (here https://github.com/jordanjones98/dotfiles ), when I have a computer I think it will be a simple git pull, and some other simple setting. When I pull and insta

Vim colors not showing in tmux

Jordan I have been unable to use vim in tmux for about a week. I keep all my dot files in Github (here https://github.com/jordanjones98/dotfiles ), when I have a computer I think it will be a simple git pull, and some other simple setting. When I pull and inst

Vim colors not showing in tmux

Jordan I have been unable to use vim in tmux for about a week. I keep all my dotfiles in Github (here https://github.com/jordanjones98/dotfiles ), when I have a computer I think it will be a simple git pull, and some other simple setting. When I pull and insta

tmux copy is slow on macOS

craft I've had this problem for about two years (since I started using tmux in summer 2018) and I haven't found a solution to this problem. Any help is greatly appreciated! tmux's copy function is slow. Usually when I use the mouse selection to copy, then past