tokyonight-vim icon indicating copy to clipboard operation
tokyonight-vim copied to clipboard

Color name or number not recognized when using tmux

Open RossComputerGuy opened this issue 5 years ago • 7 comments

Error detected while processing function <SNR>13_HL:
line   15:
E421: Color name or number not recognized: ctermfg=Orange ctermbg=NONE cterm=italic
E421: Color name or number not recognized: ctermfg=Orange ctermbg=NONE cterm=italic
E421: Color name or number not recognized: ctermfg=Orange ctermbg=NONE cterm=NONE
E421: Color name or number not recognized: ctermfg=Orange ctermbg=NONE cterm=NONE
E421: Color name or number not recognized: ctermfg=Orange ctermbg=NONE cterm=italic
E421: Color name or number not recognized: ctermfg=Orange ctermbg=NONE cterm=bold
E421: Color name or number not recognized: ctermfg=Orange ctermbg=NONE cterm=bold
E421: Color name or number not recognized: ctermfg=Orange ctermbg=NONE cterm=underline
E421: Color name or number not recognized: ctermfg=Orange ctermbg=NONE cterm=bold

OS: Pop!_OS Term: Alacritty vimrc: https://github.com/RossComputerGuy/dotfiles/blob/master/user/.vimrc $TERM: screen

Note: This issue doesn't occur while on Void Linux but is present on Pop!_OS

RossComputerGuy avatar Oct 19 '20 21:10 RossComputerGuy

Sorry for the late reply, got busy in the last few weeks. I haven't tested it yet with tmux, but my guess is because orange isn't the part of ansi color name (red,yellow,green,blue,cyan,magenta,white) and thus tmux couldn't know it

Note: This issue doesn't occur while on Void Linux but is present on Pop!_OS

Now I'm not sure about this. Can you provide the whole tmux.conf and .bashrc (or whatever the file you use to define TERM=screen)

ghifarit53 avatar Nov 04 '20 02:11 ghifarit53

My .zshrc does not define TERM and I do not have a tmux.conf file.

RossComputerGuy avatar Nov 04 '20 02:11 RossComputerGuy

Hi, may be do you have forget "set termguicolors" Try witch Kitty? i have a color on Kitty but not on Tmux or Alacritty :(

Geordinateur avatar Jan 12 '21 14:01 Geordinateur

@ghifarit53 that messes up the colors for me

RossComputerGuy avatar Jan 12 '21 17:01 RossComputerGuy

https://github.com/ghifarit53/tokyonight-vim/issues/4#issuecomment-706660872

RossComputerGuy avatar Jan 12 '21 17:01 RossComputerGuy

Ok i have the same error with Alacritty + Zsh and without set termguicolors... TERM=xterm ?

Geordinateur avatar Jan 13 '21 11:01 Geordinateur

I faced same issue with MacOS + Alacritty + tmux. I added this line to my .tmux.conf then worked.

set -g default-terminal "xterm-256color"

kbwo avatar Jun 09 '21 12:06 kbwo