Replies: 2 comments 3 replies
-
The cursor color/styling is a bit complex so I want to be careful about making it more complex! The block cursor is really the outline rectangle you see when the terminal isn't focused... when focused we have a special case and don't render a cursor graphic at all and instead just vary the cell colors. When rendering a cursor graphic, it always uses the cursor border color for it. (exception: when using the cursor as the bell target and the bell is ringing per: https://wezfurlong.org/wezterm/config/lua/config/visual_bell.html) The colors are modified by inactive_pane_hsb but the default is perhaps a bit too subtle to notice on the likely choices of cursor border color: you might consider overriding the default to make the difference more visible? I pushed d2e73e1 which causes wezterm to use the same cursor outline as block when the pane loses focus. I'm not 100% sold on this change, but it has the advantage of being trivial and also of making the inactive cursor behavior consistent. |
Beta Was this translation helpful? Give feedback.
-
Ok, that summary is definitely more complicated that whatever I had in mind (I just wanted to match my editor's style, and width/height/color is all I need, I've used Neovide before and personally not a fan of that amount of fancy :) ); but if you believe there is enough demand for more complex modifications, then yeah, it might make more sense to complicate the lua config and give power to the users rather than incrementally reach the same hill with complicated internals |
Beta Was this translation helpful? Give feedback.
-
The
Block
cursor has this nice effect — in inactive tabs/panes it turns into an outline (the filling color becomes the same as the background), so it's easy to distinguish between a focused cursor and an inactive oneHowever, the
Bar
cursor doesn't have this effect — its line color stays the same (which matches the behavior of theBlock
cursor, but then for theBar
cursor it doesn't work)Is it possible to change the
cursor_border
color depending on whether the cursor is focused or not?Beta Was this translation helpful? Give feedback.
All reactions