diff --git a/session.go b/session.go index fbe5692..92a180e 100644 --- a/session.go +++ b/session.go @@ -133,8 +133,8 @@ func (sess *session) Write(p []byte) (n int, err error) { m := len(p) // normalize \n to \r\n when pty is accepted. // this is a hardcoded shortcut since we don't support terminal modes. - p = bytes.Replace(p, []byte{'\n'}, []byte{'\r', '\n'}, -1) - p = bytes.Replace(p, []byte{'\r', '\r', '\n'}, []byte{'\r', '\n'}, -1) + // p = bytes.Replace(p, []byte{'\n'}, []byte{'\r', '\n'}, -1) + // p = bytes.Replace(p, []byte{'\r', '\r', '\n'}, []byte{'\r', '\n'}, -1) n, err = sess.Channel.Write(p) if n > m { n = m