-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: option to relaunch a profile when it exits #4379
Comments
Thanks for the request! I've triaged it and converted it into a request to relaunch a profile when it exits. |
For now, you can relaunch a new copy of that profile with ctrl+shift+d ( |
Would relaunching the profile preserve the screen buffer, window title, and WT_SESSION environment variable? |
I wrote a duplicate for this (which I have now closed) that might contain some more context: #10075 But in short, this happens all the time when in hibernation or on bad Wifi, and I want to preserve my screen buffer etc. to continue where I left of. One solution would be to display some text at the bottom of the buffer similar to how like done here in the April 2021 release of VS Code: https://code.visualstudio.com/updates/v1_56#_untitled-editors-hint. So a But I also do like the |
We need to reconnect in the same tab.
|
I have created a very simple little powershell script one can utilize to sort of replicate this behavior. Save the following script to:
Then you can put your SSH or whatnot call nested within this function call to loop it on exit. For example I put the following as my command for my profile's Command Line field:
Then you get something like the following: |
Highly needed feature for the reasons mentioned above. WT is great but can be even better and the greatest terminal emulator out there. |
In wt profile use: wt_ssh.bat 192.168.1.100 modify ssh %1 to you command. No need of powershell to execute it. No policy change needed. n followed by enter will terminate and exit
|
Change |
I would also like this feature but if anyone else stumbles here like I did here is my one-liner workaround. Automatically restart ssh in a loop: I couldn't figure out how to use '&' in the ssh command because windows cmd/for will interpret that. There is probably a way to escape it. |
🎉This issue was addressed in #14060, which has now been successfully released as Handy links: |
If I have a ssh.exe session open to another machine using ssh.exe (Openssh) and I disconnect from the network the session hangs in the Windows Terminal. I must close the tab. Could we make the session resume by pressing enter? Or is there a better way to handle this?
{
"guid": "{5f77e6d6-8215-45d0-be70-a277c72accf6}",
"hidden": false,
"name": "user@host",
"commandline": "ssh.exe user@host",
"fontFace": "Consolas",
"fontSize": 12,
"icon": "%USERPROFILE%\AppData\Local\lxss\bash.ico"
},
The text was updated successfully, but these errors were encountered: