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

Function getStdin

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

Source from the content-addressed store, hash-verified

14const FOCUS_OUT_EVENT = '\x1b[O'
15
16function getStdin(): ReadStream | null {
17 const stdin = process.stdin as ReadStream | undefined
18 if (!stdin || !stdin.isTTY) {
19 return null
20 }
21 return stdin
22}
23
24function enableFocusReporting(): void {
25 const stdin = getStdin()

Callers 3

enableFocusReportingFunction · 0.85
disableFocusReportingFunction · 0.85
useTerminalFocusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected