Skip to content

Commit

Permalink
expose pen attribute on terminal info
Browse files Browse the repository at this point in the history
  • Loading branch information
sullivan-sean committed Sep 22, 2023
1 parent 821f9f9 commit a09611d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions term/src/terminalstate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, String> {
&self.user_vars
}
Expand Down

0 comments on commit a09611d

Please sign in to comment.