Skip to content

Add remote IP address to terminal window title#1388

Open
shirtwig wants to merge 1 commit into
mobile-shell:masterfrom
shirtwig:master
Open

Add remote IP address to terminal window title#1388
shirtwig wants to merge 1 commit into
mobile-shell:masterfrom
shirtwig:master

Conversation

@shirtwig
Copy link
Copy Markdown

@shirtwig shirtwig commented May 3, 2026

Description

This PR enhances the user experience by adding the remote server's IP address to the terminal window title.

Why is this needed?

Currently, the title only shows [mosh]. When a user has multiple Mosh sessions open, or when a session hangs due to network issues, it's difficult to identify which specific connection is affected. By adding the IP address (e.g., [mosh 1.2.3.4]), users can immediately see which host they are dealing with.

Changes

  • Converted the ip string to std::wstring.
  • Updated overlays.set_title_prefix to include the IP address.
  • Updated the notification engine's host identifier.

I'm a junior developer excited to contribute to Mosh! I've tested the build locally and verified the title updates correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant