diff options
| author | Deepankar Sharma <[email protected]> | 2025-08-13 13:32:54 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-13 17:32:54 +0000 |
| commit | 9c7fb870c1a7c80741fafdfc6837d4b92e373b2d (patch) | |
| tree | 1e31f201520c9724b4659ee7a36c21215e6280b9 /packages/cli/src/ui/hooks/useFocus.ts | |
| parent | 74a13fb535b255797d6c9aa3499acfea6aadc58d (diff) | |
Add terminal setup command for Shift+Enter and Ctrl+Enter support (#3289)
Co-authored-by: jacob314 <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/hooks/useFocus.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/useFocus.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/cli/src/ui/hooks/useFocus.ts b/packages/cli/src/ui/hooks/useFocus.ts index 6c9a6daa..8a7f9f6c 100644 --- a/packages/cli/src/ui/hooks/useFocus.ts +++ b/packages/cli/src/ui/hooks/useFocus.ts @@ -8,12 +8,12 @@ import { useStdin, useStdout } from 'ink'; import { useEffect, useState } from 'react'; // ANSI escape codes to enable/disable terminal focus reporting -const ENABLE_FOCUS_REPORTING = '\x1b[?1004h'; -const DISABLE_FOCUS_REPORTING = '\x1b[?1004l'; +export const ENABLE_FOCUS_REPORTING = '\x1b[?1004h'; +export const DISABLE_FOCUS_REPORTING = '\x1b[?1004l'; // ANSI escape codes for focus events -const FOCUS_IN = '\x1b[I'; -const FOCUS_OUT = '\x1b[O'; +export const FOCUS_IN = '\x1b[I'; +export const FOCUS_OUT = '\x1b[O'; export const useFocus = () => { const { stdin } = useStdin(); |
