#bindings #termbox2 #mut

termbox2-rs

Simple Rust bindings to termbox2

1 unstable release

0.1.0 Jul 6, 2022

#43 in #mut

MIT license

70KB
2K SLoC

C 757 SLoC PHP 482 SLoC // 0.1% comments Shell 261 SLoC // 0.1% comments Rust 245 SLoC // 0.0% comments Ruby 42 SLoC Zig 39 SLoC // 0.0% comments Go 31 SLoC // 0.4% comments Python 25 SLoC // 0.4% comments

Termbox2 Bindings

Very simple Rust bindings to termbox2.

A simple example:

use termbox2::*;

fn main() {
	let mut ev = Event::default();
	unsafe {
		tb_init();
		tb_clear();
		tb_present();
		tb_poll_event(&mut ev);
		tb_shutdown();
	}
}

No runtime deps

~0–2.2MB
~43K SLoC