python-prompt-toolkit v2.0.6 Release Notes

Release Date: 2018-10-12 // over 5 years ago
  • ๐Ÿ› Bug fixes:

    • Don't use the predefined ANSI colors for colors that are defined as RGB. (Terminals can assign different color schemes for ansi colors, and we don't want use any of those for colors that are defined like #aabbcc for instance.)
    • ๐Ÿ›  Fix in handling of CPRs when patch_stdout is used.

    Backwards incompatible changes:

    • ๐Ÿ”„ Change to the Buffer class. Reset the buffer unless the accept_handler returns True (which means: "keep_text"). This doesn't affect applications that use PromptSession.

    ๐Ÿ†• New features:

    • โž• Added AdjustBrightnessStyleTransformation. This is a simple style transformation that improves the rendering on terminals with light or dark background.
    • ๐Ÿ‘Œ Improved performance (string width caching and line height calculation).
    • ๐Ÿ‘Œ Improved TextArea:
      • Exposed focus_on_click.
      • Added attributes: auto_suggest, complete_while_typing, history, get_line_prefix, input_processors.
      • Made attributes writable: lexer, completer, complete_while_typing, accept_handler, read_only, wrap_lines.