migueldeicaza / SwiftTermApp

MIT License
305 stars 29 forks source link

Split session from SshTerminalView #108

Closed migueldeicaza closed 1 year ago

migueldeicaza commented 2 years ago

Currently the session management happens in SshTerminalView, which is fine, but some features would benefit from a clearer separation between a terminal running over an ssh2/channel in the ssh2/session and the ssh2/session itself.

We could move the session management out, and make SshTerminalView just a shortcut for "Launch Session if needed, then terminal over the channel".

The above would make it easier to reuse the session for new connections (currently we start a new one), tunnels, snippet execution and status updates.

migueldeicaza commented 2 years ago

Tracking this on a document:

https://paper.dropbox.com/doc/SwiftTermApp-Split-Session--BhUopOLusaqdNydA394FhKSQAg-2QL6qQGuo5fQZI3KZEvlB