diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-05-12 15:36:50 +0200 |
|---|---|---|
| committer | a-kenji <aks.kenji@protonmail.com> | 2021-05-12 15:36:50 +0200 |
| commit | db592cc840edb70239b81c72b9e87712d493bf4d (patch) | |
| tree | 53533d8553d760b6510d54bbdd80b900346ff987 /src/client | |
| parent | Fix Simplified Ui (diff) | |
| parent | docs(changelog): pasted text fix (diff) | |
| download | sl0ppij-db592cc840edb70239b81c72b9e87712d493bf4d.tar.gz sl0ppij-db592cc840edb70239b81c72b9e87712d493bf4d.tar.xz sl0ppij-db592cc840edb70239b81c72b9e87712d493bf4d.zip | |
Merge branch 'main' of https://github.com/zellij-org/zellij into fix-simplified-ui
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/mod.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs index 3dfb24aa..6f298615 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -31,8 +31,9 @@ pub enum ClientInstruction { } pub fn start_client(mut os_input: Box<dyn ClientOsApi>, opts: CliArgs, config: Config) { - let clear_client_terminal_attributes = "\u{1b}[?1l\u{1b}=\u{1b}[r\u{1b}12l\u{1b}[?1000l\u{1b}[?1002l\u{1b}[?1003l\u{1b}[?1005l\u{1b}[?1006l"; + let clear_client_terminal_attributes = "\u{1b}[?1l\u{1b}=\u{1b}[r\u{1b}12l\u{1b}[?1000l\u{1b}[?1002l\u{1b}[?1003l\u{1b}[?1005l\u{1b}[?1006l\u{1b}[?12l"; let take_snapshot = "\u{1b}[?1049h"; + let bracketed_paste = "\u{1b}[?2004h"; os_input.unset_raw_mode(0); let _ = os_input .get_stdout_writer() @@ -56,6 +57,10 @@ pub fn start_client(mut os_input: Box<dyn ClientOsApi>, opts: CliArgs, config: C config_options, )); os_input.set_raw_mode(0); + let _ = os_input + .get_stdout_writer() + .write(bracketed_paste.as_bytes()) + .unwrap(); let (send_client_instructions, receive_client_instructions): SyncChannelWithContext< ClientInstruction, |
