diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-05 01:39:34 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-05 01:44:19 -0500 |
commit | c8a23e4837441ecb02b0fe89143433b652192e7f (patch) | |
tree | ab708edd20635b1ef50e8318d2f15128a1f5972a /README.md | |
parent | f7de5f52ff1ae465f09a648cffb81192b6aecf45 (diff) | |
download | vt100-rust-c8a23e4837441ecb02b0fe89143433b652192e7f.tar.gz vt100-rust-c8a23e4837441ecb02b0fe89143433b652192e7f.zip |
docs
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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), +); ``` |