All Versions
98
Latest Version
Avg Release Cycle
29 days
Latest Release
512 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.