Releases: jquast/blessed
Releases · jquast/blessed
python3 native compatibility and cursor show/hide for 'ansi' terminals
- enhancement: no longer depend on the '2to3' tool for python 3 support.
- enhancement: allow
civis
andcnorm
(hide_cursor, normal_hide)
to work with terminal-type ansi by emulating support by proxy.
keypad support
- workaround: ignore 'tparm() returned NULL', this occurs on win32 platforms using PDCurses_ where tparm() is not implemented.
- enhancement: new context manager
keypad()
, which enables keypad application keys such as the diagonal keys on the numpad. - bugfix: translate keypad application keys correctly to their diagonal movement directions
KEY_LL
,KEY_LR
,KEY_UL
,KEY_LR
, andKEY_CENTER
.
better ecma-48 code support
- enhancement: better support for detecting the length or sequences of
externally-generated ecma-48 codes when usingxterm
oraixterm
.
add wcwidth internally to length and rstrip/lstrip() convenience functions
- enhancement: add
rstrip()
andlstrip()
, strips both sequences
and trailing or leading whitespace, respectively. - enhancement: include wcwidth_ library support for
length()
, the
printable width of many kinds of CJK (Chinese, Japanese, Korean) ideographs
are more correctly determined.
screen(1) may now use move_x() and move_y()
1.8.5 Merge branch 'master' of https://github.com/jquast/blessed
Interruptable inkey() and non-tty fixes
- enhancement: allow
inkey()
andkbhit()
to return early when
interrupted by signal by passing argument_intr_continue=False
. - bugfix: allow term.inkey() and related to be called without a keyboard.
bugfix of picklability
this minor patch release resolves issues with pickling ParameterizingString and FormattingString
bugfix of default inkey() arguments
resolves issue #10
minor bugfix regarding _keyboard_buf class attribute
class attribute _keyboard_buf should always be available, even in custom derived classes that overload getch().
locale encoding fix
- enhancement: export keyboard-read function as public method
getch()
, so
that it may be overridden by custom terminal implementers (x/84 telnet bbs) - bugfix: if
locale.getpreferredencoding()
returns empty string or an
encoding that is not a valid codec forcodecs.getincrementaldecoder
,
fallback to ascii and emit a warning.