From 5161de59fe60ea1f323bd0f0ab26159f7423ec6d Mon Sep 17 00:00:00 2001 From: Sean Sullivan <22581534+sullivan-sean@users.noreply.github.com> Date: Fri, 22 Sep 2023 09:52:21 -0700 Subject: [PATCH] expose pen attribute on terminal info --- term/src/terminalstate/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) 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 }