mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-01 05:00:46 +00:00
Handle stdin for prompts using readline for escape character parsing (#1972)
This commit is contained in:
parent
5fd6664c4b
commit
4fbffdf617
6 changed files with 352 additions and 86 deletions
|
|
@ -63,6 +63,7 @@ import {
|
|||
useSessionStats,
|
||||
} from './contexts/SessionContext.js';
|
||||
import { useGitBranchName } from './hooks/useGitBranchName.js';
|
||||
import { useBracketedPaste } from './hooks/useBracketedPaste.js';
|
||||
import { useTextBuffer } from './components/shared/text-buffer.js';
|
||||
import * as fs from 'fs';
|
||||
import { UpdateNotification } from './components/UpdateNotification.js';
|
||||
|
|
@ -86,6 +87,7 @@ export const AppWrapper = (props: AppProps) => (
|
|||
);
|
||||
|
||||
const App = ({ config, settings, startupWarnings = [] }: AppProps) => {
|
||||
useBracketedPaste();
|
||||
const [updateMessage, setUpdateMessage] = useState<string | null>(null);
|
||||
const { stdout } = useStdout();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue