-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ssh: support dumb terminals in ssh client #7627
ssh: support dumb terminals in ssh client #7627
Conversation
CT Test ResultsNo tests were run for this PR. This is either because the build failed, or the PR is based on a branch without GH actions tests configured. Results for commit d5a5199 To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts// Erlang/OTP Github Action Bot |
88e1d35
to
dd137f3
Compare
05136ba
to
8370c7c
Compare
8846aec
to
784f3db
Compare
784f3db
to
dd137f3
Compare
What's the status on this? Anything more you need from me? |
for fix part, @frazze-jobb must comment. for verification, a testcase is already merged to maint branch otp/lib/ssh/test/ssh_connection_SUITE.erl Line 768 in 67f87be
|
Unfortunately I must do something more clever on the server side, which would require some effort, and currently I am too busy. Don't expect any news on this the coming two weeks. I will look at it after that. |
dd137f3
to
e8ad79c
Compare
I'm hitting a very similar crash to what dialyzer found... so i think it is correct and not just a spec issue. |
Thanks, I had missed to update two calls |
Unfortunately i'm still getting "\e[1022D\e[1B" in the data (and some other failures i have not had time to look at). |
a595f24
to
2394c44
Compare
We've noticed the tests are not passing, and we are looking into it, but regarding "\e[1022D\e[1B" are your ssh client a dumb terminal? You can set environment variable TERM=dumb, and then it should act as if the client was running on a dumb terminal. |
My client is the OTP SSH client with {term, dumb}. |
my code (and the tests) expects this type {term, string()}, so if you have a dumb atom there instead of a string, then it will not work. |
Wops I see now that I was doing insert_chars requests instead of put_chars, thats why you saw \e[1022D\e[1B", not sure why I didnt see it before when I ran the test. But I saw them now this evening, so I have fixed it. Still failing a couple of tests though, Im working on it |
Nice! That indeed solves it for us. |
d24be6c
to
b7dc3ab
Compare
Alright I think I've fixed all the issues now |
All tests pass here too! |
assume a dumb terminal.
When pty options are not set, pty can be undefined, assume that we do not have a dumb terminal in that case. And fix off by one error in group:edit_line clause.
6357416
to
d5a5199
Compare
Solves #7555