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

Function defaultShouldQuit

packages/platform/node-shared/src/NodeTerminal.ts:176–178  ·  view source on GitHub ↗
(input: Terminal.UserInput)

Source from the content-addressed store, hash-verified

174export const layer: Layer.Layer<Terminal.Terminal> = Layer.effect(Terminal.Terminal, make(defaultShouldQuit))
175
176function defaultShouldQuit(input: Terminal.UserInput) {
177 return input.key.ctrl && (input.key.name === "c" || input.key.name === "d")
178}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected