diff options
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, + ), } } |