mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
- Also updated ci.yml to ensure that linting failures will break the build. Fully fixes https://b.corp.google.com/issues/411384603
15 lines
348 B
TypeScript
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>
|
|
);
|
|
};
|