Department of Physics and Astronomy - Computer Facilities
Unix Environment for Physics - Programs

Brief Introduction to OpenWindows

The OpenWindows environment gives you access to a variety of desktop tools, all of which are overlaid on a workspace. Each application runs in its own window. When a window is not in use, you have the option of closing it (the application becomes an icon). Closing a window is quite different from quitting. An application that is represented by an icon is actually still running.

The window currently receiving input has keyboard focus. You can specify which window has keyboard focus by moving the pointer to the appropriate windows. You can reopen an icon (into a window) by moving the mouse onto the icon and double-clicking the mouse button.

Window Manager

The window manager is the mechanism that Openwindow uses to control the windows location, size, etc. The Openwindows default window manager is either olvwm or olwm (on Solaris machines). Olwm stands for OpenLook window manager and Olvwm stands for OpenLook Virtual Window Manager.

The window manager provides menus and mechanisms for controlling windows.

The main menu in a windowing system is the root or workspace menu. It can be found by clicking the MENU button (right mouse button) over the workspace (or background) area of the screen.

The arrows next to the Programs and Utilities options indicate that are further choices available by menu with this selection. The pushpin in the upper left hand corner is used to stick the window to the workspace. To unstick it, click the left mouse button over the pushpin.

The other most common menu is the window menu. It can be found in most window applications and is used to control the window. To access the window menu, position the mouse pointer over the title bar and click the menu button.

The window menu includes the following options:

A selection which is grayed out indicates an option that is unavailable at this time. Some options are toggle switches which will change as you select their opposite. (For example, Full size will change to Restore size so that you change the window back to it's previous size.)

Getting Help

Help can be obtained by right-clicking on the empty portion of the screen and choosing Help from the menu.. This will bring up a help viewer which will allow you to access on-line documentation on how to use Openwindows and the various applications found in Openwindows. This help viewer will open by default on your first session.

An tutorial which will show you how to use the OpenWindows and Desktop environment is also available. To view the tutorial click on the Desktop Intro button in the Workspace menu.

The Sun Manuals are available on line via the answerbook command. Included in the manual sets are the OpenWindows manuals. To start up answerbook, right-click over the Programs option of the Workspace Menu and select Answerbook.

OpenWindows Tools

There are several usefull OpenWindows tools available. Depending on how you set your default log-in options, you might have them already displayed when you start the session or you might call them from the menu.

Command Tool

The Command Tool is the OpenWindows interface to the Unix operating system. It has no control panel (such as you find with Text Editor) but does have a menu accessible when the pointer is in the window proper.

There are two primary features which will be highlighted here: command entry and the built-in editor. The primary purpose of the Command Tool is to enter Unix commands. To facilitate this the window always displays a Unix prompt as the last line in the text window. When you type characters, they will appear on that line. Note that the insertion point is always at some point on the command line. When you press the Return key whatever is entered on the line is passed to Unix for processing. However, there are a couple of mechanisms for making command entry easier. First, the command line can be edited using the mouse to move the insertion point in the line or to select a portion of the line. This type of command line editing is not available in most Unix environments. Also, a character sequence appearing anywhere in the text pane can be Copyed to the clipboard and then Pasted to the command line (at the current insertion point).

As a convenience, the Command Tool has an option to split the screen in half, with the upper half the Unix interface, and the lower half a Text Editor window. The editor window can be created by selecting the Enable option from the File Editor pull right menu on the main menu of the Command Tool (pointer in the text pane). Once enabled the editor can be removed by selecting the Disable option from the same menu option. It is possible to copy text from the Unix interface window (using the Copy key) and then pasting the copied text to the editor half of the window. This is convenient for producing and storing in a file a record of the execution of a program. You may find other times when this option is convenient.

Text Editor is the OpenWindows mouse-based editor. This tool makes it possible for you to create and modify text files. These files may contain program code or some type of documents (term paper, lab reports, etc.).

To help you understand the basic text editing operations and to learn how these operations are carried out in Text Editor, a tutorial text has been devised. After you load it into a Text Editor window, you can read the file and follow its directions to experience the use of the editor.

This is simple editing tool that we advise to be used for a smaller and simpler tasks. Use of Emacs or Xemacs as most versatile editing tools available is encouraged. You can launch them using emacs & or xemacs & commands from the terminal (console) window.

Print Tool

The PrintTool, which appears on the Extras submenu, gives you a way to monitor the printers connected to the network. This is a convenient tool to determine if something is wrong with a print job you have sent off. Sometimes, due to printer malfunction, your job will not be printed. Instead of trying to print the file again, start the PrintTool and check the print queue to see if you job actually got there or to see if the printer needs attention, e. g., more paper.

Mail Tool

Besides the editor and shell windows, the MailTool is perhaps the most used OpenWindows tool. MailTool is a windowed interface to electronic mail. You will find that you use this tool frequently to communicate with classmates, friends, and instructors. It can be used not only to facilitate communication but also to organize and maintain the messages which you have received and want to retain.

At the present time use of MailTool is discouraged at DPA. We suggest that you use Pine or Netscape for this purpose.

There are some other usefull tools (like Clock and PerformanceMeter) which you can explore on your own.


Please send any comments about this web page to Richard Vaughn
. Last modified: Wed Mar 29 16:13:11 EDT 2006