mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 03:24:42 -07:00
feat(ui): add terminal cursor support (#17711)
This commit is contained in:
@@ -17,6 +17,7 @@ import {
|
||||
cpSlice,
|
||||
cpLen,
|
||||
stripUnsafeCharacters,
|
||||
cpIndexToOffset,
|
||||
} from '../../utils/textUtils.js';
|
||||
import { useKeypress, type Key } from '../../hooks/useKeypress.js';
|
||||
import { keyMatchers, Command } from '../../keyMatchers.js';
|
||||
@@ -558,6 +559,13 @@ export function BaseSettingsDialog({
|
||||
? theme.text.secondary
|
||||
: theme.text.primary
|
||||
}
|
||||
terminalCursorFocus={
|
||||
editingKey === item.key && cursorVisible
|
||||
}
|
||||
terminalCursorPosition={cpIndexToOffset(
|
||||
editBuffer,
|
||||
editCursorPos,
|
||||
)}
|
||||
>
|
||||
{displayValue}
|
||||
</Text>
|
||||
|
||||
Reference in New Issue
Block a user