Add code to set selection

This commit is contained in:
Jeremy Soller 2023-12-21 15:09:18 -07:00
parent 81e1062211
commit 968955230c
2 changed files with 53 additions and 28 deletions

View file

@ -27,10 +27,10 @@ pub use alacritty_terminal::grid::Scroll as TerminalScroll;
#[derive(Clone, Copy, Debug)]
pub struct Size {
width: u32,
height: u32,
cell_width: f32,
cell_height: f32,
pub width: u32,
pub height: u32,
pub cell_width: f32,
pub cell_height: f32,
}
impl Dimensions for Size {
@ -59,7 +59,7 @@ impl From<Size> for WindowSize {
}
#[derive(Clone)]
struct EventProxy(
pub struct EventProxy(
segmented_button::Entity,
mpsc::Sender<(segmented_button::Entity, Event)>,
);
@ -96,7 +96,7 @@ pub struct Terminal {
default_attrs: Attrs<'static>,
buffer: Arc<Buffer>,
size: Size,
term: Arc<FairMutex<Term<EventProxy>>>,
pub term: Arc<FairMutex<Term<EventProxy>>>,
colors: Colors,
notifier: Notifier,
}