aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/screen.rs
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2021-03-18 22:37:25 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2021-05-04 20:47:51 +0530
commit0d814ebcde98659babeaaa71a3ad5ee720021fc4 (patch)
tree28b136c7ebde8f00375712c3fcec38992e81a60e /src/common/screen.rs
parentwip: remove the commands that are called only on the client (diff)
downloadsl0ppij-0d814ebcde98659babeaaa71a3ad5ee720021fc4.tar.gz
sl0ppij-0d814ebcde98659babeaaa71a3ad5ee720021fc4.tar.xz
sl0ppij-0d814ebcde98659babeaaa71a3ad5ee720021fc4.zip
Divide OsApi into ClientOsApi and ServerOsApi and move calls to os thread
Diffstat (limited to 'src/common/screen.rs')
-rw-r--r--src/common/screen.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/common/screen.rs b/src/common/screen.rs
index 7848c243..ae1f4dd7 100644
--- a/src/common/screen.rs
+++ b/src/common/screen.rs
@@ -7,7 +7,7 @@ use std::path::PathBuf;
use std::sync::mpsc::Receiver;
use super::{AppInstruction, SenderWithContext};
-use crate::os_input_output::OsApi;
+use crate::os_input_output::ClientOsApi;
use crate::panes::PositionAndSize;
use crate::pty_bus::{PtyInstruction, VteBytes};
use crate::tab::Tab;
@@ -78,10 +78,7 @@ pub struct Screen {
/// The index of this [`Screen`]'s active [`Tab`].
active_tab_index: Option<usize>,
/// The [`OsApi`] this [`Screen`] uses.
- os_api: Box<dyn OsApi>,
- mode_info: ModeInfo,
- input_mode: InputMode,
- colors: Palette,
+ os_api: Box<dyn ClientOsApi>,
}
impl Screen {
@@ -93,7 +90,7 @@ impl Screen {
send_plugin_instructions: SenderWithContext<PluginInstruction>,
send_app_instructions: SenderWithContext<AppInstruction>,
full_screen_ws: &PositionAndSize,
- os_api: Box<dyn OsApi>,
+ os_api: Box<dyn ClientOsApi>,
max_panes: Option<usize>,
mode_info: ModeInfo,
input_mode: InputMode,