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
I propose making the REPL prompt customizable, so the user can more easily find their previous questions and answers when scrolling back over a long REPL session.
The user will be able to change the prompt characters, add newlines for whitespace, and add color using the Rich library:
Current State
The REPL prompt is just >>>, and previous questions and answers can be hard to spot:
Details
I've made a prototype already. I changed ReplHandler to use a rich.prompt.Prompt. The user can specify a new REPL prompt by adding this variable to the config file:
REPL_PROMPT="\n[white on grey] >>> [/white on grey] "
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Proposal
I propose making the REPL prompt customizable, so the user can more easily find their previous questions and answers when scrolling back over a long REPL session.
The user will be able to change the prompt characters, add newlines for whitespace, and add color using the Rich library:
Current State
The REPL prompt is just
>>>
, and previous questions and answers can be hard to spot:Details
I've made a prototype already. I changed
ReplHandler
to use arich.prompt.Prompt
. The user can specify a new REPL prompt by adding this variable to the config file:Beta Was this translation helpful? Give feedback.
All reactions