Description |
Blessed is a more simplified wrapper around curses, providing :
Styles, color, and maybe a little positioning without necessarily clearing the whole screen first.
Leave more than one screenful of scrollback in the buffer after your program exits, like a well-behaved command-line application should.
No more C-like calls to tigetstr and tparm.
Act intelligently when somebody redirects your output to a file, omitting all of the terminal sequences such as styling, colors, or positioning.
Dead-simple keyboard handling, modeled after the Basic language’s INKEY$
Blessed provides just one top-level object: Terminal. Instantiating a Terminal figures out whether you’re on a terminal at all and, if so, does any necessary setup. After that, you can proceed to ask it all sorts of things about the terminal, such as its size and color support, and use its styling to construct strings containing color and styling. Also, the special sequences inserted with application keys (arrow and function keys) are understood and decoded, as well as your locale-specific encoded multibyte input.
|