Files
qwen-code/packages/cli/src/ui/utils/itermDetection.tsx
Taylor Mullen 40e11e053c Fix remaining tslint errors (YAY).
- Also updated ci.yml to ensure that linting failures will break the build.

Fully fixes https://b.corp.google.com/issues/411384603
2025-04-18 19:14:36 -04:00

15 lines
348 B
TypeScript

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>
);
};