home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
rox.zip
/
cmdline.cmd
next >
Wrap
OS/2 REXX Batch file
|
1994-04-07
|
745b
|
33 lines
/*------------------------------------------------------------------
* cmdline.cmd :
*------------------------------------------------------------------
* 08-23-93 originally by Patrick J. Mueller
*------------------------------------------------------------------*/
if RxFuncQuery("RoxLoadFuncs") then
do
rc = RxFuncAdd("RoxLoadFuncs","Rox","RoxLoadFuncs")
rc = RoxLoadFuncs()
end
if (0 = RoxQueryClassLoaded("CmdLine")) then
rc = RoxLoad("CmdLine.rox")
kbd = RoxCreate("CmdLine")
say "Enter 'quit' to quit"
do forever
rc = charout(,"Enter line > ")
line = .getLine(kbd)
if (line = "quit") then
leave
say
say ".getLine returned '"line"'"
end
rc = RoxDestroy(kbd)