MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / disableFocusReporting

Function disableFocusReporting

cli/src/hooks/use-terminal-focus.ts:35–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35function disableFocusReporting(): void {
36 const stdin = getStdin()
37 if (!stdin) return
38
39 try {
40 process.stdout.write(DISABLE_FOCUS_REPORTING)
41 } catch (error) {
42 logger.debug(error, 'Failed to disable focus reporting')
43 }
44}
45
46export interface UseTerminalFocusOptions {
47 onFocusChange: (focused: boolean) => void

Callers 1

useTerminalFocusFunction · 0.85

Calls 1

getStdinFunction · 0.85

Tested by

no test coverage detected