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

Function handleTextRender

packages/effect/src/unstable/cli/Prompt.ts:3668–3676  ·  view source on GitHub ↗
(options: TextOptionsReq)

Source from the content-addressed store, hash-verified

3666}
3667
3668const handleTextRender = (options: TextOptionsReq) => {
3669 return (state: TextState, action: Action<TextState, string>) => {
3670 return Action.$match(action, {
3671 Beep: () => Effect.succeed(renderBeep),
3672 NextFrame: ({ state }) => renderTextNextFrame(state, options),
3673 Submit: () => renderTextSubmission(state, options)
3674 })
3675 }
3676}
3677
3678const handleTextProcess = (options: TextOptionsReq) => {
3679 return (input: Terminal.UserInput, state: TextState) => {

Callers 1

basePromptFunction · 0.85

Calls 1

succeedMethod · 0.45

Tested by

no test coverage detected