| Crates.io | terminal-trx |
| lib.rs | terminal-trx |
| version | 0.2.6 |
| created_at | 2024-01-20 17:05:10.244573+00 |
| updated_at | 2025-12-23 12:44:49.612947+00 |
| description | Provides a handle to the terminal of the current process |
| homepage | |
| repository | https://github.com/tautropfli/terminal-trx |
| max_upload_size | |
| id | 1106637 |
| size | 56,981 |
Pronounced: Terminal T-Rex 🦖
Provides a handle to the terminal of the current process that is both readable and writable.
use terminal_trx::terminal;
use std::io::{BufReader, BufRead as _, Write as _};
let mut terminal = terminal().unwrap();
write!(terminal, "hello world").unwrap();
let mut reader = BufReader::new(&mut terminal);
let mut line = String::new();
reader.read_line(&mut line).unwrap();
These are some features that I would like to include in this crate, but have not yet had the time to implement. Anyone is welcome to create a PR :)
Terminal instance (like stdout, stderr, stdin in the standard library do). (Is this a good idea?)This crate draws inspiration from many great resources, such as:
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions