From f8e6f1f623de21c7e8f7c39b534ecd036e7ecfbb Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Wed, 14 Jun 2017 12:38:44 -0400 Subject: [PATCH] Use cursor cell template when handling 'CSI X' escape sequence This ensures that the cleared cells are set to the proper background color, which is the main usage of this escape sequence. Fixes #612 --- src/term/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/term/mod.rs b/src/term/mod.rs index ab48aead..227e90d2 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -1495,7 +1495,7 @@ impl ansi::Handler for Term { let end = min(start + count, self.grid.num_cols() - 1); let row = &mut self.grid[self.cursor.point.line]; - let template = self.empty_cell; + let template = self.cursor.template; // Cleared cells have current background color set for c in &mut row[start..end] { c.reset(&template); }