-
BackgroundWe are developing a cross-platform application with SSH support. For safety concerns, we prefer to use ssh client provided by system (rather than introduce 3rd-party dependence). We've successfully started a SSH session with pseudo terminal ( We query the tty size using this command: stty size We also use Imperfect methods
One possible solution we found is that sending Another approach is to use ANSI escape code, ThoughtsSo the only left way we found seems to be sending signals to ssh process itself, either through fcntl.ioutil with TIOCSWINSZ equivalents (we are using Tauri to build this application so an implementation in rust is recommended, we are seeking for We seems to find implementation of similar functionalities like pty_change_window_size or definition of W32_SIGWINCH, but TTY PTY support in Windows OpenSSH section in wiki seems to be native based, which should be enough for common users, but seems not covering our situation. We've searched many documents but found little information, so we don't know whether these are the best practices, or we can use some other modern methods to achieve this requirement. If you've any ideas of implementing this, or just happen to face similar situations, don't hesitate to leave a message. Thanks for your concern and sincere help. 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Neither this nor any thoughts mentioned above works. Going to close this discussion for now since it doesn't seem promising. |
Beta Was this translation helpful? Give feedback.
-
Nevermind. Wrote a client to handle this. |
Beta Was this translation helpful? Give feedback.
Nevermind. Wrote a client to handle this.