aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-04 09:17:05 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-04 09:19:42 -0500
commit8cd3ca2c07b29e61f18c0c34db8b34b36a42e03b (patch)
tree7331c8dbaa7132751df0b03f2030058a20d239d4 /src/lib.rs
parentd52d752af9a4bde993af7b0cb871e60b41eca2e0 (diff)
downloadvt100-rust-8cd3ca2c07b29e61f18c0c34db8b34b36a42e03b.tar.gz
vt100-rust-8cd3ca2c07b29e61f18c0c34db8b34b36a42e03b.zip
docs
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 5f5ce31..3054403 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,3 +1,21 @@
+//! This crate parses a terminal byte stream and provides an in-memory
+//! representation of the rendered contents.
+//!
+//! # Overview
+//!
+//! This is essentially the terminal parser component of a graphical terminal
+//! emulator pulled out into a separate crate. This can be used to not only
+//! build graphical terminal emulators, but also many other types of
+//! applications that need to interact with a terminal data stream directly,
+//! such as terminal multiplexers or terminal recording applications.
+//!
+//! # Synopsis
+//!
+//! ```
+//! let mut screen = vt100::Screen::new(24, 80);
+//! screen.process(b"this text is \x1b[31mRED\x1b[m");
+//! ```
+
#![warn(clippy::pedantic)]
#![warn(clippy::nursery)]
#![allow(clippy::missing_const_for_fn)]