Blessed

Latest version: v1.20.0

Safety actively analyzes 630052 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 4

1.8

* enhancement: export keyboard-read function as public method ``getch()``,
so that it may be overridden by custom terminal implementers.
* enhancement: allow :meth:`~.inkey` and :meth:`~.kbhit` to return early
when interrupted by signal by passing argument ``_intr_continue=False``.
* enhancement: allow ``hpa`` and ``vpa`` (*move_x*, *move_y*) to work on
tmux(1) or screen(1) by emulating support by proxy.
* enhancement: add :meth:`~.Terminal.rstrip` and :meth:`~.Terminal.lstrip`,
strips both sequences and trailing or leading whitespace, respectively.
* enhancement: include wcwidth_ library support for
:meth:`~.Terminal.length`: the printable width of many kinds of CJK
(Chinese, Japanese, Korean) ideographs and various combining characters
may now be determined.
* enhancement: better support for detecting the length or sequences of
externally-generated *ecma-48* codes when using ``xterm`` or ``aixterm``.
* bugfix: when :func:`locale.getpreferredencoding` returns empty string or
an encoding that is not valid for ``codecs.getincrementaldecoder``,
fallback to ASCII and emit a warning.
* bugfix: ensure :class:`~.FormattingString` and
:class:`~.ParameterizingString` may be pickled.
* bugfix: allow `~.inkey` and related to be called without a keyboard.
* **change**: ``term.keyboard_fd`` is set ``None`` if ``stream`` or
``sys.stdout`` is not a tty, making ``term.inkey()``, ``term.cbreak()``,
``term.raw()``, no-op.
* bugfix: ``\x1bOH`` (KEY_HOME) was incorrectly mapped as KEY_LEFT.

1.7

* Forked github project `erikrose/blessings`_ to `jquast/blessed`_, this
project was previously known as **blessings** version 1.6 and prior.
* introduced: context manager :meth:`~.cbreak`, which is equivalent to
entering terminal state by :func:`tty.setcbreak` and returning
on exit, as well as the lesser recommended :meth:`~.raw`,
pairing from :func:`tty.setraw`.
* introduced: :meth:`~.inkey`, which will return one or more characters
received by the keyboard as a unicode sequence, with additional attributes
:attr:`~.Keystroke.code` and :attr:`~.Keystroke.name`. This allows
application keys (such as the up arrow, or home key) to be detected.
Optional value :paramref:`~.inkey.timeout` allows for timed poll.
* introduced: :meth:`~.Terminal.center`, :meth:`~.Terminal.rjust`,
:meth:`~.Terminal.ljust`, allowing text containing sequences to be aligned
to detected horizontal screen width, or by
:paramref:`~.Terminal.center.width` specified.
* introduced: :meth:`~.wrap` method. Allows text containing sequences to be
word-wrapped without breaking mid-sequence, honoring their printable width.
* introduced: :meth:`~.Terminal.strip`, strips all sequences *and*
whitespace.
* introduced: :meth:`~.Terminal.strip_seqs` strip only sequences.
* introduced: :meth:`~.Terminal.rstrip` and :meth:`~.Terminal.lstrip` strips
both sequences and trailing or leading whitespace, respectively.
* bugfix: cannot call :func:`curses.setupterm` more than once per process
(from :meth:`Terminal.__init__`): Previously, blessed pretended
to support several instances of different Terminal :attr:`~.kind`, but was
actually using the :attr:`~.kind` specified by the first instantiation of
:class:`~.Terminal`. A warning is now issued. Although this is
misbehavior is still allowed, a :class:`warnings.WarningMessage` is now
emitted to notify about subsequent terminal misbehavior.
* bugfix: resolved issue where :attr:`~.number_of_colors` fails when
:attr:`~.does_styling` is ``False``. Resolves issue where piping tests
output would fail.
* bugfix: warn and set :attr:`~.does_styling` to ``False`` when the given
:attr:`~.kind` is not found in the terminal capability database.
* bugfix: allow unsupported terminal capabilities to be callable just as
supported capabilities, so that the return value of
:attr:`~.color`\(n) may be called on terminals without color
capabilities.
* bugfix: for terminals without underline, such as vt220,
``term.underline('text')`` would emit ``'text' + term.normal``.
Now it emits only ``'text'``.
* enhancement: some attributes are now properties, raise exceptions when
assigned.
* enhancement: pypy is now a supported python platform implementation.
* enhancement: removed pokemon ``curses.error`` exceptions.
* enhancement: do not ignore :class:`curses.error` exceptions, unhandled
curses errors are legitimate errors and should be reported as a bug.
* enhancement: converted nose tests to pytest, merged travis and tox.
* enhancement: pytest fixtures, paired with a new ``as_subprocess``
decorator
are used to test a multitude of terminal types.
* enhancement: test accessories ``as_subprocess`` resolves various issues
with different terminal types that previously went untested.
* deprecation: python2.5 is no longer supported (as tox does not supported).

1.6

* Add :attr:`~.does_styling`. This takes :attr:`~.force_styling`
into account and should replace most uses of :attr:`~.is_a_tty`.
* Make :attr:`~.is_a_tty` a read-only property like :attr:`~.does_styling`.
Writing to it never would have done anything constructive.
* Add :meth:`~.fullscreen`` and :meth:`hidden_cursor` to the
auto-generated docs.

1.5.1

* Clean up fabfile, removing the redundant ``test`` command.
* Add Travis support.
* Make ``python setup.py test`` work without spurious errors on 2.6.
* Work around a tox parsing bug in its config file.
* Make context managers clean up after themselves even if there's an
exception (`Vitja Makarov 29 <https://github.com/erikrose/blessings/pull/29>`).
* Parameterizing a capability no longer crashes when there is no tty
(`<Vitja Makarov 31 <https://github.com/erikrose/blessings/pull/31>`)

1.5

* Add syntactic sugar and documentation for ``enter_fullscreen``
and ``exit_fullscreen``.
* Add context managers :meth:`~.fullscreen` and :meth:`~.hidden_cursor`.
* Now you can force a :class:`~.Terminal` to never to emit styles by
passing keyword argument ``force_styling=None``.

1.4

* Add syntactic sugar for cursor visibility control and single-space-movement
capabilities.
* Endorse the :meth:`~.location` context manager for restoring cursor
position after a series of manual movements.
* Fix a bug in which :meth:`~.location` that wouldn't do anything when
passed zeros.
* Allow tests to be run with ``python setup.py test``.

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.