-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
Allow customizing (and animating) the text cursor appearance #1432
Comments
I'm not excited to add a very specific configuration option for this, because I think it would, over time as more options are added, make the implementation more complex and harder to change without breaking someone's carefully crafted config on an upgrade. I've been considering exposing the custom block glyph styling datatypes to lua to allow for defining frames in animated cursors and I think that same mechanism could be used here for this; while it is a more complex configuration than just adding a width control, the overall result would simplify the logic for selecting a cursor shape and make a very powerful configuration for end users. I don't know exactly what this would look like yet, but the general requirements are:
|
Remove special case for blocks where we switched it out for a blank sprite and instead varied the cell background. We now always render a matching cursor sprite as a separate layer over the top of the text background color, but below the text foreground layer. This is preparing for #1432 Make bar/line cursors use the text foreground color when reverse video cursors are enabled, per @VKondakoff: #1076 (comment)
Don't want it to be the block outline refs: #1432
OSC 22 is supported by several terminals for the application to select a cursor. I have not yet looked into it deeply, but apparently xterm and mintty at least do not agree on what those cursors should be. If this feature is implemented, one might also get OSC 22 for nearly free. |
So at the moment how is the inactive cursor color chosen? Is it hardcoded? Is it linked to any other color in the color scheme? |
There is currently no distinction for color based on the active pane. The shape does change to an outline shape when inactive. |
Sorry, I meant to say focus as in the window being clicked on or not. For me, in that case, the cursor hollows out and turns green instead of white/gray-ish as I set it in both cursor_fg and cursor_bg |
Look for |
Ah thanks that makes total sense, stupid me |
Is your feature request related to a problem? Please describe.
I like the
Bar
cursor style instead of theBlock
one, but it's a bit too narrow, so visibility suffers more than it shouldDescribe the solution you'd like
A configuration option that would allow me to change the width of a
Bar
cursorDescribe alternatives you've considered
Going back to the
Block
Additional context
The text was updated successfully, but these errors were encountered: