SSH.NET icon indicating copy to clipboard operation
SSH.NET copied to clipboard

Terminal window resizing

Open jcoder76 opened this issue 10 years ago • 7 comments

Maybe I am looking at things improperly, but I was trying to find a way to support dynamic terminal resizing using SSH.NET as the connection. Naturally the remote endpoint is expecting a window size in order to properly form the console output wrapping, but all the window sizing code in SSH.NET seems to be hidden as internals.

Although you can set the initial size in ShellStream or Shell, there are no methods for changing that while a connection is alive and you can't seem to relinquish the ShellStream and create a new one in the same connection without crashing the whole application.

I am using 2013.4.7 stable.

jcoder76 avatar Jul 11 '16 14:07 jcoder76

No one is assigned to this issue, I haven't received any responses in 6 months, and no changes to this situation seem to have been implemented for 2016.0.0 which is the most current version as of the writing of this update.

To clarify this further, the component which has this feature is the ChannelSession in its SendWindowChangeRequest method. The type and its implemented interface are both marked internal, yet that method isn't used anywhere internally which indicates the absolute uselessness of this method being internal. Please expose this method somehow.

jcoder76 avatar Dec 12 '16 22:12 jcoder76

Something like this is all that is needed: https://github.com/Bugalex/SSH.NET/commit/f179b201a0e02f144f6dc9760ea9a7bb3931094e

jcoder76 avatar Dec 12 '16 22:12 jcoder76

@drieseng or @olegkap is anyone maintaining this code anymore?

It has been 9 months without any answers.

jcoder76 avatar Aug 17 '17 15:08 jcoder76

a new Beta was actually release yesterday, with tons of changes just need to take a look at the commits and issue updates. I believe it is not supported at the moment, you could do a PR based on that code and add some tests with permission of the person that did the fork.

darkoperator avatar Aug 17 '17 15:08 darkoperator

@drieseng is there any attempt to address this issue in future releases like the 2020 beta?

jerix8055 avatar Apr 30 '20 15:04 jerix8055

@drieseng any update on this? I can work on the PR, but would this feature be interesting to add? or is there an opinion on this?

osagga avatar May 13 '20 21:05 osagga

I have created a discussion #926 for all ShellStream related issues.

IgorMilavec avatar Feb 24 '22 15:02 IgorMilavec