14
0

Accepting request 641843 from home:apersaud:branches:devel:languages:python

update to latest version

OBS-URL: https://build.opensuse.org/request/show/641843
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-prompt_toolkit?expand=0&rev=19
This commit is contained in:
Todd R
2018-10-13 20:46:09 +00:00
committed by Git OBS Bridge
parent a230677831
commit 724a6b63af
4 changed files with 60 additions and 6 deletions

View File

@@ -1,3 +1,57 @@
-------------------------------------------------------------------
Sat Oct 13 16:03:06 UTC 2018 - Arun Persaud <arun@gmx.de>
- update to version 2.0.6:
* 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`:
o Exposed `focus_on_click`.
o Added attributes: `auto_suggest`, `complete_while_typing`,
`history`, `get_line_prefix`, `input_processors`.
o Made attributes writable: `lexer`, `completer`,
`complete_while_typing`, `accept_handler`, `read_only`,
`wrap_lines`.
- changes from version 2.0.5:
* Bug fixes:
+ Fix in `DynamicContainer`. Return correct result for
`get_children`. This fixes a bug related to focusing.
+ Properly compute length of `start`, `end` and `sym_b` characters
of progress bar.
+ CPR (cursor position request) fix.
* Backwards incompatible changes:
+ Stop restoring `PromptSession` attributes when exiting prompt.
* New features:
+ Added `get_line_prefix` attribute to window. This opens many
possibilities:
o Line wrapping (soft and hard) can insert whitespace in front of
the line, or insert some symbols in front. Like the Vim
"breakindent" option.
o Single line prompts also support line continuations now.
o Line continuations can have a variable width.
+ For VI mode: implemented temporary normal mode (control-O in
insert mode).
+ Added style transformations API. Useful for swapping between
light and dark color schemes. Added `swap_light_and_dark_colors`
parameter to `prompt()` function.
+ Added `format()` method to ANSI formatted text.
+ Set cursor position for Button widgets.
+ Added `pre_run` argument to `PromptSession.prompt()` method.
-------------------------------------------------------------------
Fri Sep 28 03:43:16 UTC 2018 - Todd R <toddrme2178@gmail.com>