#term #ansi-term #terminal #vterm

nightly sys vterm-sys

FFI bindings to libvterm

3 unstable releases

Uses old Rust 2015

0.1.0 Apr 23, 2016
0.0.1 Nov 25, 2015
0.0.0 Nov 25, 2015

#82 in #term

21 downloads per month

MIT license

270KB
8K SLoC

C 5.5K SLoC // 0.1% comments Rust 2.5K SLoC // 0.0% comments Perl 171 SLoC // 0.1% comments Bitbake 42 SLoC

This library provides rust bindings for libvterm: http://www.leonerd.org.uk/code/libvterm/

libvterm is "An abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator"

How to build

git submodule init
git submodule update
(cd vendor/libvterm; make)
cargo build

The make part in libvterm runs a perl script to transform some files in libvterm/src/encoding.

How to turn on libvterm debugging

Use CFLAGS env var to define DEBUG with is used in vterm_internal.h to control logging to stderr:

CFLAGS=-DDEBUG cargo test

Dependencies

~1.5MB
~36K SLoC