aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-10 08:31:12 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-10 08:31:12 -0500
commit8d4dda299bc3f105d86eea0f59acdd37130f291c (patch)
tree78cbf7787570654958529436113ced05329deade /examples
parent90d19a9cc76fd36b3155bd5d06cf72f7e76ce9a5 (diff)
downloadvt100-rust-8d4dda299bc3f105d86eea0f59acdd37130f291c.tar.gz
vt100-rust-8d4dda299bc3f105d86eea0f59acdd37130f291c.zip
add Default impl for Parser
Diffstat (limited to 'examples')
-rw-r--r--examples/process.rs2
-rw-r--r--examples/process_diff.rs2
-rw-r--r--examples/process_full.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/process.rs b/examples/process.rs
index a556b96..d8d6886 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, 0);
+ let mut parser = vt100::Parser::default();
for frame in frames {
parser.process(&frame);
}
diff --git a/examples/process_diff.rs b/examples/process_diff.rs
index d618d9c..c141269 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, 0);
+ let mut parser = vt100::Parser::default();
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 2260443..5aa5422 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, 0);
+ let mut parser = vt100::Parser::default();
for frame in frames {
parser.process(&frame);
let contents = parser.screen().contents_formatted();