[PR #11300] feat: add configurable cursor style for TUI textareas #13731

Open
opened 2026-02-16 18:18:34 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11300

State: open
Merged: No


Closes #11305
Fixes #1905

Summary

  • Add cursor_style and cursor_blink configuration options to the TUI config schema
  • Apply cursor style settings to all textarea components across the TUI
  • Regenerate SDK types to include new config options

Configuration

Users can now customize the cursor appearance in their opencode.json:

{
  "tui": {
    "cursor_style": "underline",
    "cursor_blink": false
  }
}

Options

  • cursor_style: "block" | "line" | "underline" (default: "block")
  • cursor_blink: boolean (default: true)

Files Changed

  • packages/opencode/src/config/config.ts - Added config schema options
  • packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx - Main prompt textarea
  • packages/opencode/src/cli/cmd/tui/routes/session/question.tsx - Question textarea
  • packages/opencode/src/cli/cmd/tui/routes/session/permission.tsx - RejectPrompt textarea
  • packages/opencode/src/cli/cmd/tui/ui/dialog-prompt.tsx - Dialog prompt textarea
  • packages/opencode/src/cli/cmd/tui/ui/dialog-export-options.tsx - Export options textarea
  • packages/sdk/js/src/v2/gen/types.gen.ts - Regenerated SDK types
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11300 **State:** open **Merged:** No --- Closes #11305 Fixes #1905 ## Summary - Add `cursor_style` and `cursor_blink` configuration options to the TUI config schema - Apply cursor style settings to all textarea components across the TUI - Regenerate SDK types to include new config options ## Configuration Users can now customize the cursor appearance in their `opencode.json`: ```json { "tui": { "cursor_style": "underline", "cursor_blink": false } } ``` ### Options - `cursor_style`: `"block"` | `"line"` | `"underline"` (default: `"block"`) - `cursor_blink`: `boolean` (default: `true`) ## Files Changed - `packages/opencode/src/config/config.ts` - Added config schema options - `packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx` - Main prompt textarea - `packages/opencode/src/cli/cmd/tui/routes/session/question.tsx` - Question textarea - `packages/opencode/src/cli/cmd/tui/routes/session/permission.tsx` - RejectPrompt textarea - `packages/opencode/src/cli/cmd/tui/ui/dialog-prompt.tsx` - Dialog prompt textarea - `packages/opencode/src/cli/cmd/tui/ui/dialog-export-options.tsx` - Export options textarea - `packages/sdk/js/src/v2/gen/types.gen.ts` - Regenerated SDK types
yindo added the pull-request label 2026-02-16 18:18:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13731