mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-19 07:46:45 -07:00
21 lines
437 B
TypeScript
21 lines
437 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { Box, Text } from 'ink';
|
|
|
|
export const ITermDetectionWarning: React.FC = () => {
|
|
if (process.env.TERM_PROGRAM !== 'iTerm.app') {
|
|
return null; // Don't render anything if not in iTerm
|
|
}
|
|
|
|
return (
|
|
<Box marginTop={1}>
|
|
<Text dimColor>Note: Flickering may occur in iTerm.</Text>
|
|
</Box>
|
|
);
|
|
};
|