150 IRIS WORKSTATION GUIDE
Version 1.0
Appendix K:
% ls $BOOT
...
2. Create a sub-directory to test IRIS terminal programs generated with
the IRIS Terminal programming environment.
% mkdir $BOOT/test
The IRIS Terminal programming environment
makefile
’s install IRIS
terminal programs in
$BOOT/test
. After testing these IRIS terminal
programs, they should be moved to
$BOOT
.
3. The following
csh
commands define the environment variables for
the IRIS Terminal programming environment:
% setenv BASE /usr/progenv/engr
% setenv DESTDIR /usr/progenv/engr
% setenv MACHINE MC68000
% setenv SYSTEM SYSTEM5
4. Next, source the file
env
.
csh
(if you are using
csh
— the C shell) or
env
.
sh
(if you use
sh
— the Bourne shell).
% source env.csh
K.4 Adding Commands to the IRIS Graphics Library
To add a new command to the IRIS Graphics Library, you need to:
• Write and test (on the IRIS Workstation, if possible), the routine to
be added.
• Add this routine to the
$IRIS/srclterm/local.c
file.
• Make an appropriate entry into the command table
(
$IRIS/lib/lib.prim
). Section W.5 describes the entry format of the
$IRIS/lib/lib.prim
file.
• Run
makefile
’s that automatically generate a new version of the IRIS
terminal program and of the remote graphics library.
As an example, suppose you wish to make an IRIS Graphics Library command
that clears the screen to a given color, and then returns the number of bitplanes
on the system. The following routine on the IRIS Workstation does this:
short funnycolor(col)
Colorindex col;
{
color(col);
clear 0 ;
return getplanes();
}
If you call
x = funnycolor(BLACK)
on the remote host, the screen will clear to
BLACK
, and the number of available bitplanes will be returned in
x
.
Summary of Contents for IRIS Workstation
Page 1: ...IRIS Workstation Guide Version 1 0 Silicon Graphics Inc Mountain View California 94043 ...
Page 6: ...2 IRIS WORKSTATION GUIDE Version 1 0 Introduction ...
Page 24: ...20 IRIS WORKSTATION GUIDE Version 1 0 Hardware Installation ...
Page 30: ...26 IRIS WORKSTATION GUIDE Version 1 0 Operation ...
Page 48: ...44 IRIS WORKSTATION GUIDE Version 1 0 System Administration ...
Page 50: ...46 IRIS WORKSTATION GUIDE Version 1 0 Appendix A ...
Page 74: ...70 IRIS WORKSTATION GUIDE Version 1 0 Appendix B ...
Page 77: ...Version 1 0 IRIS WORKSTATION GUIDE 73 Appendix C e random gr error f wnrepaint ...
Page 78: ...74 IRIS WORKSTATION GUIDE Version 1 0 Appendix C ...
Page 92: ...88 IRIS WORKSTATION GUIDE Version 1 0 Appendix D ...
Page 102: ...98 IRIS WORKSTATION GUIDE Version 1 0 Appendix E ...
Page 103: ...Appendix F Manual Pages ...
Page 104: ......
Page 131: ...Version 1 0 126 IRIS WORKSTATION GUIDE Appendix F ...
Page 132: ......
Page 136: ...130 IRIS WORKSTATION GUIDE Version 1 0 Appendix H ...
Page 152: ...146 IRIS WORKSTATION GUIDE Version 1 0 Appendix J ...