I haven't been able to get this to work yet.
I'm in the process of writing a SSH Terminal client (a-la putty) and while I have almost everything that I want to work already done, I can't get the terminal to recognize any of the re-size commands to be recognized.
I have found the TSsh2Channel.SendWindowAdjust method, but I can't figure out how to actually get access to it.
TScSSHShell descends from TScSSHCustomChannel, but TSSH2Channel does not descend from TScSSHCustomChannel at all. It is derived from TSSHChannel which is, as far as I can tell, a stand alone class.
How do I get access to SendWindowAdjust?
Thanks,
Ryan.
How to Resize SSHShell (Terminal)?
To set information about the terminal, which is created on the server side for correct displaying results via TScSSHShell, you should use the TScSSHShell.TerminalInfo property. You can find more detailed information about this property in the SecureBridge help.
The TSSH2Channel class and the SendWindowAdjust method are internal and you shouldn't use them yourself.
The TSSH2Channel class and the SendWindowAdjust method are internal and you shouldn't use them yourself.
-
- Posts: 6
- Joined: Thu 22 Dec 2011 16:38
If the connection is first being made, then the TScSSHShell.TerminalInfo settings are correctly being used. But how do I get the Terminal session, on the server, to recognize the fact that I've expanded, or shrunk, the number of rows or columns?
I have tried sending ANSI terminal commands with no avail. Next I thought it might be something in the connection components I could adjust, since it does get set on login.
I know it can be done, since Putty can do it, I just don't know how it does it.
Ah well. If someone else has a notion of something I can try please let me know.
Thanks.
I have tried sending ANSI terminal commands with no avail. Next I thought it might be something in the connection components I could adjust, since it does get set on login.
I know it can be done, since Putty can do it, I just don't know how it does it.
Ah well. If someone else has a notion of something I can try please let me know.
Thanks.
-
- Posts: 6
- Joined: Thu 22 Dec 2011 16:38
While waiting for the official support from the developers I have added the necessary code to make it work for me in the mean time. Thanks again for the components, they work very well.Dimon wrote:Now SecureBridge does not support such functionality. We are planning to add its support in one of the next SecureBridge builds.