summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2021-05-17 18:13:05 +0200
committerGitHub <noreply@github.com>2021-05-17 18:13:05 +0200
commita3f42b19a98c00b90fdd60a0486275a5f1829226 (patch)
tree1b57c80b8e6814851cf7c47fcf0bf9e5f00fadc6 /src
parent84911619b27fec7aa5d13f4d60db2e8625dc3a04 (diff)
Osc implementation (#517)
* fix(compatibility): implement most osc methods * style(fmt): rustfmt * style(fmt): remove cargo warnings * style(fmt): make clippy happy * style(fmt): fix formatting after my clippy fixes broke it again ;P * fix(grid): fix tests
Diffstat (limited to 'src')
-rw-r--r--src/tests/fakes.rs3
-rw-r--r--src/tests/utils.rs3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/tests/fakes.rs b/src/tests/fakes.rs
index 3fefa663a..09cc2ba3d 100644
--- a/src/tests/fakes.rs
+++ b/src/tests/fakes.rs
@@ -219,6 +219,9 @@ impl ClientOsApi for FakeInputOutput {
}
}
fn connect_to_server(&self, _path: &std::path::Path) {}
+ fn load_palette(&self) -> Palette {
+ default_palette()
+ }
}
impl ServerOsApi for FakeInputOutput {
diff --git a/src/tests/utils.rs b/src/tests/utils.rs
index ee2de3cd8..441f9bcea 100644
--- a/src/tests/utils.rs
+++ b/src/tests/utils.rs
@@ -1,4 +1,5 @@
use zellij_server::{panes::TerminalPane, tab::Pane};
+use zellij_tile::data::Palette;
use zellij_utils::pane_size::PositionAndSize;
pub fn get_output_frame_snapshots(
@@ -7,7 +8,7 @@ pub fn get_output_frame_snapshots(
) -> Vec<String> {
let mut vte_parser = vte::Parser::new();
let main_pid = 0;
- let mut terminal_output = TerminalPane::new(main_pid, *win_size);
+ let mut terminal_output = TerminalPane::new(main_pid, *win_size, Palette::default());
let mut snapshots = vec![];
for frame in output_frames.iter() {