mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 15:31:27 +00:00
Iterm refactor (#33)
* Add a warning about the flickering in iTerm. * Move the iterm warning out of App.tsx.
This commit is contained in:
parent
52683dafc3
commit
dfae3f6284
2 changed files with 18 additions and 0 deletions
16
packages/cli/src/ui/utils/itermDetection.tsx
Normal file
16
packages/cli/src/ui/utils/itermDetection.tsx
Normal file
|
|
@ -0,0 +1,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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue