mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-17 09:30:58 -07:00
feat: Detect background color (#15132)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
import { useState } from 'react';
|
||||
import { isKittyProtocolEnabled } from '../utils/kittyProtocolDetector.js';
|
||||
import { terminalCapabilityManager } from '../utils/terminalCapabilityManager.js';
|
||||
|
||||
export interface KittyProtocolStatus {
|
||||
enabled: boolean;
|
||||
@@ -18,7 +18,7 @@ export interface KittyProtocolStatus {
|
||||
*/
|
||||
export function useKittyKeyboardProtocol(): KittyProtocolStatus {
|
||||
const [status] = useState<KittyProtocolStatus>({
|
||||
enabled: isKittyProtocolEnabled(),
|
||||
enabled: terminalCapabilityManager.isKittyProtocolEnabled(),
|
||||
checking: false,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user