-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
\r \n line insertions on Darwin to Linux in terminal #227
Comments
The difference would appear to be in
When executed from a terminal, the if c.hasTTY {
verbose("c.session.RequestPty(\"ansi\", %v, %v, %#x", c.Row, c.Col, modes)
if err := c.session.RequestPty("ansi", c.Row, c.Col, modes); err != nil {
return fmt.Errorf("request for pseudo terminal failed: %v", err)
}
} Hypothesis: |
Aside: why does: func verbose(f string, a ...interface{}) {
v("CPU:"+f+"\r\n", a...)
} append a |
I hypothesize that this happens because of how Seems like |
I have discovered something that seems odd. Maybe it's working as intended but it results in a lot of spurious diff mismatches for me.
When I run
cpu
without a Pty (i.e. by middle clicking in Acme / Edwood), command results do not contain\r
characters. I.e.:But when I run
cpu
with a Pty (i.e. by typing in a conventional terminal, it does contain\r
as part of the line endings. I.e.:The text was updated successfully, but these errors were encountered: