Skip to content
Advertisement

Tag: highlight

How to highlight in rich.prompt.Prompt

I have this highlighter If I do something like console.print() it gives the custom highlighting but it dosen’t give custom highlighting for rich.prompt.Prompt.ask() How can I get the highlighter for rich.prompt.Prompt.ask() Answer Are you expecting the text you enter to be highlighted as you type? Rich doesn’t have that capability. You might want to look in to prompt_toolkit for that.

Advertisement