feat(tui): support configurable cursor style, blink, and color#16939
feat(tui): support configurable cursor style, blink, and color#16939fanyu wants to merge 5 commits intoanomalyco:devfrom
Conversation
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
Updated ✅ I have revised the PR description to match the required template sections:\n\n- ### What does this PR do?\n- ### How did you verify your code works?\n\nPlease re-check compliance. |
|
I shortened and rewrote the PR description using the exact template headings. It now includes only:\n\n- ### What does this PR do?\n- ### How did you verify your code works?\n\nCould the compliance check please rerun? If this still fails, I may need maintainer help to confirm the checker rules. |
5324ed1 to
89a7e47
Compare
|
Update: typecheck is now passing after the cursor config type fixes.\n\nCurrent failures are e2e on both linux/windows:\n- e2e/prompt/prompt-slash-terminal.spec.ts › /terminal toggles the terminal panel\n- e2e/settings/settings-keybinds.spec.ts › changing terminal toggle keybind works\n\nThese failures are in app terminal-toggle behavior; this PR only touches TUI cursor config + docs in and config schema/docs.\n\nIf needed, I can rebase again and/or help bisect, but this looks unrelated to the cursor-style change scope. |
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window. Feel free to open a new pull request that follows our guidelines. |
What does this PR do?
Fixes #11305.
It adds configurable TUI cursor settings in
opencode.json:tui.cursor_style(block|line|underline)tui.cursor_blink(boolean)tui.cursor_color(hex like#FF5733or theme key likeprimary)It applies these settings to all TUI textareas I found in opencode:
I also added a small shared helper (
resolveTextareaCursor) to keep behavior consistent and updatedconfig.mdx+tui.mdxdocs.How did you verify your code works?
src/config/config.tsfor all three new fields.cursorStyleand resolvedcursorColor.theme.primaryvstheme.text).bunis not available in this environment.