2021-06-10 09:08:56 by Adam Ciarcinski | Files touched by this commit (7) | |
Log message: py-prompt_toolkit: moved version 3.0.18 from py-prompt_toolkit2 |
2021-05-05 10:41:33 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message: py-prompt_toolkit: updated to 3.0.18 3.0.18: 2021-03-22 ------------------ New features: - Added `in_thread` parameter to `Application.run`. This is useful for running an application in a background thread, while the main thread blocks. This way, we are sure not to interfere with an event loop in the current thread. (This simplifies some code in ptpython and fixes an issue regarding leaking file descriptors due to not closing the event loop that was created in this background thread.) 3.0.17: 2021-03-11 ------------------ New features: - Accept `style` parameter in `print_container` utility. - On Windows, handle Control-Delete. Fixes: - Avoid leaking file descriptors in SSH server. 3.0.16: 2021-02-11 ------------------ New features: - Added `ScrollablePane`: a scrollable layout container. This allows applications to build a layout, larger than the terminal, with a vertical scroll bar. The vertical scrolling will be done automatically when certain widgets receive the focus. - Added `DeduplicateCompleter and `ConditionalCompleter`. - Added `deduplicate` argument to `merge_completers`. |
2021-02-11 13:44:02 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message: py-prompt_toolkit2: updated to 3.0.15 3.0.15: 2021-02-10 ------------------ Fixes: - Set stdout blocking when writing in vt100 output. Fixes an issue when uvloop is used and big amounts of text are written. - Guarantee height of at least 1 for both labels and text areas. - In the `Window` rendering, take `dont_extend_width`/`dont_extend_height` into account. This fixes issues where one window is enlarged unexpectedly because it's bundled with another window in a `HSplit`/`VSplit`, but with different width/height. - Don't handle `SIGWINCH` in progress bar anymore. (The UI runs in another thread, and we have terminal size polling now). - Fix several thread safety issues and a race condition in the progress bar. - Fix thread safety issues in `Application.invalidate()`. (Fixes a `RuntimeError` in some situations when using progress bars.) - Fix handling of mouse events on Windows if we have a Windows 10 console with ANSI support. - Disable `QUICK_EDIT_MODE` on Windows 10 when mouse support is requested. 3.0.14: 2021-01-24 ------------------ New features: - Disable bell when `PROMPT_TOOLKIT_BELL=false` environment variable has been set. Fixes: - Improve cancellation of history loading. 3.0.13: 2021-01-21 ------------------ Fixes: - Again, fixed the race condition in `ThreadedHistory`. Previous fix was not correct. 3.0.12: 2021-01-21 ------------------ 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). 3.0.11: 2021-01-20 ------------------ 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 when `StdoutProxy` 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 of `PatchStdout`. - 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. |
2021-01-16 09:45:53 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message: py-prompt_toolkit2: updated to 3.0.10 3.0.10: New features: - Improved `WordCompleter`: accept `display_dict`. Also accept formatted text for both `display_dict` and `meta_dict`. - Allow customization of button arrows. Fixes: - Correctly recognize backtab on Windows. - Show original display text in fuzzy completer if no filtering was done. 3.0.9: 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. |
2020-10-13 13:09:25 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message: py-prompt_toolkit2: updated to 3.0.8 3.0.8: New features: - Added `validator` parameter to `input_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. |
2020-09-08 19:36:58 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message: py-prompt_toolkit2: updated to 3.0.7 3.0.7: New features: - New "placeholder" parameter added to `PromptSession`. Other changes: - The "respond to CPR" logic has been moved from the `Input` to `Output` 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`. |
2020-08-11 08:34:54 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message: py-prompt_toolkit2: updated to 3.0.6 3.0.6: New features: - The SSH/Telnet adaptors have been refactored and improved in several ways. * Handle terminal types for both telnet and SSH sessions. * Added pipe input abstraction. (base class for `PosixPipeInput` and `Win32PipeInput`). * The color depth logic has been refactored and moved to the `Output` implementations. Added `get_default_color_depth` method to `Output` 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: - 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. |
2020-03-30 15:07:12 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message: py-prompt_toolkit2: updated to 3.0.5 3.0.5: Fixes: - Bugfix in mouse handling on Windows. |
2020-03-07 13:14:37 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message: py-prompt_toolkit2: updated to 3.0.4 3.0.4: 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 to `PromptSession.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` in `Application.run` to the `run_async` call. - Bugfix in `NestedCompleter` when there is a leading space. Breaking changes: - `ShiftControl` has been replaced with `ControlShift` and `s-c` with `c-s` in key bindings. Aliases for backwards-compatibility have been added. |
2020-01-28 09:01:51 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message: py-prompt_toolkit2: updated to 3.0.3 3.0.3: 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` and `max_brightness`. - Added `always_prefer_tty` parameters to `create_input()` and `create_output()`. - Create a new event loop in `Application.run()` if `get_event_loop()` raises `Runtimeerror`. 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. (was `current-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. |