termion/src/lib.rs

40 lines
988 B
Rust
Raw Normal View History

2016-07-02 14:42:18 +01:00
//! Termion is a pure Rust, bindless library for low-level handling, manipulating
//! and reading information about terminals. This provides a full-featured
//! alternative to Termbox.
//!
2016-07-02 14:42:18 +01:00
//! Termion aims to be simple and yet expressive. It is bindless, meaning that it
//! is not a front-end to some other library (e.g., ncurses or termbox), but a
//! standalone library directly talking to the TTY.
//!
//! Supports Redox, Mac OS X, and Linux (or, in general, ANSI terminals).
//!
//! For more information refer to the [README](https://github.com/ticki/termion).
#![warn(missing_docs)]
2016-03-07 21:19:35 +00:00
#[cfg(not(target_os = "redox"))]
2016-03-06 13:54:26 +00:00
extern crate libc;
2016-03-07 21:19:35 +00:00
#[cfg(not(target_os = "redox"))]
2016-03-07 15:01:20 +00:00
mod termios;
2016-03-06 13:54:26 +00:00
2016-03-15 19:32:25 +00:00
mod async;
pub use async::{AsyncReader, async_stdin};
2016-03-07 15:01:20 +00:00
mod size;
2016-03-08 09:08:50 +00:00
pub use size::terminal_size;
2016-03-07 16:39:25 +00:00
mod tty;
2016-07-29 18:49:29 +01:00
pub use tty::{is_tty, get_tty};
2016-03-07 16:57:17 +00:00
#[macro_use]
mod macros;
pub mod clear;
pub mod color;
pub mod cursor;
2016-07-23 16:49:52 +01:00
pub mod event;
pub mod input;
pub mod raw;
pub mod screen;
2016-07-23 16:49:52 +01:00
pub mod scroll;
pub mod style;