Skip to content
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: restart/reload terminal #15401

Closed
sparkchaser opened this issue May 23, 2023 · 14 comments
Closed

Feature Request: restart/reload terminal #15401

sparkchaser opened this issue May 23, 2023 · 14 comments
Labels
Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@sparkchaser
Copy link

It would be helpful if a terminal session could be re-started in situ after it closes.

Background:
I build firmware for embedded devices that I control via SSH. I set up a terminal profile that runs the command ssh.exe <IP> <args>, so now I can open a shell and connect to the device's console with just a keystroke. Everything works great, at least until I flash a new firmware image and the device reboots. The underlying ssh process terminates and I get the "process exited" message. That terminal tab is effectively dead and I have to open a new tab to reconnect. If I try to connect before the device is ready, the ssh command in the new tab will time out and I'll have another dead terminal window to close and re-open. Re-connecting to the device and cleaning up all the old terminal windows is a multi-step process, and I often have to do this every 10-15 minutes. It's even more annoying when using quake mode (which I am now addicted to) since the tabs aren't visible.

It would be extremely helpful if in cases like this there was a command to reuse the existing terminal window and re-start that session from scratch. Disconnect the dead process from the terminal, run the terminal's command again, and attach the new process to the existing terminal instead of spawning a new one. PuTTY has a "restart session" command that does exactly this, and it makes it much easier to work with remote devices that reboot or otherwise drop connection. Being able to restart the process and reconnect to the device with a keystroke or context menu option would make my workflow a lot smoother. Retaining the existing scrollback buffer would be a nice bonus, but that's certainly not a requirement.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels May 23, 2023
@lhecker
Copy link
Member

lhecker commented May 23, 2023

Have you tried Windows Terminal Preview 1.17 yet? It contains #14060 which sounds like it would work perfectly for you use case.

@lhecker lhecker added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label May 23, 2023
@microsoft-github-policy-service
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

1 similar comment
@microsoft-github-policy-service
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service microsoft-github-policy-service bot added the No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. label May 27, 2023
@microsoft-github-policy-service
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

9 similar comments
@microsoft-github-policy-service
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@sparkchaser
Copy link
Author

I just tested the v1.18 preview build, and it seems to do exactly what I need. It's like you read my mind! Keep up the excellent work, everybody.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. labels May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

2 participants