Closed PonchoPowers closed 5 months ago
Version: 2023.0.1 Platform: Windows x64 Target: .net 8
Steps to reproduce are quite specific, because you would need access to the SSH server.
PuTTY does not exhibit the same behavior.
I changed the encoding to ascii and I can see lots of backspace characters, which is very odd...
Also, I spotted someone else who has had this issue in the past before the rewrite: https://library759.rssing.com/chan-6841305/all_p104.html
Sorry, I have fixed it by using ShellStream.Write instead.
The output is paged with one of the commands I am running on a server, and looks like so:
I'm using a stream reader with ReadLine() to get the output, so it was my surprise when I found the paging was continuing on, without me handling it. Not only that, the output is malformed. I expected to see:
The following is the code used to read the stream after a command is written to ssh:
Therefore, I'm not quite sure as to why the paging is continuing on when I'm reading, and secondly how the output is ending up with malformed characters and multiple lines as one line.
Any ideas what is happening here please?