python-prompt-toolkit v2.0.5 Release Notes
Release Date: 2018-09-30 // over 5 years ago-
๐ Bug fixes:
- ๐ Fix in
DynamicContainer
. Return correct result forget_children
. This fixes a bug related to focusing. - Properly compute length of
start
,end
andsym_b
characters of progress bar. - CPR (cursor position request) fix.
Backwards incompatible changes:
- Stop restoring
PromptSession
attributes when exiting prompt.
๐ New features:
- Added
get_line_prefix
attribute to window. This opens many possibilities:- Line wrapping (soft and hard) can insert whitespace in front of the line, or insert some symbols in front. Like the Vim "breakindent" option.
- Single line prompts also support line continuations now.
- Line continuations can have a variable width.
- For VI mode: implemented temporary normal mode (control-O in insert mode).
- โ Added style transformations API. Useful for swapping between light and
dark color schemes. Added
swap_light_and_dark_colors
parameter toprompt()
function. - โ Added
format()
method to ANSI formatted text. - Set cursor position for Button widgets.
- โ Added
pre_run
argument toPromptSession.prompt()
method.
- ๐ Fix in