Skip to main content

build_console_title

Function build_console_title 

fn build_console_title(
    resolved_username: &str,
    host: &str,
    port: Option<u16>,
) -> String
Expand description

Builds the console window title shown to the user.

§Arguments

  • resolved_username - Username after SSH config resolution.
  • host - Bare hostname.
  • port - Effective port (inline or CLI), if any.

§Returns

The console title string in csshw - user@host[:port] form.