Crossterm
Crossterm is a cross-platform terminal manipulation library for the Rust programming language. It provides a unified API for performing common terminal operations, including moving the cursor, styling text with colors and attributes, clearing parts of the screen, and querying terminal size. The library targets Windows and Unix-like platforms by translating commands into native Windows Console API calls or ANSI escape sequences on POSIX terminals.
Its API is organized into several modules, such as cursor, style, terminal, and event. The event module
Two core patterns are supported for sending sequences to the terminal: the execute macro, which writes commands
Crossterm is open source and widely used in the Rust ecosystem. It is designed for safety and
Applications in the ecosystem include terminal user interfaces and CLI tools, with several projects offering crossterm