You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defprompt(self, prompt_text: str) ->str:
"""Prompt user with prompt text."""returnstr(
prompt(
message=ANSI(f'{ChatColours.GRN.value}{prompt_text}{ChatColours.RST.value}'),
placeholder=ANSI(f'{ChatColours.GRY.value}Some prompt text...{ChatColours.RST.value}'),
)
)
It will give you output similar to this when holding the enter key:
This is misleading as it gives the impression that all lines are active and accepting input.
I recommend a change to make it so that only the last line (ie the only line accepting input) shows the placeholder text.
For example, it should be similar to this:
The text was updated successfully, but these errors were encountered:
Currently, when you use prompt like this:
It will give you output similar to this when holding the enter key:

This is misleading as it gives the impression that all lines are active and accepting input.
I recommend a change to make it so that only the last line (ie the only line accepting input) shows the placeholder text.

For example, it should be similar to this:
The text was updated successfully, but these errors were encountered: