All Versions
98
Latest Version
Avg Release Cycle
29 days
Latest Release
591 days ago
Changelog History
Page 3
Changelog History
Page 3
-
v3.0.12 Changes
January 21, 2021๐ Fixes:
- ๐ Fixed a race condition in
ThreadedHistory
that happens when continuously pasting input text (which would continously repopulate the history). - ๐ Move cursor key mode resetting (for vt100 terminals) to the renderer. (Mostly cleanup).
- ๐ Fixed a race condition in
-
v3.0.11 Changes
January 20, 2021๐ New features:
- ๐ Poll terminal size: better handle resize events when the application runs in a thread other than the main thread (where handling SIGWINCH doesn't work) or in the Windows console.
๐ Fixes:
- ๐ Fix bug in system toolbar. The execution of system commands was broken.
- ๐จ A refactoring of patch_stdout that includes several fixes.
- We know look at the
AppSession
in order to see which application is running, rather then looking at the event loop which is installed whenStdoutProxy
is created. This way,patch_stdout
will work when prompt_toolkit applications with a different event loop run. - Fix printing when no application/event loop is running.
- Fixed the
raw
argument ofPatchStdout
.
- We know look at the
- ๐จ A refactoring of the
ThreadedHistory
, which includes several fixes, in particular a race condition (see issue #1158) that happened when editing input while a big history was still being loaded in the background.
-
v3.0.10 Changes
January 08, 2021๐ New features:
- ๐ Improved
WordCompleter
: acceptdisplay_dict
. Also accept formatted text for bothdisplay_dict
andmeta_dict
. - ๐ Allow customization of button arrows.
๐ Fixes:
- ๐ Correctly recognize backtab on Windows.
- ๐ Show original display text in fuzzy completer if no filtering was done.
- ๐ Improved
-
v3.0.9 Changes
January 05, 2021๐ New features:
- ๐ง Handle c-tab for TERM=linux.
๐ Fixes:
- Improve rendering speed of
print_formatted_text
. (Don't render styling attributes to output between fragments that have identical styling.) - Gracefully handle
FileHistory
decoding errors. - ๐ Prevent asyncio deprecation warnings.
-
v3.0.8 Changes
October 12, 2020๐ New features:
- โ Added
validator
parameter toinput_dialog
.
๐ Fixes:
- Cope with stdout not having a working
fileno
. - ๐ Handle situation when /dev/null is piped into stdin, or when stdin is closed somehow.
- ๐ Fix for telnet/ssh server:
isatty
method was not implemented. - Display correct error when a tuple is passed into
to_formatted_text
. - Pass along WORD parameter in
Document._is_word_before_cursor_complete
. Fixes some key bindings. - ๐ฆ Expose
ProgressBarCounter
in shortcuts module.
- โ Added
-
v3.0.7 Changes
August 29, 2020๐ New features:
- ๐ New "placeholder" parameter added to
PromptSession
.
Other changes:
- ๐ The "respond to CPR" logic has been moved from the
Input
toOutput
classes (this does clean up some code).
๐ Fixes:
- ๐ Bugfix in shift-selection key bindings.
- ๐ Fix hight calculation of
FormattedTextControl
when line wrapping is turned on. - ๐ Fixes for SSH server:
- Missing encoding property.
- Fix failure in "set_line_mode" call.
- Handle
BrokenPipeError
.
- ๐ New "placeholder" parameter added to
-
v3.0.6 Changes
August 10, 2020๐ New features:
- ๐จ The SSH/Telnet adaptors have been refactored and improved in several ways.
See issues #876 and PR #1150 and #1184 on GitHub.
- Handle terminal types for both telnet and SSH sessions.
- Added pipe input abstraction. (base class for
PosixPipeInput
andWin32PipeInput
). - The color depth logic has been refactored and moved to the
Output
implementations. Addedget_default_color_depth
method toOutput
objects. - All line feets are now preceded by a carriage return in the telnet connection stdout.
- Introduce
REPLACE_SINGLE
input mode for Vi key bindings. - ๐ Improvements to the checkbox implementation:
- Hide the scrollbar for a single checkbox.
- Added a "checked" setter to the checkbox.
- Expose
KeyPressEvent
in key_binding/init.py (often used in type annotations). - โก๏ธ The renderer has been optimized so that no trailing spaces are generated (this improves copying in some terminals).
๐ Fixes:
- 0๏ธโฃ Ignore F21..F24 key bindings by default.
- ๐ Fix auto_suggest key bindings when suggestion text is empty.
- ๐ Bugfix in SIGWINCH handling.
- ๐ Handle bug in HSplit/VSplit when the number of children is zero.
- ๐ Bugfix in CPR handling in renderer. Proper cancellation of pending tasks.
- Ensure rprompt aligns with input.
- ๐ Use
sys.stdin.encoding
for decoding stdin stream.
- ๐จ The SSH/Telnet adaptors have been refactored and improved in several ways.
See issues #876 and PR #1150 and #1184 on GitHub.
-
v3.0.5 Changes
March 26, 2020๐ Fixes:
- ๐ Bugfix in mouse handling on Windows.
-
v3.0.4 Changes
March 06, 2020๐ New features:
- โ Added many more vt100 ANSI sequences and keys.
- ๐ Improved control/shift key support in Windows.
- No Mypy errors in prompt_toolkit anymore.
- ๐ป Added
set_exception_handler
optional argument toPromptSession.prompt()
.
๐ Fixes:
- ๐ Bugfix in invalidate code.
PromptSession
was invalidating the UI continuously. - Add uvloop support (was broken due to an issue in our
call_soon_threadsafe
). - ๐ป Forwarded
set_exception_handler
inApplication.run
to therun_async
call. - ๐ Bugfix in
NestedCompleter
when there is a leading space.
๐ฅ Breaking changes:
ShiftControl
has been replaced withControlShift
ands-c
withc-s
in key bindings. Aliases for backwards-compatibility have been added.
-
v3.0.3 Changes
January 26, 2020๐ New features:
- ๐ Improved support for "dumb" terminals.
- โ Added support for new keys (vt100 ANSI sequences): Alt + home/end/page-up/page-down/insert.
- ๐ Better performance for the "regular languages compiler". Generate fewer and better regular expressions. This should improve the start-up time for applications using this feature.
- ๐ Better detection of default color depth.
- ๐ Improved the progress bar:
- Set "time left" to 0 when done or stopped.
- Added
ProgressBarCounter.stopped
.
- Accept callables for
scroll_offset
,min_brightness
andmax_brightness
. - Added
always_prefer_tty
parameters tocreate_input()
andcreate_output()
. - Create a new event loop in
Application.run()
ifget_event_loop()
raisesRuntimeerror
.
๐ Fixes:
- ๐ Correct cancellation of flush timers for input. (Fixes resource leak where too many useless coroutines were created.)
- ๐ Improved the Win32 input event loop. This fixes a bug where the
prompt_toolkit application is stopped by something other than user input. (In
that case, the application would hang, waiting for input.) This also fixes a
RuntimeError
in the progress bar code. - ๐ Fixed
line-number.current
style. (wascurrent-line-number
.) - ๐ Handle situation where stdout is no longer a tty (fix bug in
get_size
). - ๐ Fix parsing of true color in ANSI strings.
- Ignore
invalidate()
if the application is not running.