Repository navigation
Per-mode cursor colors, configurable unfocused shape, and OSC color sync #16371
Unanswered
denieldiniz
asked this question in
Ideas
Replies: 1 comment
|
Quick update: put together a working implementation on a branch to test this out: Main changes so far:
Tested locally on kitty and ghostty across mode changes and focus loss, works as expected. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
2.
unfocusedparameter in[editor.cursor-shape]Allow configuring cursor shape behavior on focus loss:
Setting
unfocused = "match"preserves the current mode's geometry onFocusLost, allowing emulators to render their native hollow block.3. Hardware color synchronization via OSC (
config.toml)Keep the hardware cursor color aligned with the active theme:
\x1b]12;<rgb>\x07) on mode transitions and focus loss.\x1b]112\x07) on application exit to restore the host terminal's default color.Implementation & Compatibility
unfocused = "underline"and falling back toui.cursorensures existing configurations remain unaffected.helix_tui::Backend(crossterm/termina), keepingTestBackendclean as a no-op with no direct stdout writes from UI components.If the maintainers are aligned with this design, I am happy to open a focused PR (or separate PRs) implementing it.
All reactions