-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Expose hollow-block in DECSCUSR #8353
Comments
Yes, I have reserved hollow as the shape for unfocused cursors. I don't |
Why not just hide the cursor in that case if it's unfocused? |
That would work, and is the accepted pattern - yet kitty (and basically every other terminal) don't do this and instead render a hollow block cursor to indicate loss of input focus. I think that pattern is valuable within a TUI as well. |
On Wed, Feb 19, 2025 at 06:58:39AM -0800, Tim Culverhouse wrote:
rockorager left a comment (kovidgoyal/kitty#8353)
> Why not just hide the cursor in that case if it's unfocused?
That would work, and is the accepted pattern - yet kitty (and basically every other terminal) don't do this and instead render a hollow block cursor to indicate loss of input focus. I think that pattern is valuable *within* a TUI as well.
Yeah and since they do, if terminal UIs start doing it as well it
becomes very confusing. A hollow cursor in kitty means that the key
presses dont go to the kitty window at all. If a TUI app sets the cursor
to hollow, keys are still going to that window, so for instance, pressing
ctrl-c or the close window shortcut and so on will all take effect.
Making the hollow cursor essentially useless as an indicator of lost
focus.
TUI *apps* as opposed to terminals themselves should hide the cursor if
no input field is currently accepting input.
|
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Extend the DECSCUSR enum to include
Describe alternatives you've considered
None.
Additional context
@dnkl is investigating extending the DECSCUSR enum to include blinking hollow block, and hollow block. Kitty currently allows setting the unfocused shape as hollow, but not the focused shape - nor is it available for TUI applications to set explicitly.
In kitty's case, I think this should also be exposed as a configuration option for
cursor_shape
(I don't know why anyone would use this...but if it's available in DECSCUSR may as well make it available to users).foot pr adding configuration option
ghostty discussion
The text was updated successfully, but these errors were encountered: