launch_client_console

Function launch_client_console 

fn launch_client_console<W: WindowsApi>(
    windows_api: &W,
    host: &str,
    username: Option<String>,
    port: Option<u16>,
    debug: bool,
    index: usize,
    workspace_area: &WorkspaceArea,
    number_of_consoles: usize,
    aspect_ratio_adjustment: f64,
) -> (HWND, HANDLE)
Expand description

Launchs a client console process with its own window with the given CLI arguments/options: host, username, port, debug.

Waits for the window to open, then re-arranges it based on the total number of clients, the size of the daemon console window and its index relative to the other client windows.

§Arguments

  • windows_api - The Windows API implementation to use
  • host - Hostname the client should connect to
  • username - Username the client should use
  • port - Optional port for SSH connections
  • debug - Toggle debug mode on the client
  • index - The index of the client in the list of all clients. Used to re-arrange the client window.
  • workspace_area - The available workspace area on the primary monitor minus the space occupied by the daemon console window.
  • number_of_consoles - The total number of active client console windows.
  • aspect_ratio_adjustment - The aspect_ratio_adjustment daemon configuration.

§Returns

A tuple containing the window handle and process handle of the client process.