Crossterm is a pure-rust, terminal manipulation library that makes it possible to write cross-platform text-based interfaces.
This is free and open source software.
Key Features
- Cross-platform.
- Multi-threaded (send, sync).
- Detailed documentation.
- Few dependencies.
- Full control over writing and flushing output buffer.
- Is tty.
- Cursor:
- Move the cursor N times (up, down, left, right).
- Move to previous / next line.
- Move to column.
- Set/get the cursor position.
- Store the cursor position and restore to it later.
- Hide/show the cursor.
- Enable/disable cursor blinking (not all terminals do support this feature).
- Styled output:
- Foreground color (16 base colors).
- Background color (16 base colors).
- 256 (ANSI) color support (Windows 10 and UNIX only).
- RGB color support (Windows 10 and UNIX only).
- Text attributes like bold, italic, underscore, crossed, etc.
- Terminal:
- Clear (all lines, current line, from cursor down and up, until new line).
- Scroll up, down.
- Set/get the terminal size.
- Exit current process.
- Alternate screen.
- Raw screen.
- Set terminal title.
- Enable/disable line wrapping.
- Event:
- Input Events.
- Mouse Events (press, release, position, button, drag).
- Terminal Resize Events.
- Advanced modifier (SHIFT | ALT | CTRL) support for both mouse and key events and
futures Stream (feature ‘event-stream’). - Poll/read API.
Website: github.com/crossterm-rs/crossterm
Support:
Developer: Timon
License: MIT License
Crossterm is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| Rust TUI Frameworks | |
|---|---|
| Ratatui | Simple and flexible way to create text-based user interfaces in the terminal |
| Crossterm | Terminal manipulation library |
| iocraft | Craft CLIs, TUIs, and text-based IO |
| Zaz | Terminal manipulation library |
| tui-input | Library supporting multiple backends |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

