Share terminal config between tabs

This commit is contained in:
Jeremy Soller 2023-12-21 10:14:57 -07:00
parent 51818a34f5
commit 1cbcc1e795
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
2 changed files with 16 additions and 11 deletions

View file

@ -106,6 +106,7 @@ impl Terminal {
pub fn new(
entity: segmented_button::Entity,
event_tx: mpsc::Sender<(segmented_button::Entity, Event)>,
config: &Config,
colors: Colors,
) -> Self {
let metrics = Metrics::new(14.0, 20.0);
@ -127,7 +128,6 @@ impl Terminal {
(layout[0].w, metrics.line_height)
};
let config = Config::default();
let size = Size {
width: (80.0 * cell_width).ceil() as u32,
height: (24.0 * cell_height).ceil() as u32,