tfil 0.1.0

PTY proxy with configurable terminal output filters
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Terminal output filters used by the `tfil` PTY proxy.
//!
//! The library exposes a small [`filters::Filter`] trait and a handful of
//! implementations that rewrite escape sequences in a child process's
//! output stream. Filters are independent and can be composed by running
//! them in sequence.
//!
//! # Example
//!
//! ```
//! use tfil::filters::{Filter, OscTitleFilter};
//!
//! let mut f = OscTitleFilter::new();
//! let out = f.filter(b"hello\x1b]0;ignored\x07world");
//! assert_eq!(out.as_ref(), b"helloworld");
//! ```

pub mod filters;