diff options
| author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-04-04 01:24:46 +0530 |
|---|---|---|
| committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-04 20:48:15 +0530 |
| commit | 2a648187fc8d4afc9b34d322b4f8394dcd39b6dd (patch) | |
| tree | e85afef2b8e03d6e86a85f57c9b9a3da75d823e3 /src/client/mod.rs | |
| parent | Move screen and plugins to client side. (diff) | |
| download | sl0ppij-2a648187fc8d4afc9b34d322b4f8394dcd39b6dd.tar.gz sl0ppij-2a648187fc8d4afc9b34d322b4f8394dcd39b6dd.tar.xz sl0ppij-2a648187fc8d4afc9b34d322b4f8394dcd39b6dd.zip | |
Fix after rebase
Diffstat (limited to 'src/client/mod.rs')
| -rw-r--r-- | src/client/mod.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs index ae298a5e..b6a0231a 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -69,6 +69,23 @@ pub fn start_client(mut os_input: Box<dyn ClientOsApi>) { move || input_loop(os_input, command_is_executing, send_client_instructions) }); + let _signal_thread = thread::Builder::new() + .name("signal_listener".to_string()) + .spawn({ + let os_input = os_input.clone(); + move || { + os_input.receive_sigwinch(Box::new({ + let os_api = os_input.clone(); + move || { + os_api.send_to_server(ServerInstruction::terminal_resize( + os_api.get_terminal_size_using_fd(0), + )); + } + })); + } + }) + .unwrap(); + let router_thread = thread::Builder::new() .name("router".to_string()) .spawn({ |
