Releases: jquast/blessed
Releases · jquast/blessed
1.17.7: Introduced `formatter()`
- Introduced:
formatter()
which returns callable formatters for valid text formatters such as ‘red’ or ‘bold_on_red’, returning a NullCallableString if passed an invalid text formatter.
less turbulence for unspported input encodings
bugfix: Use UTF-8
for keyboard if input encoding cannot be determined.
because gentoo
although I used gentoo from 2001-2003, I still don't understand it
1.17.4: Performance improvement
- optimize
length()
PR #159
1.17.3: pixel_width and height support, minor bug and docfixes
- add
pixel_height
andpixel_width
, for libsixel support or general curiosity, it actually works on most of the terminals I tested! This wasn't the case several years ago, closes #155 - bugfix "pickleability" of FormatOtherString, by implementing
__getnewargs__
, with tests. - docfix some confusion about (y, x), (row, column), etc. There were some backwards things, and it's pretty annoying that get_location() doesn't match location(), we document why -- to retain API compatibility with blessings!
- rewrite the messages of our TypeError's, hopefully these are easier to understand.
1.17.2: hyperlink support and minor bug & docfix release
Do not test hyperlink sequences on windows / where does_styling is Fa…
1.17.1: Documentation and minor bugfix release
1.17.0: 24-bit color support
- introduced: 24-bit color support, detected by
term.number_of_colors == 1 << 24
, and 24-bit
color foreground methodcolor_rgb
and background method
on_color_rgb
, as well as 676 common X11 color attribute names are now
possible, such asterm.aquamarine_on_wheat
, #60. - introduced:
term.move_xy
, recommended over built-inmove
capability, as the return
positional arguments,(x, y)
match the return value ofget_location
,
and all other common graphics library calls, #65.
values over the bterm.move
. - introduced:
move_up`,
move_down,
move_left,
move_rightwhich are strings that move the cursor one cell in the respective direction, are now also callables for moving *n* cells to the given direction, such as
term.move_right(9)``, . - bugfix: prevent error condition,
ValueError: underlying buffer has been detached
in rare
conditions where sys.stdout has been detached in test frameworks, #126. - bugfix: off-by-one error in :meth:
get_location
, now accounts for%i
in
cursor_report, #94. - bugfix
split_seqs
and related functions failed to match when the color index
was greater than 15, #101. - bugfix: Context Managers,
fullscreen
,hidden_cursor
, and
keypad
now flush the stream after writing their sequences. - bugfix:
chr(127)
,\x7f
has changed from keycodeterm.DELETE
to the more common
match,term.BACKSPACE
, #115 by @jwezel. - deprecated: the direct curses
move()
capability is no longer recommended, suggest to use
move_xy()
, which matches the return value of.get_location
. - deprecated:
superscript
,subscript
,shadow
, anddim
are no longer "compoundable"
with colors, such as in phraseTerminal.blue_subscript('a')
. These attributes are not
typically supported, anyway. Use Unicode text or 256 or 24-bit color codes instead. - deprecated: additional key names, such as
KEY_TAB
, are no longer "injected" into the curses
module namespace. - deprecated:
curses.setupterm
is now called withos.devnull
as the file descriptor, let us know if this causes any issues! :ghissue:59
. - deprecated:
inkey
no longer raises RuntimeError whenstream
is not a terminal, programs usingTerminal.inkey
may block indefinitely if a keyboard is
not attached, #69. - deprecated: using argument
_intr_continue
to methodkbhit
, behavior is as
though such value is always True since 1.9.
1.16.1: Windows py2 locale bugfix
- merge #112 to resolve locale issues on windows with python2
1.16.0: Windows Support
- Windows support?! #110