python-prompt-toolkit v3.0.32 Release Notes

Release Date: 2022-11-03 // over 3 years ago
  • 🐛 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.

Previous changes from v3.0.31

  • 🆕 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.