aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/README.md b/README.md
index 29c25d5..2b7152f 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,10 @@ such as terminal multiplexers or terminal recording applications.
## Synopsis
```rust
-let mut screen = vt100::Screen::new(24, 80);
-screen.process(b"this text is \x1b[31mRED\x1b[m");
+let mut parser = vt100::Parser::new(24, 80);
+parser.process(b"this text is \x1b[31mRED\x1b[m");
+assert_eq!(
+ parser.screen().cell(0, 13).unwrap().fgcolor(),
+ vt100::Color::Idx(1),
+);
```