aboutsummaryrefslogtreecommitdiffstats
path: root/src/blocking.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/blocking.rs')
-rw-r--r--src/blocking.rs13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/blocking.rs b/src/blocking.rs
index fc608ad..538f051 100644
--- a/src/blocking.rs
+++ b/src/blocking.rs
@@ -44,9 +44,16 @@ impl Textmode {
}
pub fn refresh(&mut self) -> std::io::Result<()> {
- let diff = self.next().screen().contents_diff(self.cur().screen());
- self.write_stdout(&diff)?;
- self.cur_mut().process(&diff);
+ let diffs = &[
+ self.next().screen().contents_diff(self.cur().screen()),
+ self.next().screen().input_mode_diff(self.cur().screen()),
+ self.next().screen().title_diff(self.cur().screen()),
+ self.next().screen().bells_diff(self.cur().screen()),
+ ];
+ for diff in diffs {
+ self.write_stdout(&diff)?;
+ self.cur_mut().process(&diff);
+ }
Ok(())
}