Chapter 1

Types of OS-9 Windows

Unlike many operating systems, OS-9 has a built-in windows

program. This driver, the Windowing System, lets you lay one or

more smaller screen displays, called windows, on your screen

display.


With these windows, you can perform several tasks at the same

time. For example, suppose you are writing a business letter

using a word processor in one window. You can go to a spread

sheet program in another window, get a price quote you need,

return to the word processor, and include the price in the letter.


The Windowing System allows as many windows as your com

puter's memory can support, with a maximum of 32 at one time.


In OS-9, there are two types of windows: device and overlay.

Device Windows

A device window is one that can run a program or utility. This

is the type of window you would use in the word processor/

spreadsheet example given above. Each device window acts as an

individual terminal.


The device windows are designated as devices /wl - /w7. You

open a device window as you do any other OS-9 device. You tell

OS-9 the window's parameters including whether the window is

for text or graphics. If you want to run a process in the window,

you can start an execution environment, such as a shell, on the

window. (See "Opening a Device Window," later in this chapter,

and the DWSet command in Chapter 3 . )


Note: If you want only to send output to the device win
dow-without running a process in the window-do not
start a shell on the window.

Device windows cannot overlay each other, and their boundaries

cannot overlap.


1-1
OS-9 Windowing System

Overlay Windows

An overlay window is a window that you open on top of a device
window. (You can place overlay windows over other overlay win
dows, but there must always be a device window at the bottom of
the stack.) The purpose of overlay windows is to display com
puter dialog. You cannot fork a shell to an overlay window; how
ever, you can run a shell in an overlay window. Overlay windows
assume the screen type of the device windows they overlay.

Opening a Device Window

To open a device window, follow these steps:
1. If you want to allocate memory for the window, use OS-9's
iniz command. Type:


























1-2





- wcreate -5= 2 20 10 40 10 01 00 00 >/w2
ENTER












































OS-9 Windowing System

Opening an Overlay Window

To open an overlay window, use the Overlay Window Set func
tion. (See OWSet in Chapter 3, "General Commands.")

1-4