API Reference

adafruit_prompt_toolkit

Slimmed down implementation of prompt_toolkit for CircuitPython

class adafruit_prompt_toolkit.PromptSession(message='', *, input=None, output=None, history=None)

Session for multiple prompts. Stores common arguments to prompt() and history of commands for user selection.

prompt(message=None) str

Prompt the user for input over the session’s input with the given message or the default message.

adafruit_prompt_toolkit.prompt(message='', *, input=None, output=None)

Prompt the user for input over the input stream with the given message output on output. Handles control characters for value editing.