ttyecho 0.1.2

ttyecho is a crate that lets you write data a into Linux kernel pseudoterminal buffer.
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 2.68 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.14 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • insertt/ttyecho-rs
    4 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • insertt

ttyecho is a crate that lets you write data into a Linux kernel pseudoterminal buffer. This crate will not work on a non-Linux platform.

Example

fn main() {
    // You can put whatever you want, not only commands.
    let command = "echo ttyecho!";
    // Target tty 
    let tty = "/dev/pts/27";
    // We want to append new line as we want to run echo without user interaction.
    let append_new_line = true;
    
    ttyecho(tty, command, append_new_line);
}