home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d5xx
/
d576
/
termii.lha
/
TermII
/
English
/
Documentation
/
PANEL.doc
< prev
next >
Wrap
Text File
|
1991-12-22
|
4KB
|
117 lines
June 21st 1991
Term II
version 1.1
(c) 1990,1991 - Eric GONTIER
PANEL.doc
INTRODUCTION
The "panel" is a set of 25 buttons. The user can set a name
and a Term II command to each button. The command can
anything recognized by Term II, like sending string (with
the "serial_send" command), or starting an ARexx script
(with the "rexx" command). The panel is an XCMD (eXternal
CoMmanD), that is a process which is going to run in the
same time than the other Amiga processes (including Term II
and/or other XCMDs)
STARTING THE PANEL
There are several ways to start the panel. However, to make
it as easy as possible to used, there is a menu entry
"Panel..." in the main menu (short or long menu) of Term II
for an automatic start. The user can also start the panel
with the "panel" command, which can be used from an ARexx
script or even an other XCMD.
The panel can also be started "by hand" that is by typing
"run panel" from the CLI (the panel program must be in the
current directory, and Term II should have been already
started). This will install the panel as an AmigaOS
process, which is waiting for a signal from Term II to
start. From Term, the user will wake up the panel with the
command xcmd_start "PANEL". (see the file XCMD.doc for more
informations on how to start an XCMD with the xcmd_start
command, and how to write your own XCMDs).
Programmers should be awared that the message port used by
the panel is called "PANEL".
The panel will not be loaded in memory until the user
select it from Term. It will be unloaded automatically when
quitting Term.
The panel will read the file called panel.config to
initialize its buttons. It is a text file, which can be
edited in any text editor. See the paragraph CONFIGURING
THE PANEL.
USING THE PANEL
Using the panel is very simple : just click the button of
your choice to execute the command which as been set to
this button.
CONFIGURING THE PANEL
User will configure the panel with a text editor by editing
the fille called "panel.config". In the Term II
distribution, the panel has been configured for Calvacom, a
French information service.
Each line of panel.config is corresponding to a button.
Empty lines are ignored, heading spaces are ignored, and
lines beginning with a # are comments.
Look at the following example :
Calva; serial_send "ATDT16143061111\n"
This creates a button called "Calva". If the user click it,
Term II will excute the command :
serial_send "ATDT1614306111\n"
dialing the phone number to connect to Calvacom. The ";" is
used to separate the button name to the command assigned to
the same button.
It is possible with the "rexx" command to start ARexx
script with a single click, allowing the building of more
complex actions, like an automatic download of files.