Skip to content

ui: add enablePromptCursor option to show hardware cursor in prompt bars - #4035

Open
skaven81 wants to merge 1 commit into
derailed:masterfrom
skaven81:feature/enable-prompt-cursor
Open

ui: add enablePromptCursor option to show hardware cursor in prompt bars#4035
skaven81 wants to merge 1 commit into
derailed:masterfrom
skaven81:feature/enable-prompt-cursor

Conversation

@skaven81

@skaven81 skaven81 commented Jun 2, 2026

Copy link
Copy Markdown

Adds ui.enablePromptCursor (default: false) to config.yaml. When true, the terminal hardware cursor is shown in the filter (/) and command (:) prompt bars, positioned at the current input location.

Default is false to preserve existing behavior for all users — the prompt bars continue to show no cursor unless this option is explicitly set.

This requires a corresponding change in derailed/tview (skaven81/tview branch fix-textview-showcursor) which makes TextView.Draw() honor the ShowCursor flag. Without that tview change, this config flag has no visible effect. With only the tview change and not this k9s change, the cursor would appear unconditionally — so both changes are needed together to keep the default behavior unchanged.

To enable:

  # ~/.config/k9s/config.yaml
  k9s:
    ui:
      enablePromptCursor: true

See also derailed/tview#11

Adds ui.enablePromptCursor (default: false) to config.yaml. When true,
the terminal hardware cursor is shown in the filter (/) and command (:)
prompt bars, positioned at the current input location.

Default is false to preserve existing behavior for all users — the
prompt bars continue to show no cursor unless this option is explicitly
set.

This requires a corresponding change in derailed/tview (skaven81/tview
branch fix-textview-showcursor) which makes TextView.Draw() honor the
ShowCursor flag. Without that tview change, this config flag has no
visible effect. With only the tview change and not this k9s change, the
cursor would appear unconditionally — so both changes are needed
together to keep the default behavior unchanged.

To enable:
  # ~/.config/k9s/config.yaml
  k9s:
    ui:
      enablePromptCursor: true

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale label Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant