All Versions
98
Latest Version
Avg Release Cycle
29 days
Latest Release
527 days ago

Changelog History
Page 1

  • v3.0.32 Changes

    November 03, 2022

    🐛 Bug fixes:

    • 0️⃣ Use DummyInput by default in create_input() if sys.stdin does not have a valid file descriptor. This fixes errors when sys.stdin is patched in certain situations.
    • 🛠 Fix control-c key binding for ProgressBar when the progress bar was not created from the main thread. The current code would try to kill the main thread when control-c was pressed.

    🆕 New features:

    • Accept a cancel_callback in ProgressBar to specify the cancellation behavior for when control-c is pressed.
    • 🐎 Small performance improvement in the renderer.
  • v3.0.31 Changes

    September 02, 2022

    🆕 New features:

    • Pass through name property in TextArea widget to Buffer.
    • Added a enable_cpr parameter to Vt100_Output, TelnetServer and PromptToolkitSSHServer, to completely disable CPR support instead of automatically detecting it.
  • v3.0.30 Changes

    June 27, 2022

    🆕 New features:

    • Allow zero-width-escape sequences in print_formatted_text.
    • ➕ Add default value option for input dialog.
    • ➕ Added has_suggestion filter.

    🛠 Fixes:

    • 🛠 Fix rendering of control-shift-6 (or control-). Render as ''
    • 0️⃣ Always wrap lines in the Label widget by default.
    • 🛠 Fix enter key binding in system toolbar in Vi mode.
    • 👌 Improved handling of stdout objects that don't have a 'buffer' attribute. For instance, when using renderer_print_formatted_text in a Jupyter Notebook.
  • v3.0.29 Changes

    April 04, 2022

    🆕 New features:

    • Accept 'handle_sigint' parameter in PromptSession.

    🛠 Fixes

    • 🛠 Fix 'variable referenced before assignment' error in vt100 mouse bindings.
    • Pass handle_sigint from Application.run to Application.run_async.
    • 🛠 Fix detection of telnet client side changes.
    • 🛠 Fix print_container utility (handle EOFError).

    💥 Breaking changes:

    • The following are now context managers: create_pipe_input, PosixPipeInput and Win32PipeInput.
  • v3.0.28 Changes

    February 11, 2022

    🆕 New features:

    • 👌 Support format specifiers for HTML and ANSI formatted text.
    • 🔊 Accept defaults for checkbox and radio list, and their corresponding dialogs.

    🛠 Fixes:

    • 🛠 Fix resetting of cursor shape after the application terminates.
  • v3.0.27 Changes

    February 07, 2022

    🆕 New features:

    • 👌 Support for cursor shapes. The cursor shape for prompts/applications can now be configured, either as a fixed cursor shape, or in case of Vi input mode, according to the current input mode.
    • 🖐 Handle "cursor forward" command in ANSI formatted text. This makes it possible to render many kinds of generated ANSI art.
    • Accept align attribute in Label widget.
    • ➕ Added PlainTextOutput: an output implementation that doesn't render any ANSI escape sequences. This will be used by default when redirecting stdout to a file.
    • Added create_app_session_from_tty: a context manager that enforces input/output to go to the current TTY, even if stdin/stdout are attached to pipes.
    • Added to_plain_text utility for converting formatted text into plain text.

    🛠 Fixes:

    • Don't automatically use sys.stderr for output when sys.stdout is not a TTY, but sys.stderr is. The previous behavior was confusing, especially when rendering formatted text to the output, and we expect it to follow redirection.
  • v3.0.26 Changes

    January 27, 2022

    🛠 Fixes:

    • 🛠 Fixes issue introduced in 3.0.25: Don't handle SIGINT on Windows.
  • v3.0.25 Changes

    January 27, 2022

    🛠 Fixes:

    • 👉 Use DummyOutput when sys.stdout is None and DummyInput when sys.stdin is None. This fixes an issue when the code runs on windows, using pythonw.exe and still tries to interact with the terminal.
    • Correctly reset Application._is_running flag in case of exceptions in some situations.
    • 🖐 Handle SIGINT (when sent from another process) and allow binding it to a key binding. For prompt sessions, the behavior is now identical to pressing control-c.
    • Increase the event loop slow_duration_callback by default to 0.5. This prevents printing warnings if rendering takes too long on slow systems.
  • v3.0.24 Changes

    December 09, 2021

    🛠 Fixes:

    • Prevent window content overflowing when using scrollbars.
    • 🖐 Handle PermissionError when trying to attach /dev/null in vt100 input.
  • v3.0.23 Changes

    November 26, 2021

    🛠 Fixes:

    • 🛠 Fix multiline bracketed paste on Windows

    🆕 New features:

    • ➕ Add support for some CSI 27 modified variants of "Enter" for xterm in the vt100 input parser.