aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/parser.rs b/src/parser.rs
index 10ebf10..77c95c3 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -2,7 +2,7 @@
/// the terminal contents.
pub struct Parser {
parser: vte::Parser,
- screen: crate::Screen,
+ screen: crate::perform::WrappedScreen,
}
impl Parser {
@@ -12,10 +12,10 @@ impl Parser {
pub fn new(rows: u16, cols: u16, scrollback_len: usize) -> Self {
Self {
parser: vte::Parser::new(),
- screen: crate::Screen::new(
+ screen: crate::perform::WrappedScreen(crate::Screen::new(
crate::grid::Size { rows, cols },
scrollback_len,
- ),
+ )),
}
}
@@ -45,14 +45,14 @@ impl Parser {
/// state.
#[must_use]
pub fn screen(&self) -> &crate::Screen {
- &self.screen
+ &self.screen.0
}
/// Returns a mutable reference to a `Screen` object containing the
/// terminal state.
#[must_use]
pub fn screen_mut(&mut self) -> &mut crate::Screen {
- &mut self.screen
+ &mut self.screen.0
}
}