home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff330.lzh
/
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