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

Function enableFocusReporting

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

Source from the content-addressed store, hash-verified

22}
23
24function enableFocusReporting(): void {
25 const stdin = getStdin()
26 if (!stdin) return
27
28 try {
29 process.stdout.write(ENABLE_FOCUS_REPORTING)
30 } catch (error) {
31 logger.debug(error, 'Failed to enable focus reporting')
32 }
33}
34
35function disableFocusReporting(): void {
36 const stdin = getStdin()

Callers 1

useTerminalFocusFunction · 0.85

Calls 1

getStdinFunction · 0.85

Tested by

no test coverage detected