diff options
author | Aram Drevekenin <aram@poor.dev> | 2022-04-28 17:26:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 17:26:44 +0200 |
commit | 0dc136ec5f99f01fc12eaed1e18060d16f62b560 (patch) | |
tree | 399c32e7829d02464c75bc5f535a6d668555e0e2 /zellij-server/src/route.rs | |
parent | 188febfc0591e99d1577d3032076eac9ca9a7e33 (diff) |
fix(compatibility): respond to bg and fg color ansi queries (#1358)
* fix(compatibility): respond to background/foreground queries
* style(fmt): rustfmt
* style(clippy): make clippy happy
* style(fmt): rustfmt
* style(fmt): remove unused code
Diffstat (limited to 'zellij-server/src/route.rs')
-rw-r--r-- | zellij-server/src/route.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/zellij-server/src/route.rs b/zellij-server/src/route.rs index af31523a4..a6315447c 100644 --- a/zellij-server/src/route.rs +++ b/zellij-server/src/route.rs @@ -449,6 +449,26 @@ pub(crate) fn route_thread_main( )) .unwrap(); } + ClientToServerMsg::BackgroundColor(background_color_instruction) => { + rlocked_sessions + .as_ref() + .unwrap() + .senders + .send_to_screen(ScreenInstruction::TerminalBackgroundColor( + background_color_instruction, + )) + .unwrap(); + } + ClientToServerMsg::ForegroundColor(foreground_color_instruction) => { + rlocked_sessions + .as_ref() + .unwrap() + .senders + .send_to_screen(ScreenInstruction::TerminalForegroundColor( + foreground_color_instruction, + )) + .unwrap(); + } ClientToServerMsg::NewClient( client_attributes, cli_args, |