19 releases (7 breaking)

0.8.0 Mar 25, 2024
0.7.2 Aug 22, 2023
0.6.4 Jul 31, 2023
0.5.0 Jul 25, 2023
0.1.3 Jul 21, 2023

#10 in #c-api

Download history 51/week @ 2024-09-23

687 downloads per month

MIT license

70KB
1.5K SLoC

libcrossterm

libcrossterm is a Rust cdylib library providing a C-API to access rich functionality to control and manipulate terminal interfaces using the excellent crossterm crate. This includes operations like cursor movement, color and style management, and much more.

This library is built on the crossterm crate and exposes the functionality in a C ABI friendly way so that it is callable from C and other languages. See the documentation for more information.

Features

  • Cursor movement (up, down, left, right, etc.)
  • Color manipulation (foreground, background)
  • Style manipulation (bold, underline, etc.)
  • Terminal manipulation (clearing, resizing, etc.)
  • Scroll operations
  • Screen buffering

Dependencies

~1.7–8MB
~73K SLoC