-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird graphical issues in tmux #18
Comments
Thanks for the report. I'm aware of the issue. It only seems to happen when $TERM is set to 256-color, such as |
Hmm, further investigation shows that the problem appears even when $TERM is set to |
http://www.economyofeffort.com/2013/08/03/zsh-tmux-vim-and-256-color-madness/ |
It turned out that Curses.can_change_color? returns false when $TERM is set to screen-256color, which is perfectly capable of rendering 256 colors.
Could you update fzf, set $TERM to |
I had the same problem and updated $TERM to screen-256color in my tmux.conf. ( However, I do remember that I specifically set $TERM to xterm-256color because I had some issue with using my mouse in vim running in tmux on iterm2. I'll follow up on this thread if I come across the issue I had again, but the change looks like it fixed it. Thanks for the great tool! I rely on ctrlp so much in vim that I know I'll be using this heavily. |
I have the same problem on msys2 which uses mintty--and I'm not running tmux.
I tried the following:
I also tried that in my msys2 is still kind of new, so maybe it's not worth worrying about, but I'd be interested to know any other way of forcing 16 colors. |
@justinmk Okay, I'll see what I can do. In the meantime, what is the default value of TERM on it when you don't explicitly set it? I don't think you should set TERM to screen or screen-256color unless you're using tmux or screen. |
By default:
Yeah, I was just experimenting with the suggestions in this thread. |
@justinmk Currently fzf simply decides to use 256-color when the value of $TERM includes "256". Could you try again with $TERM set to |
@justinmk Yesterday I had a chance to work on fzf on Windows 7. Fixed up some issues with escape key sequences there. But other than that, it seemed to work fine on putty and Cygwin terminal with both |
Ok, then it's just something wrong with msys2's mintty, or something. |
And the new
The last line highights nicely, but the others do not. Any chance it would be possible for Probably msys2 is just broken in some way, but I'm not above limping along with the bare minimum if I can. The search works flawlessly, after all :) |
See the discussion in #18. Use --black option to use black background regardless of the default background color of the terminal. Also, this option can be used to fix rendering issues on terminals that don't support use_default_colors (man 3 default_colors). Depending on the terminal, use_default_colors may or may not succeed, but the Ruby version of it always returns nil, it's currently not possible to automatically enable this option.
@justinmk Phew, the new |
fzf issue: junegunn/fzf#18 relevant article: http://www.economyofeffort.com/2014/07/04/zsh/
This fixes FZF color problems in TMUX junegunn/fzf#18 http://www.economyofeffort.com/2014/07/04/zsh/
This fixes FZF color problems in TMUX junegunn/fzf#18 http://www.economyofeffort.com/2014/07/04/zsh/ Former-commit-id: 3675ac86df5679a4a259f3934b9ecaa8e6a01a3d
This fixes FZF color problems in TMUX junegunn/fzf#18 http://www.economyofeffort.com/2014/07/04/zsh/ Former-commit-id: 3675ac86df5679a4a259f3934b9ecaa8e6a01a3d
I'm not sure why this works (junegunn/fzf#18) It seems there's something going on with TERM inside tmux that causes fzf not to use the correct colours.
I'm not sure why this works (junegunn/fzf#18) It seems there's something going on with TERM inside tmux that causes fzf not to use the correct colours.
This fixes FZF color problems in TMUX junegunn/fzf#18 http://www.economyofeffort.com/2014/07/04/zsh/
I'm getting some weird graphical issues when using fzf in a tmux session. I don't have any problems when using it outside of tmux. I'm on OS X using zsh in iTerm2.
The text was updated successfully, but these errors were encountered: