home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 5 / FreshFish_July-August1994.bin / bbs / dev / amiga_e-2.1b.lha / Amiga_E-2.1b / Sources / Examples / Shell.e < prev    next >
Encoding:
Text File  |  1993-10-05  |  446 b   |  16 lines

  1. /* TurboShell in Amiga E. note that we use our own CON: */
  2.  
  3. PROC main()
  4.   DEF inputstring[80]:STRING, con
  5.   IF con:=Open('con:10/10/400/100/TurboShell v0.1',NEWFILE)
  6.     Write(con,'Shell by $#%! in 1991. "BYE" to stop.\n',STRLEN)
  7.     WHILE StrCmp(inputstring,'BYE',ALL)=FALSE
  8.       Execute(inputstring,0,con)
  9.       Write(con,'Turbo> ',STRLEN)
  10.       ReadStr(con,inputstring)
  11.       UpperStr(inputstring)
  12.     ENDWHILE
  13.     Close(con)
  14.   ENDIF
  15. ENDPROC
  16.