diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-09 12:34:39 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-09 14:58:57 -0500 |
commit | 44359ce5f1d4f13df5426175a5cbff45448c0c08 (patch) | |
tree | f25c11102f0563a4007adb5ecd91067f1068a624 /examples | |
parent | 6052f0918ae43a33e1edcfffa37ecac0ca144070 (diff) | |
download | vt100-rust-44359ce5f1d4f13df5426175a5cbff45448c0c08.tar.gz vt100-rust-44359ce5f1d4f13df5426175a5cbff45448c0c08.zip |
optionally save scrollback rows
Diffstat (limited to 'examples')
-rw-r--r-- | examples/process.rs | 2 | ||||
-rw-r--r-- | examples/process_diff.rs | 2 | ||||
-rw-r--r-- | examples/process_full.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/process.rs b/examples/process.rs index ea36db1..a556b96 100644 --- a/examples/process.rs +++ b/examples/process.rs @@ -12,7 +12,7 @@ fn read_frames() -> impl Iterator<Item = Vec<u8>> { } fn process_frames(frames: &[Vec<u8>]) { - let mut parser = vt100::Parser::new(24, 80); + let mut parser = vt100::Parser::new(24, 80, 0); for frame in frames { parser.process(&frame); } diff --git a/examples/process_diff.rs b/examples/process_diff.rs index 6132971..d618d9c 100644 --- a/examples/process_diff.rs +++ b/examples/process_diff.rs @@ -13,7 +13,7 @@ fn read_frames() -> impl Iterator<Item = Vec<u8>> { fn draw_frames(frames: &[Vec<u8>]) { let mut stdout = std::io::stdout(); - let mut parser = vt100::Parser::new(24, 80); + let mut parser = vt100::Parser::new(24, 80, 0); let mut screen = parser.screen().clone(); for frame in frames { parser.process(&frame); diff --git a/examples/process_full.rs b/examples/process_full.rs index a49af29..2260443 100644 --- a/examples/process_full.rs +++ b/examples/process_full.rs @@ -13,7 +13,7 @@ fn read_frames() -> impl Iterator<Item = Vec<u8>> { fn draw_frames(frames: &[Vec<u8>]) { let mut stdout = std::io::stdout(); - let mut parser = vt100::Parser::new(24, 80); + let mut parser = vt100::Parser::new(24, 80, 0); for frame in frames { parser.process(&frame); let contents = parser.screen().contents_formatted(); |