Cross-link the console API from prompts

This commit is contained in:
Felipe S. S. Schneider 2021-10-31 12:53:51 -03:00
parent eac0767676
commit 313ee3fa9b
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
Prompt
======
Rich has a number of :class:`~rich.prompt.Prompt` classes which ask a user for input and loop until a valid response is received. Here's a simple example::
Rich has a number of :class:`~rich.prompt.Prompt` classes which ask a user for input and loop until a valid response is received (they all use the :ref:`Console API<Input>` internally). Here's a simple example::
>>> from rich.prompt import Prompt
>>> name = Prompt.ask("Enter your name")