blob: 9a847724b1b5550503db95f6bb80783d5e093e1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import React from 'react';
import { Box, Text } from 'ink';
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>
);
};
export default ITermDetectionWarning;
|