MCPcopy Create free account
hub / github.com/Effect-TS/effect / shouldQuit

Function shouldQuit

packages/effect/test/unstable/cli/services/MockTerminal.ts:133–134  ·  view source on GitHub ↗
(input: Terminal.UserInput)

Source from the content-addressed store, hash-verified

131// =============================================================================
132
133const shouldQuit = (input: Terminal.UserInput): boolean =>
134 input.key.ctrl && (input.key.name === "c" || input.key.name === "d")
135
136const toUserInput = (
137 key: string,

Callers 2

handleKeypressFunction · 0.85
inputKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected