-
Notifications
You must be signed in to change notification settings - Fork 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
Reversal of reverse video for cursor #408
Comments
There is a flag |
@impowski I'm not sure I understand what you mean by "There is a flag The example I give in the issue description above is a "real" example. The net result is: |
@jonhoo Yeah, I know about this problem, as I remember I fixed it in my PR. There is no special config in my PR, I only added Can you give me your colors from config, and I will check it tomorrow? Because there was one bug on master with custom colors and was reported in my PR, and since then I didn't update anything on my branch. So tomorrow I'll definitely will update everything and check with my changes. |
Ah, I see. I still haven't tried building with your PR. Would it be helpful if I did? My color config is custom_cursor_colors: false
# Colors (Base16 Atelier Dune)
colors:
# Default colors
primary:
background: '0x20201d'
foreground: '0xa6a28c'
# Colors the cursor will use if `custom_cursor_colors` is true
cursor:
background: '0xffffff'
foreground: '0x000000'
# Normal colors
normal:
black: '0x20201d'
red: '0xd73737'
green: '0x60ac39'
yellow: '0xae9513'
blue: '0x6684e1'
magenta: '0xb854d4'
cyan: '0x1fad83'
white: '0xa6a28c'
# Bright colors
bright:
black: '0x7d7a68'
red: '0xd73737'
green: '0x60ac39'
yellow: '0xae9513'
blue: '0x6684e1'
magenta: '0xb854d4'
cyan: '0x1fad83'
white: '0xfefbec' However, I then source this file which uses escape codes to set the colors (including some beyond the initial 16). |
So here as you can see it's from |
That's the behavior with your PR? If so, I'm happy :p |
@jonhoo yeah it is. I'm glad. 😄 |
@jonhoo I update my PR to a recent changes, everything should be the same. |
I'm pretty sure that's the desired behaviour. That's how it is in all other terminals. |
Is this still a problem? |
I believe this has been resolved, since we now check for INVERSE or cursor to inverse the cell content. |
alacritty's default behavior is to reverse the foreground and background colors for the current cursor (unless
custom_cursor_colors
is set). This usually works quite well, except in the case where the cursor is over a character that is already reversed. Consider, for example, the case where you are highlighting text intmux
(^[
, move to some text,v
to visually highlight).tmux
will reverse all selected characters (including the current cursors position).alacritty
will then reverse the color again. Depending on your particular color configuration, the cursor essentially disappears. If the highlight also changes the background color, the net effect is just that the font color of the character under the cursor changes, but this is still not particularly visible.I'm not entirely sure how this would be fixed though? Can alacritty somehow detect that it is reversing a reversal?
The text was updated successfully, but these errors were encountered: