mirror of https://github.com/Textualize/rich.git
Distinguish input() method from function
This commit is contained in:
parent
3844ae817b
commit
8f9131c586
|
@ -238,7 +238,7 @@ The :meth:`~rich.console.Console.print` method has a boolean ``crop`` argument.
|
|||
Input
|
||||
-----
|
||||
|
||||
The console class has an :meth:`~rich.console.Console.input` which works in the same way as Python's builtin :func:`input` method, but can use anything that Rich can print as a prompt. For example, here's a colorful prompt with an emoji::
|
||||
The console class has an :meth:`~rich.console.Console.input` method which works in the same way as Python's builtin :func:`input` function, but can use anything that Rich can print as a prompt. For example, here's a colorful prompt with an emoji::
|
||||
|
||||
from rich.console import Console
|
||||
console = Console()
|
||||
|
|
Loading…
Reference in New Issue