#screen #crossterm #raw #terminal #alternate

deprecated crossterm_screen

A cross-platform library for raw and alternate screen

10 releases

0.3.2 Oct 21, 2019
0.3.1 Sep 25, 2019
0.2.5 Aug 2, 2019
0.2.4 Jul 25, 2019
0.1.0 Jan 27, 2019

#34 in #crossterm

Download history 343/week @ 2023-11-27 230/week @ 2023-12-04 284/week @ 2023-12-11 388/week @ 2023-12-18 279/week @ 2023-12-25 184/week @ 2024-01-01 474/week @ 2024-01-08 398/week @ 2024-01-15 364/week @ 2024-01-22 270/week @ 2024-01-29 317/week @ 2024-02-05 357/week @ 2024-02-12 281/week @ 2024-02-19 454/week @ 2024-02-26 390/week @ 2024-03-04 390/week @ 2024-03-11

1,570 downloads per month
Used in 7 crates (via crossterm_input)

MIT license

20KB
218 lines

Lines of Code Latest Version MIT docs Join us on Discord

Crossterm Screen

The crossterm_screen crate is deprecated and no longer maintained. The GitHub repository will be archived soon. All the code is being moved to the crossterm crate. You can learn more in the Merge sub-crates to the crossterm crate issue.

This crate allows you to work with alternate and raw screen cross-platform. It supports all UNIX and Windows terminals down to Windows 7 (not all terminals are tested see Tested Terminals for more info)

crossterm_screen is a sub-crate of the crossterm crate. You can use it directly, but it's highly recommended to use the crossterm crate with the screen feature enabled.

Getting Started

Click to show Cargo.toml.
[dependencies]
# All crossterm features are enabled by default.
crossterm = "0.11"

use crossterm::RawScreen;

fn main() -> Result<()> {
    // Enable raw mode
    let _raw = RawScreen::into_raw_mode()?;

    // Do something in the raw mode
} // `_raw` dropped here <- raw mode is disabled

Features

  • Cross-platform
  • Multi-threaded (send, sync)
  • Detailed documentation
  • Few dependencies
  • Alternate screen
  • Raw screen

Other Resources

Authors

  • Timon Post - Project Owner & creator

License

This project is licensed under the MIT License - see the LICENSE file for details

Dependencies

~31–260KB