Skip to content
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

Revised cursor colour #5

Closed
scottwillmoore opened this issue Jan 1, 2017 · 3 comments
Closed

Revised cursor colour #5

scottwillmoore opened this issue Jan 1, 2017 · 3 comments

Comments

@scottwillmoore
Copy link

scottwillmoore commented Jan 1, 2017

I have applied the following changes to my local copy of the termite config which increase the visibility of the cursor.

The cursor colour uses the same colour as the foreground (white text). Therefore when the cursor is placed above white text (this occurs quite frequently), you cannot read the text underneath. Below is an example of this within vim.

image

By adjusting the cursor to use the colour nord6 instead of nord4, this increases the brightness of the cursor, and hence fix this problem. Using pure white, #FFFFFF results in even more contrast, and hence makes white text even more readable when the cursor is placed over the top.

# current cursor colour, nord4.
cursor = #D8DEE9
# better visibility cursor colour, nord6.
cursor = #ECEFF4
@arcticicestudio
Copy link
Contributor

Thanks for your report.
I've created the theme using a IBeam cursor and forgot about the block cursor.
Unfortunately I'm actually not able to test it on my own since I'm using Terminix and my installed 'vte3' package conflicts with the vte3-ng and I can not use my i3 based system at the moment.

I did some research and found this PR in the Termite repository which documents the cursor_foreground color option.

Can you please try to set the cursor_foreground option to #2E3440 and test if it fixes the problem?
Otherwise try to unset both the cursor and cursor_foreground to see if the default behaviour works fine.

If both of these are unset, cursor falls back to the foreground color,
and cursor_foreground falls back to the background color.

This should result in a dark foreground color (nord0) when the cursor is visible while blinking and in the default foreground color (nord4) when the cursor is not visible.

If both methods are not working I'll create a VirtualBox image to test it, but I think it is easier if you could test it on your system beforehand.

This is how it actually looks like when using a VTE based emulator like Terminix or GNOME Terminal.
ghi-5-scrcast-gvim

@arcticicestudio arcticicestudio self-assigned this Jan 2, 2017
@scottwillmoore
Copy link
Author

Yep. This is the solution, and a much better solution than what I had proposed.

I did try using an IBeam cursor, however I found that it messed with my mind too much when trying to use Vim. Now I can move back to using a block cursor! Thanks for that. 😄

image

@arcticicestudio
Copy link
Contributor

arcticicestudio commented Jan 2, 2017

Nice to see that it works! 😄
I'll add the cursor_foreground later to the config to fix this for all users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants