GitHub

Handlers

API reference for Handlers.

A custom prompt's three steps: render the frame for an action, process one input into an action, clear the previous frame.

Attributes

AttributeTypeDescription
renderCallable[[S, Action[S, Out]], Effect[str, Never, PromptEnvironment]]
processCallable[[I_contra, S], Effect[Action[S, Out], Never, PromptEnvironment]]
clearCallable[[S, Action[S, Out]], Effect[str, Never, PromptEnvironment]]

Functions

__init__

__init__(render, process, clear) -> None
ParameterTypeDescription
renderCallable[[S, Action[S, Out]], Effect[str, Never, PromptEnvironment]]
processCallable[[I_contra, S], Effect[Action[S, Out], Never, PromptEnvironment]]
clearCallable[[S, Action[S, Out]], Effect[str, Never, PromptEnvironment]]