feat(ui): hide cursor when terminal is unfocused (#4012)

This commit is contained in:
Keith Lyons
2025-07-17 20:45:42 -04:00
committed by GitHub
parent 584a50a342
commit 8ade3e7ee2
4 changed files with 171 additions and 1 deletions

View File

@@ -453,7 +453,7 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
display = display + ' '.repeat(inputWidth - currentVisualWidth);
}
if (visualIdxInRenderedSet === cursorVisualRow) {
if (focus && visualIdxInRenderedSet === cursorVisualRow) {
const relativeVisualColForHighlight = cursorVisualColAbsolute;
if (relativeVisualColForHighlight >= 0) {