diff --git a/term/src/terminalstate/mod.rs b/term/src/terminalstate/mod.rs index fc12cc005..eec755c7c 100644 --- a/term/src/terminalstate/mod.rs +++ b/term/src/terminalstate/mod.rs @@ -929,6 +929,11 @@ impl TerminalState { } } + /// Returns the current cell attributes of the screen + pub fn pen(&self) -> CellAttributes { + self.pen.clone() + } + pub fn user_vars(&self) -> &HashMap { &self.user_vars }