diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-16 08:43:37 +0000 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-16 08:43:37 +0000 |
commit | 0c36ec3da9f97020d43cbdf47d36c6ed9275b4e5 (patch) | |
tree | 0226e2c32157ae2f35751070cf31f77cfc0cb306 | |
parent | ed3a55508532fbaf6359abcc6e6a29192139cc9c (diff) | |
download | teleterm-0c36ec3da9f97020d43cbdf47d36c6ed9275b4e5.tar.gz teleterm-0c36ec3da9f97020d43cbdf47d36c6ed9275b4e5.zip |
stop translating crlf during watch
this was moved to the server end
-rw-r--r-- | teleterm/src/cmd/watch.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/teleterm/src/cmd/watch.rs b/teleterm/src/cmd/watch.rs index b872706..c3ff4ae 100644 --- a/teleterm/src/cmd/watch.rs +++ b/teleterm/src/cmd/watch.rs @@ -342,19 +342,6 @@ impl<S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Send + 'static> ) -> Result<()> { match msg { crate::protocol::Message::TerminalOutput { data } => { - let data: Vec<_> = data - .iter() - // replace \n with \r\n since we're writing to a - // raw terminal - .fold(vec![], |mut acc, &c| { - if c == b'\n' { - acc.push(b'\r'); - acc.push(b'\n'); - } else { - acc.push(c); - } - acc - }); // TODO async let stdout = std::io::stdout(); let mut stdout = stdout.lock(); |