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 /src/parser.rs | |
parent | 6052f0918ae43a33e1edcfffa37ecac0ca144070 (diff) | |
download | vt100-rust-44359ce5f1d4f13df5426175a5cbff45448c0c08.tar.gz vt100-rust-44359ce5f1d4f13df5426175a5cbff45448c0c08.zip |
optionally save scrollback rows
Diffstat (limited to 'src/parser.rs')
-rw-r--r-- | src/parser.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/parser.rs b/src/parser.rs index 77373bd..0cabb1a 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -7,13 +7,13 @@ pub struct Parser { impl Parser { /// Creates a new terminal parser of the given size. - pub fn new(rows: u16, cols: u16) -> Self { + pub fn new(rows: u16, cols: u16, scrollback_len: usize) -> Self { Self { parser: vte::Parser::new(), - screen: crate::screen::Screen::new(crate::grid::Size { - rows, - cols, - }), + screen: crate::screen::Screen::new( + crate::grid::Size { rows, cols }, + scrollback_len, + ), } } |