termion 1.5.6

A bindless library for manipulating terminals.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate redox_termios;
extern crate syscall;

use std::io;

pub use self::redox_termios::Termios;

pub mod attr;
pub mod size;
pub mod tty;

// Support function for converting syscall error to io error
fn cvt(result: Result<usize, syscall::Error>) -> io::Result<usize> {
    result.map_err(|err| io::Error::from_raw_os_error(err.errno))
}