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