python-prompt-toolkit v3.0.8 Release Notes

Release Date: 2020-10-12 // 5 months ago
  • ๐Ÿ†• 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.

Previous changes from v3.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.