read-key-termios 0.1.0

Simple key-reading using Termios from Libc. Unsafe for obvious reasons. Also doesn't work on Windows for obvious reasons.
Documentation
  • Coverage
  • 55.56%
    5 out of 9 items documented0 out of 4 items with examples
  • Size
  • Source code size: 4.20 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 304.01 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • Aityz/read-key-termios
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Aityz

Read Key (Termios)

This is a tiny crate that adds functionality for entering and leaving raw mode on Linux. It is useful when you are making a small CLI application and you don't want to add a ton of dependencies.

Functions

init(): Enters raw mode by disabling ICANON and ECHO. close(): Exits raw mode by enabling ICANON and ECHO. read_key(fd: i32) -> u8: Reads a key from the FD specified.