14 releases

Uses old Rust 2015

0.2.11 Jul 10, 2021
0.2.10 Jan 4, 2021
0.2.9 Jul 11, 2020
0.2.8 Dec 2, 2018
0.1.1 May 20, 2016

#518 in Command-line interface

Download history 27/week @ 2024-02-19 4/week @ 2024-02-26 1/week @ 2024-03-11 223/week @ 2024-04-01

224 downloads per month
Used in curse

MIT license

39KB
821 lines

cursebox

A cell-grid TTY UI library

Goals:

  • Simple API
  • Minimal dynamic allocation
  • Little code size

Evolved from termbox

Note: So far (as of rust 1.28), you must use nightly. Building on stable is a goal — we are waiting for const_fn and untagged_unions.


lib.rs:

Start with UI. See too examples.

Usual use of the library each frame/iteration is to clear the screen, draw, and then present. You can check events before or after.

Dependencies

~4.5MB
~103K SLoC