Change tab-title back to default after closing SSH-connection #5916

Closed
opened 2026-01-31 00:25:20 +00:00 by claunia · 1 comment
Owner

Originally created by @ad-on-is on GitHub (Jan 14, 2020).

Right now, when I ssh into a server (example.com), the tab-title changes to something like root@example.com:~. When I type exit or the SSH-connection self-closes, the title still persist.

This is somehow confusing, especially when SSH-connections auto-close, but the title imposes, as if the connection is still up.

Expected behavior:

  • Open a new tab (or window): title shows as specified in profiles.json
  • Open SSH-connection: title changes to root@example.com:~
  • Close SSH-connection: title changes back, to the setting from profiles.json

Actual behavior:

  • Open a new tab (or window): title shows as specified in profiles.json
  • Open SSH-connection: title changes to root@example.com:~
  • Close SSH-connection: title still root@example.com:~
Originally created by @ad-on-is on GitHub (Jan 14, 2020). Right now, when I ssh into a server (example.com), the tab-title changes to something like `root@example.com:~`. When I type `exit` or the SSH-connection self-closes, the title still persist. This is somehow confusing, especially when SSH-connections auto-close, but the title imposes, as if the connection is still up. ## Expected behavior: - Open a new tab (or window): title shows as specified in `profiles.json` - Open SSH-connection: title changes to `root@example.com:~` - Close SSH-connection: title changes back, to the setting from `profiles.json` ## Actual behavior: - Open a new tab (or window): title shows as specified in `profiles.json` - Open SSH-connection: title changes to `root@example.com:~` - Close SSH-connection: title still `root@example.com:~`
claunia added the Needs-TriageResolution-ExternalNeeds-Tag-Fix labels 2026-01-31 00:25:21 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Jan 14, 2020):

This is because your shell (cmd, powershell) is not resetting the title to what it was before ssh started. This isn't something Terminal can help.

@DHowett-MSFT commented on GitHub (Jan 14, 2020): This is because your shell (cmd, powershell) is not resetting the title to what it was before ssh started. This isn't something Terminal can help.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5916