Terminal Command

The Terminal command is used to open a Genero Workplace Window on the remote host or when launching an application in Text User Interface (TUI) mode.

A script containing the environment of the current configuration is generated when opening the Genero Workplace Window or when launching an application in TUI mode. The path to this script can be used in the Terminal command to set the terminals environment.

Placeholders

The terminal command uses the variables provided by the server configuration. Placeholders are used to reference those variables using the syntax $(<variable>).

Supported variables include:

  • Host - Name of the Genero Studio Server host.
  • Port - Port used for the SSH connection to the Genero Studio Server.
  • User - Name of the user as provided in the server configuration dialog.
  • EnvScript - Path to the generated environment script.

Default Commands

Default commands are dependent on the client and the server hosts types. To use the default command, click on the button beside the Terminal Command field.
  • The default terminal for a Windows® client is powershell.
  • The default terminal for a Linux® client is xterm.
  • The default terminal for a macOS™ client is Terminal. On MacOS, the terminal is not started directly. An OSA Script is used instead, so the provided command must be a valid OSA Script.
For example, the command to connect a Windows client to a Linux server is:
powershell -Command ssh -t -p $(Port) $(Host) . "$(EnvScript)"

The OSA Script to connect a MaxOS client to a Linux server is:

tell application "Terminal" to do script "ssh -t -p $(Port) $(Host)
        \"$(EnvScript)\""

Click the arrow icon beside the Terminal Command field to reset the terminal command to the default value.

Click Launch to open the terminal and test the configuration.