mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
- Update InputPrompt.tsx to handle Esc key for exiting shell mode. - Modify ShellModeIndicator.tsx to reflect the new keybinding. Fixes https://buganizer.corp.google.com/issues/419087952
19 lines
403 B
TypeScript
19 lines
403 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { Box, Text } from 'ink';
|
|
import { Colors } from '../colors.js';
|
|
|
|
export const ShellModeIndicator: React.FC = () => (
|
|
<Box>
|
|
<Text color={Colors.AccentYellow}>
|
|
shell mode enabled
|
|
<Text color={Colors.SubtleComment}> (esc to disable)</Text>
|
|
</Text>
|
|
</Box>
|
|
);
|