home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / dev / e / amigae / src / dos / shell.e < prev   
Text File  |  1992-09-02  |  411b  |  16 lines

  1. -> Silly Shell Example
  2.  
  3. PROC main()
  4.   DEF inputstring[80]:STRING, con
  5.   IF con:=Open('con:10/10/400/100/MySillyShell v0.1',NEWFILE)
  6.     Write(con,'Shell by $#%! in 1991. "BYE" to stop.\n',STRLEN)
  7.     WHILE StrCmp(inputstring,'BYE')=FALSE
  8.       Execute(inputstring,0,con)
  9.       Write(con,'MyPrompt> ',STRLEN)
  10.       ReadStr(con,inputstring)
  11.       UpperStr(inputstring)
  12.     ENDWHILE
  13.     Close(con)
  14.   ENDIF
  15. ENDPROC
  16.