vt

Crates.iovt
lib.rsvt
version0.2.1
sourcesrc
created_at2019-09-04 15:43:30.838552
updated_at2019-09-10 23:18:33.05732
descriptionRust bindings for Linux virtual terminal APIs.
homepagehttps://github.com/95ulisse/vt-rs
repositoryhttps://github.com/95ulisse/vt-rs
max_upload_size
id162168
size25,009
Marco Cameriero (95ulisse)

documentation

README

vt-rs

Latest version Documentation License

Rust bindings for the Linux virtual terminal APIs.

Documentation: https://docs.rs/vt

Example

use std::io::Write;
use vt::Console;

// First of all, get a handle to the console
let console = Console::open().unwrap();

// Allocate a new virtual terminal
let mut vt = console.new_vt().unwrap();

// Write something to it.
// A `Vt` structure implements both `std::io::Read` and `std::io::Write`.
writeln!(vt, "Hello world!");

// Switch to the newly allocated terminal
vt.switch().unwrap();

License

vt-rs is released under the MIT license. For more information, see LICENSE.

Commit count: 15

cargo fmt