summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-12-04 06:56:48 -0600
committerAdam <[email protected]>2025-12-04 06:56:48 -0600
commit1d6e3d477b00df5c114903d30da31a3405f9ad5d (patch)
treeb5d526e032966268bff48406b237e6df3354db64
parentefbb973393755143ee35a5a8d3414744d1ddb910 (diff)
downloadopencode-1d6e3d477b00df5c114903d30da31a3405f9ad5d.tar.gz
opencode-1d6e3d477b00df5c114903d30da31a3405f9ad5d.zip
fix(tui): cursor color
-rw-r--r--packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
index 7271e2fc6..37603ffa7 100644
--- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
+++ b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
@@ -269,7 +269,7 @@ export function Prompt(props: PromptProps) {
createEffect(() => {
if (props.disabled) input.cursorColor = theme.backgroundElement
- if (!props.disabled) input.cursorColor = theme.primary
+ if (!props.disabled) input.cursorColor = theme.text
})
const [store, setStore] = createStore<{
@@ -805,12 +805,12 @@ export function Prompt(props: PromptProps) {
ref={(r: TextareaRenderable) => {
input = r
setTimeout(() => {
- input.cursorColor = highlight()
+ input.cursorColor = theme.text
}, 0)
}}
onMouseDown={(r: MouseEvent) => r.target?.focus()}
focusedBackgroundColor={theme.backgroundElement}
- cursorColor={highlight()}
+ cursorColor={theme.text}
syntaxStyle={syntax()}
/>
<box flexDirection="row" flexShrink={0} paddingTop={1} gap={1}>