Chapter 2
Overview of Commands and
Parameters
The windowing commands are divided among three chapters,
based on their functions.
Chapter 3 describes the
general commands.
These commands let
you create windows and buffers, access buffers, set switches, and
maintain the window environment.
Chapter 4 describes the
drawing commands.
Besides letting you
draw all kinds of images (circles, ellipses, arcs, and boxes, to
name a few), these commands also enable you to color areas or to
fill them with patterns.
Chapter 5 describes the
text commands.
Use these commands to
manipulate the text cursor and the text attributes. Text com
mands operate on hardware text screens (Screen Types 1 and 2)
and graphics windows if a font is selected.
Each command description lists the command's name, code, and
parameters. To call a Windowing System command using
OS-9's
display command, type
display,
followed by the command code
and the values you want to supply for the parameters.
Parameters
The following is a complete list of the parameter abbreviations
used in Chapters 3, 4, and 5. X111 parameters represent a single
byte of information.
Parameter Description
HBX
high order byte
of x
value
LBX
low order byte of x value
HBY
high order byte
of
y value
LBX
low order byte
of
y value
HBXo
high order byte
of
x-offset value (relative)
LBXo
low order byte
of
x-offset value (relative)
HBYo
high order byte
of
y-offset value (relative)
LBYo
low order byte of y-offset value (relative)
HBR
high order byte
of
radius
LBR
low order byte
of
radius
2-1
OS-9 Windowing System
Parameter Description
HBL
high order byte
of
length
LBL
low order byte of length
HSX
high order byte
of
size in x direction
LSX low
order byte
of
size in x direction
HSY
high order byte
of
size in y direction
LSY low
order byte
of
size in y direction
HBRx
high order byte
of
radius in x direction
LBRx low
order byte
of
radius in x direction
GRP GET/PUT buffer group number
(1-254)
BFN
GET/PUT buffer number
(1-255)
LCD logic
code number
PRN
palette register number
(0-15, wraps mod 15)
CTN
color table number
(0-63, wraps mod 64)
FNM
font number
CPX character position x
(0-xmax)
CPY character position y (0
-ymax)
STY screen type
SVS save switch (0
= nosave, 1= save area under
overlay)
SZX size in x (columns)
SZY size in y (rows)
XDR
dimension ratio x used with
YDR
as
YDRl
XDR
YDR
dimension ratio y
BSW binary switch (0 = off, 1=
on)
2-2