Crates.io | crossterm_terminal |
lib.rs | crossterm_terminal |
version | 0.3.2 |
source | src |
created_at | 2019-01-27 21:18:34.456804 |
updated_at | 2019-10-21 18:42:38.446509 |
description | A cross-platform library for doing terminal related actions. |
homepage | |
repository | https://github.com/crossterm-rs/crossterm-terminal |
max_upload_size | |
id | 111002 |
size | 33,717 |
The crossterm_terminal
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 perform terminal related actions cross-platform e.g clearing, resizing etc. It supports all UNIX and Windows terminals down to Windows 7 (not all terminals are tested, see Tested Terminals for more info).
crossterm_terminal
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 terminal
feature enabled.
[dependencies]
# All crossterm features are enabled by default.
crossterm = "0.11"
use std::io::{stdout, Write};
use crossterm::{execute, SetSize, ScrollUp, Result};
fn main() -> Result<()> {
execute!(stdout(), SetSize(10, 10), ScrollUp(5))
}
This project is licensed under the MIT License - see the LICENSE file for details