Release notes¶
Version 0.2.0 (2026-07-13)¶
Build changes¶
Switched keyboard input from
readchartoblessed, which resolves key sequences across more terminals.
API changes¶
Added
viewport_sizeparameter toSelectandMultiSelectto cap the number of choices visible at once (at least 3). By default, prompts fit as many choices as the terminal height allows.The
numberedparameter ofSelectandMultiSelectnow defaults toNone, which shows numbers only when the prompt has at most 9 choices and they all fit in the viewport. PassTrueorFalseto force numbers (and digit shortcuts) on or off.Added
richer_prompt.testing.simulate_keys()to simulate keyboard input when testing code that runs prompts.Added the
richer_prompt.keysmodule of key tokens (e.g.keys.DOWN,keys.ENTER) to pass toricher_prompt.testing.simulate_keys().Added support for vim key bindings and Home/End keys to jump to the first/last row of a prompt.
Fixes¶
Importing
richer_promptno longer touchesrichglobal state, and styling now resolves at prompt time.Prompts raise
NotInteractiveErrorwhen standard input is not an interactive terminal, instead of crashing with a cryptictermioserror.Ctrl+C raises
KeyboardInterruptand Ctrl+D (or Ctrl+Z on Windows) raisesEOFErrorwhile a prompt is running.Removed unused style names from the docs.
Version 0.1.0 (2026-06-13)¶
First public release of richer-prompt.