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

#4 in #c-api

Download history 4/week @ 2024-02-26 3/week @ 2024-03-11 135/week @ 2024-03-25 39/week @ 2024-04-01

174 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.6–9MB
~70K SLoC