yera.runtime.handlers.form_echo.ansi
ANSI form echo handler: prints one form submission at the terminal.
Symbols
ANSIFormEchoHandler
Inherits:
BaseHandlerPrints a form submission's outcome and its visible answers.
Methods
ANSIFormEchoHandler.__init__
__init__(
console: Console,
) → NoneInitialize the handler with its destination terminal console.
Parameters
console
type: Console
Rich console used to render submitted form values.
ANSIFormEchoHandler.push
push(
event: OutputEvent,
) → NonePrint the form echo.
Parameters
event
type: OutputEvent
An output event carrying FormEchoData.
Raises
TypeError
If the event data is not FormEchoData.