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

Function handleTextRender

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

Source from the content-addressed store, hash-verified

3930}
3931
3932const handleTextRender = (options: TextOptionsReq) => {
3933 return (state: TextState, action: Action<TextState, string>) => {
3934 return Action.$match(action, {
3935 Beep: () => Effect.succeed(renderBeep),
3936 NextFrame: ({ state }) => renderTextNextFrame(state, options),
3937 Submit: () => renderTextSubmission(state, options)
3938 })
3939 }
3940}
3941
3942const handleTextProcess = (options: TextOptionsReq) => {
3943 return (input: Terminal.UserInput, state: TextState) => {

Callers 1

basePromptFunction · 0.85

Calls 1

succeedMethod · 0.45

Tested by

no test coverage detected