home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Extra 1997 #5
/
AmigaPlus_Extra-CD_5-97.iso
/
online-tools
/
term
/
vt100
/
rexxsamples
/
testfor.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1990-03-02
|
406b
|
28 lines
/* */
trace R
portname = "REXX-VT100"
Port = openport(portname)
if Port = '00000000'x
then do
say "Couldn't open the port."
exit 20
end
address VT100-serial.device-00 "FORWARD" portname
trace ?R
/* Need to getpkt(port), getarg(packet), reply(packet,0) */
packet = getpkt(portname)
if packet ~= '00000000'x
then do
message.6 = getarg(packet)
call reply packet, 0
end
call closeport port
nop
exit