#terminal #rewrite #curses #pixel #buffer #view #chiropterm

nightly chiro

A curses-style terminal view that runs inside a pixel buffer (Rewrite of chiropterm)

22 releases

0.1.3 Sep 5, 2022
0.1.2 Sep 5, 2022
0.0.19 Sep 4, 2022
0.0.8 Aug 26, 2022

#16 in #curses

MIT license

115KB
3K SLoC

NOTE: Under construction!

This is a rewrite of my earlier chiropterm library, which had some serious API design issues:

  • The system for windowing and clipping the draw cursor was verbose and bureaucratic.
  • The callback-based APIs made state management complicated.
  • Forcing a total redraw every frame was un-Curses-like

Compared to chiropterm a lot of things have been simplified -- there's no automatic resizing, no color management. The input subsystem actually got more complicated in an attempt to support both GameMaker-style "query for what buttons are down" input and event loop-based input.

Probably don't use this yet -- it's a serious WIP!

Dependencies

~2.4–3.5MB
~67K SLoC