InquirerWaitForKey
Bases: InquirerWidget
A prompt that waits for the user to press a key.
__init__(message, key='enter', name=None, mandatory=False)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
The prompt message to display. |
required |
key
|
str
|
The key to wait for (default is 'enter'). |
'enter'
|
name
|
str | None
|
The name of the prompt. |
None
|
mandatory
|
bool
|
Whether a response is mandatory. |
False
|