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 usehost- Hostname the client should connect tousername- Username the client should useport- Optional port for SSH connectionsdebug- Toggle debug mode on the clientindex- 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- Theaspect_ratio_adjustmentdaemon configuration.
§Returns
A tuple containing the window handle and process handle of the client process.