Open michaelglass opened 1 year ago
Thats only a problem with tools linking against a very old ncurses but macos is using that. Just point TERMINFO_DIRS
to the ncurses terminfo dir by nixpkgs. Unfortunately we cannot solve this on a package level. We could compile tmux on macos with the older term.
We could compile tmux on macos with the older term.
Maybe on Linux too. Older Linux distros have no support for "tmux-256color".
Right now, I use tmux.conf
to resolve this issue.
set -g default-terminal "xterm-256color"
my workaround overlay looks like this:
self: super:
# this is a workaround for https://github.com/NixOS/nixpkgs/issues/204144
let
tmuxWithScreen256color = super.tmux.overrideAttrs (oldAttrs: {
configureFlags = oldAttrs.configureFlags ++ [ "--with-TERM=screen-256color" ];
});
in
{
tmux = tmuxWithScreen256color;
}
Describe the bug
tmux 3.3 changes the default TERM to
tmux-256color
, which is invalid out of the box for Mac OS. See this note.Steps To Reproduce
Expected behavior
vi launches cleanly (this impacts a lot of terminal-things but vi is an obvious example)
Screenshots / actual behavior
Additional context
Sure there are many solutions. I see two:
Notify maintainers
@tobias-hammerschmidt @fpletz @SuperSandro2000 @rapenne-s (you are all heroes thank u!)
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.