[Previous] [Contents] [Index] [Next]

Terminal Window (pterm)

This chapter introduces you to using the Photon terminal window. Topics include:

What is pterm?

The Photon terminal window (pterm) lets you run text-based QNX utilities applications from a window on your Photon workspace. You can open multiple terminal windows, and as a result, run a mix of text-based applications and Photon applications at the same time.

Note that many text-based applications that use the mouse (e.g. the vedit text editor) can use the mouse in a terminal window.

The pterm application runs a command interpreter, or shell, that interprets what you type. The available shells include the QNX shell (/bin/sh) and the Korn shell (/bin/ksh). The pterm application determines which shell to use as follows:

  1. If the SHELL environment variable is defined, it specifies the shell.
  2. If SHELL isn't defined, pterm uses the shell specified in your entry in the /etc/passwd file.
  3. If the shell isn't specified by either of the above, pterm runs /bin/sh.

For more information, see your system administrator.

pterm at a glance

Here's a sample pterm session:

Terminal window

In this session, you can see the QNX Shell prompt. From this prompt, you can run most of the commands and text-based programs available for QNX-without ever leaving Photon!

Starting and ending pterm

To open a pterm window, do one of the following:

You'll see a pterm window. You're now in the QNX Shell, where you can invoke text-based utilities and applications as you would from a QNX terminal or console.

To log off from your session and close the pterm window, do one of the following:

Using the pterm menu

The pterm window has its own menu for configuring the window, enabling or disabling the mouse, cutting and pasting text, and so on. To display the menu, point to any area within the pterm window and click the right mouse button.

pterm menu


Note: If the application running within the pterm window uses the mouse, you may have to press Alt before clicking the right mouse button.

Configuring pterm

To change the configuration for pterm, choose Properties... from the popup menu. The Terminal Properties dialog appears:

pterm Configuration dialog

You can use this dialog to change the size of the pterm window, the font for the window, and more.

Some character-based applications need to receive Alt key presses. To run such an application successfully, you need to configure its pterm window to pass the Alt to the application. To do this:

For more info on using and configuring pterm, see the Utilities chapter in the Photon Installation & Configuration guide.


[Previous] [Contents] [Index] [Next]