(options: TextOptionsReq)
| 3666 | } |
| 3667 | |
| 3668 | const 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 | |
| 3678 | const handleTextProcess = (options: TextOptionsReq) => { |
| 3679 | return (input: Terminal.UserInput, state: TextState) => { |