 DEMO		 --- information about this demo
	This program is a restricted version of Master V5.7 that allows you
to do some serious work only for a limited time. The actual version (including
printed manual, more detailed helpfile, disk-tutorial, batchfiles and modules)
can be ordered at the following address (the price is DM 198,- plus shipping
costs) :
		Naumann & Roeder GbR
		Am Sportplatz 22
		D-6620 Voelklingen
		W-Germany

 HELP            --- give some help
           Form : HELP [[<topic>] [<helpfile>]]
       Examples : HELP RS232
                  HELP
		  HELP COMPILER A:\PASCAL\PASCAL.HLP
		  HELP PETER C:\HELPFILES\BIRTHDAY.HLP

 PRINTF		 --- formatted output
           Form : PRINTF [formatstring {argument}]
       Examples : PRINTF "%-30s : %lx\n" text num

 MODULE		 --- start a memory-resident Master-extension
	   Form : MODULE [<filename>]
       Examples : MODULE popup	(installs the MENU-function)

 DIR or LS and LL --- display contents of directory
           Form : (DIR | LS | LL) {<filespec>}
        Options : D : H : S : N : A : V : U : I : R : P : E : F :
        Default : normal files

                  LL does the same as LS -F

       Examples : LS
                  LS B: -A
                  LS *.PRG -F
                  LL MASTER.* B:\ *.C
                  LS -R

 CAT or TYPE     --- show file contents
           Form : (CAT | TYPE) {<filespec>}
        Options : L : N : M : P : I : C :
        Default : normal output of the specified files

       Examples : CAT MASTER.SET
                  CAT *.C -NL
                  CAT *.C *.DOC
		  CAT *.pic -im


 RM or DELETE or ERA or ERASE or DEL --- remove files
           Form : (DEL | DELETE | ERA | ERASE | RM) {<filespec>}
        Options : I : O : Y :
       Examples : RM B:\C_FILES\
                  RM *.BAK *.HLP
                  DEL -O
                  ERA *.* -I

 BYE or EXIT     --- leave Master and go back to the calling program
           Form : (EXIT | BYE)

 CLS             --- Clear Screen
           Form : CLS

 INVERSE         --- output is white on a black background
           Form : INVERSE

 NORMAL          --- output is black on white background; this is the default
           Form : NORMAL

 LN              --- installation of symbolic links
           Form : LN [<copy> [<original>]]
       Examples : LN C:\AUTO\MASTER.PRG D:\TOOLS\TOS\MASTER.PRG
                  LN HARDDISK E:\
		  LN \USR\INCLUDE\ D:\LANGUAGE\C\INCLUDE\
		  LN @:\TEMP @:\TMP
		  LN @:\PROG.RSC C:\RESOURCE\PROG.RSC
		  LN HARDDISK
		  LN

 UNLINK          --- remove a LINK from the list of links
           Form : UNLINK {<link>}
        Options : O :

 CD              --- change directory or show current directory
           Form : CD [<pfad>]
        Options : N : S :
       Examples : CD
                  CD \
                  CD E:\TMP
                  CD C_FILES\
                  CD C_FILES         (identical to the previous)

 MD or MKDIR     --- create a new directory
           Form : (MD | MKDIR) <dirname> {<dirname>}
       Examples : MD C_FILES
                  MKDIR TEST DOCUMENT COMPILER
                  MD C_FILES\TEXTE

 RD or RMDIR     --- removing of directories
           Form : (RD | RMDIR) <dirname> {<dirname>}
       Examples : RD C_FILES
                  RD COMPILER TEXTE

 CHMOD           --- change file attributes
           Form : CHMOD <mode> [<filespec> ... ]
		  mode :
                  0 : readable and writable
                  1 : read-only           (r/o)
                  2 : hidden file	  (hid)
                  4 : system file         (sys)
                  8 : diskname            (vol)
                 10 : directory           (DIR)
                 20 : written and closed  (w/c)

       Examples : CHMOD 1 *.C          write-protect all C-files
                  CHMOD 3 TEST.PRG     write-protect and hide TEST.PRG
                  CHMOD 22 YY          absolute nonsense (but possible)

 REN or RENAME   --- renaming of files
           Form : (REN | RENAME) <exactfile1> <exactfile2>
       See Also : MOVE, MV

 CP or COPY      --- copying of files
           Form : (COPY | CP) <source> {<source>} [<dest>]
        Options : O : N : D : T : I : V : Y : F : A : C : <n>: K :
        Default : asking
       Examples : CP A: B:
                  COPY MASTER.PRG B:MASTER\
                  CP *.C -O
                  CP A:\MASTER -N

 EVAL            --- evaluate a mathematical expression
           Form : EVAL <upn-expr>
       Examples : EVAL 5 6 -
                  EVAL count 1 +
                  EVAL 45 5 6 + * 4 -

 TIME            --- read or set the internal clock
           Form : TIME [<timestring> [<datestring>]]
	Options : S :
       Examples : TIME 22:09
                  TIME 6:03:20 7.2.87

 DATE            --- read or set the internal calendar
	Options : S :
           Form : DATE [<datestring> [<timestring>]]
       Examples : DATE 20.9.86

 VERSION         --- show version numbers of Master and the operating system
           Form : VERSION

 SHOW            --- display free bytes on disk or in memory
           Form : SHOW {<drive>}
        Options : M : V :

 MV or MOVE      --- copy files (source is renamed or deleted after copy)
           Form : (MOVE | MV) <source> {<source>} [<dest>]
        Options : O : N : D : T : V : Y : I : F : C :

 CHRONO          --- set or clear the internal stop-watch
           Form : CHRONO [<timestring>]

 ELAPSED         --- show elapsed time
        Options : L :
           Form : ELAPSED

 SHRINK          --- shrink available main memory
           Form : SHRINK
        Options : <n> : K :
       Examples : SHRINK -128K

 FREE            --- give back SHRINK'ed memory
           Form : FREE

 FILES           --- display files and put in environment var
           Form : FILES [<file>..]
        Options : P : K : D : <n> :
        Default : -128
       Examples : FILES
                  FILES -98 B:*.C
                  FILES A:\TMP\  ..\*.PAS
		  FILES -K NEU.PAS ALT.[CH]
       See Also : LS, DIR, LL, STATUS

 FORMAT           --- format a floppy-disk
            Form : FORMAT drive [<volumelabel>] [<starttrack>
					[<endtrack> [<sectors/track>]]]
         Options : S : O : N :
        Examples : FORMAT A
                   FORMAT B TESTDISK 81 81 10 -S-N
                   FORMAT A 0 81 10 -O

 HISTORY          --- manipulate history
            Form : HISTORY [<n>]
	 Options : T : P : W :
        Examples : HISTORY
		   HISTORY -W 2
                   HISTORY 40
		   HISTORY -t >all.bat

 KEY              --- set function key strings
            Form : KEY [([+]F<n>|M(L|R)) [<string>[@]]]
        Examples : KEY F1 COMP TEST.C
                   KEY MR EDIT TEST.C	;: right mouse-button
                   KEY +F3

        See Also : SAVE, RESTORE

 SAVE             --- save function-keys, aliases, links and variables (set and
		   setenv)
            Form : SAVE [<file>]
	 Options : G :
	 Default : A:\MASTER\MASTER.SET

 RESTORE          --- restore saved state
            Form : RESTORE [<file>]
         Options : M : N : G :
	 Default : A:\MASTER\MASTER.SET

 DUMP             --- show files as HEX/ASCII-dump
            Form : DUMP {<filespec>}
         Options : N : D : <n> :
        Examples : DUMP *.PRG -N
                   DUMP EDIT.PRG EDIT.RSC -D
		   DUMP -1024 A.PRG


 MORE and PAGE    --- show files in seperate pages
            Form : (PAGE | MORE) {<filespec>}
         Options : N : L : I :
        Examples : MORE *.C
                   PAGE MASTER.HLP TEST.DOC

 SET and SETENV   --- set local and global variables
            Form : SET [<variable> [<value>]]
		   SETENV [<variable> [<value>]]
        Examples : SET OPTION -debug -nolist
                   SETENV LINES 20	! set maximal lines for MORE ...
                   SET
                   SETENV USERRED
                   SET Lines $LINES
		   SETENV
		   SETENV UNIX 2	! switch to extended unix-mode

 UNSET and UNSETENV --- remove variables
            Form : UNSET {<variable>}
		   UNSETENV {<variable>}
	 Options : O :
        Examples : UNSET OPTION
                   UNSET klein
		   UNSETENV WRAP
		   UNSET
		   UNSETENV

 ALIAS            --- give a new name to an old (set of) command(s)
             Form : ALIAS [<name> [<command>]]
         Examples : ALIAS rm RM -I
                    ALIAS time Time \; DATE		or better
		    ALIAS time 'Time ; DATE'
                    ALIAS ed c:\util\edit.ttp $*
		    ALIAS ed
		    ALIAS exec cls \; $* \; cls		or better
		    ALIAS exec 'cls ; $* ; cls'
		    ALIAS @ Setenv \;:
		    ALIAS

 UNALIAS           --- remove ALIASes
             Form : UNALIAS {<name>}
	  Options : O :

 PWD               --- show default-directories on all drives
             Form : PWD

 COMP              --- compare two files (bytewise)
             Form : COMP <file1> [<file2>]
	  Options : S :
         Examples : COMP TEST.C TEST.BAK
                    COMP B:\*.PAS -P
                    COMP MENU.BAT E:
         See Also : DIFF

 RS232             --- show or set parameters of serial line
             Form : RS232 {<parameter> <value>}

                    RS232 BAUD <b> :
                     here <b> can be :

                       19200                 600
                        9600                 300
                        4800                 200
                        3600                 150
                        2400                 134
                        2000                 110
                        1800                  75
                        1200                  50

          ......................................
                   RS232 PARITY <p>
                     Here <p> can be :

                        ODD
                        EVEN
                        NO

          ......................................
                   RS232 BITS <b>
                     here <b> can be :

                        5, 6, 7 or 8

          ......................................
                   RS232 FRAME <f>
                     here <f> can be :

                        0               - synchronous mode
                        1, 1.5  or 2    - asynchronous mode

          ......................................
                   RS232 FLOW <f>
                     here <f> can be :

                        XON/XOFF          - software - handshake
                        RTS/CTS           - hardware - handshake
                        NO                - no handshake

          ......................................

 DIFF              --- search for differences in 2 textfiles
             Form : DIFF <file1> [<file2>]
         Examples : DIFF T.PAS T.BAK
                    DIFF E:PAS\
                    DIFF WORK.FOR B:
         See Also : COMP

 PACK and UNPACK   --- compress files and restore original contents
             Form : (PACK | UNPACK) <source> {<source>} [<dest>]
          Options : O : N : D : M : T : V : Y : I : C :
         Examples : PACK T.C T.PAK
                    PACK *.PAS A:\PACK\

 ZCAT              --- show compressed files
             Form : ZCAT {<filespec>}

 MEMDUMP           --- Hex- and ASCII-Dump of the main memory
             Form : MEMDUMP [<start> [<end>]]
         Examples : MEMDUMP
                    MEMDUMP 70234
                    MEMDUMP 4425 4475

 TOUCH             --- update time and date stamp of files
             Form : TOUCH {<file>}
	  Options : C : I :
         Examples : TOUCH *.C *.H ED.TTP
		    TOUCH -C	                   ! *.* or $DEFAULT as Default
		    TOUCH -I *.C

 GREP              --- search for a regular expression in files
             Form : GREP <pattern> {<file>}
          Options : M : L : V : I : C : P :
                   the following chars form a regular expression

                   '^'  - start of line
                   '$'  - end of line
                   '.'  - any character except newline
                   ':a' - any alphabetic character
                   ':n' - any alphanumeric char (a-z,0-9)
                   ':d' - any digit
                   ': ' - blank, tab or other control-characters
                   ':<' - start of word
                   ':>' - end of word
                   '+'  - repeat previous expression one or more times
                   '*'  - repeat previous expression zero or more times
                   '-'  - previous expression can be ommited
                   '[]' - any char of the specified set ('^' immediately after
			  '[' negates and ranges can be specified with '-')
                   '\'  - mask the next character (example: '\$' means '$')
                    x   - any other char must match against the input exactly

         Examples : GREP "^#define: *.*:d+$" *.c
                     searches C-defines for a number
                    GREP ".*(.*var.*)" *.PAS
		    GREP -P printf *.C ==> xx ; EDIT $xx

 FIND or FGREP     --- Suchen eines Strings in Textfiles
             Form : (FIND | FGREP) <suchstring> {<filespec>}
          Options : N : L : I : V :
         Examples : FIND "()" *.C
                    FGREP "  BEGIN" *.PAS *.BAK -IL
                    FIND "(""%" *.C -V

 L25 and L50       --- set the number of lines on the (mono) screen
             Form : (L25|L50)

 LOCK              --- write-protect a logical drive
             Form : LOCK {<drive>}
	  Options : H :

 UNLOCK            --- write-enable a logical drive
             Form : UNLOCK {<drive>}
	  Options : O : H :

 KBD		   --- set or show the keyboard defaults
	     Form : KBD [{<keyword>}]
		   keyword:
			[NO]REPEAT
			[NO]KEYCLICK
			[NO]BELL
			[NO]MOUSE
         Examples : KBD MOUSE	;: mouse-movements simulate cursor-keys
		    KBD NOREPEAT	;: no autorepeat

 STATUS            --- show status-variables of Master
             Form : STATUS

 DIRS and POPD and PUSHD  --- manipulation of the directorystack
	     Form : PUSHD {<dirname>}
		    POPD
		    DIRS
	  Options :   S : <n> :
         Examples : PUSHD A:\MASTER	we go to A:\MASTER
		    PUSHD A:\BATCH	we go to A:\BATCH
		    PUSHD		we go back to A:\MASTER
		    POPD		and again to A:\BATCH
		    DIRS		on the stack is the old directory
		    POPD -3		get the third entry

 PAUSE             --- pause a batchjob
             Form : PAUSE

 ERR               --- show error-code of previous command or set it
             Form : ERR [<n>]

 SHIFT             --- shift parameter list of batchfiles
             Form : SHIFT
	  Options : <n> :

 REWIND            --- reset the parameterlist at the starting point
             Form : REWIND

 QUIT              --- leave one or more batchfiles and set error code
             Form : QUIT [<ret>]
	  Options : <n> :

 REM               --- display text at the console
             Form : REM [<string>]

 GOTO              --- go to a label in a batchfile
             Form : GOTO <label>
         Examples : GOTO START:
                    GOTO COMPILE
                    GOTO L1

 ASK and GET       --- read from the keyboard
             Form : ASK ["<string>"] <variable>
                    GET ["<string>"] <variable>
         Examples : ASK ANSWER
                    ASK "COPY NOW ? : " EINGABE
                    GET "Your choice : " choice

 BEEP              --- ring the bell
             Form : BEEP [<n>]
          Options : <n> :
         Examples : BEEP
                    BEEP -3

 SLEEP             --- interrupt execution for <n>/10 seconds
             Form : SLEEP <n>

 SET?              --- is this (global/local) variable set ?
             Form : SET? variable
	  Options : G : L :

 CDR               --- show rest of variable
             Form : CDR <variable>
	  Options :   C : <n> : G :

 CAR               --- show start of variable
             Form : CAR <variable>
	  Options :   C : <n> : O : G :

 MENU		   --- display and execute popup-menus
	     Form : MENU [<menuspec>]
	   Syntax : <menuspec> == '['['#'<rows>] [<item>] {'|' <item>} ']'
		    <item> == %<val>[<menuspec>]<string>
	  Options : none
	  Default : show the last menu defined
     Beschreibung : A PopUp-Menu is displayed. <menuspec> has the following
		    form:
		      [ : start a new (sub-)menu
		      ] : finish menu
		      | : seperates menu-entries
		     #n : change maximal number of rows (default 5) to n
		     %n : change return-value (Default: rank of the entry) to n
		    The selected entry is returned in the ERR-variable when an
		    entry is selected with a mouse-click. Submenus have to be
		    specified first. '#' has a special meaning only immediately
		    after '[' and '%' only after '[' or '|' (or the '#'-spec).
         Examples : MENU [#2%4[#1 Eins | Zwei | Drei] Vier |%5 Fuenf ]
		    MENU
		    SETENV DELIMITER  | ; FILES -K; MENU [ $FILES ] ;
		     SET value $? ;
		     EVAL value 2 * 1 - ->value;
		     CAR -${value}o FILES -> f ;
		     MORE $f		(show selected file)

 WHICH             --- show command associated with name (intern, alias, extern)
             Form : WHICH {<command>}
         Examples : WHICH test make ls foreach
         See Also : ALIAS


 EXPORT            --- export variable to the next global level
	     Form : EXPORT {<var>}
         Examples : EXPORT var1 var2
		    EXPORT
         See Also : SET, SETENV, UNSET, UNSETENV

 OPEN              --- open a file for sequential read or show all open streams
	     Form : OPEN [[<stream>] <datei>]
         Examples : OPEN
		    OPEN address.txt	;: streamname equals filename
		    OPEN infile address.txt
         See Also : CLOSE, GETLINE

 CLOSE             --- close open streams
	     Form : CLOSE <stream> {<stream>}
          Options : O :
         Examples : CLOSE mainfile infile
         See Also : OPEN, GETLINE

 GETLINE           --- read a line from an open stream
	     Form : GETLINE <var> [<stream>]
         Examples : GETLINE inline infile
		    GETLINE inline     ! read from the last accessed file
         See Also : OPEN, CLOSE

 JOBS              --- display active jobs
	     Form : JOBS
	  Options : <n> :
         See Also : KILL

 KILL              --- terminate stopped programs
	     Form : KILL %<job-id>
         See Also : JOBS
---
000000 DEMO
000440 HELP
000664 PRINTF
000801 MODULE
000952 DIR LS LL
001348 CAT TYPE
001656 RM DELETE ERA ERASE DEL
001934 BYE EXIT
002038 CLS
002098 INVERSE
002187 NORMAL
002294 LN
002627 UNLINK
002746 CD
003043 MD MKDIR
003258 RD RMDIR
003427 CHMOD
004082 REN RENAME
004212 CP COPY
004544 EVAL
004741 TIME
004935 DATE
005095 VERSION
005202 SHOW
005327 MV MOVE
005519 CHRONO
005621 ELAPSED
005713 SHRINK
005853 FREE
005928 FILES
006263 FORMAT
006563 HISTORY
006770 KEY
007041 SAVE
007223 RESTORE
007371 DUMP
007602 MORE PAGE
007809 SET SETENV
008223 UNSET UNSETENV
008463 ALIAS
008892 UNALIAS
008989 PWD
009079 COMP
009340 RS232
010942 DIFF
011185 PACK UNPACK
011456 ZCAT
011543 MEMDUMP
011758 TOUCH
012004 GREP
013354 FIND FGREP
013641 L25 L50
013743 LOCK
013853 UNLOCK
013968 KBD
014232 STATUS
014318 DIRS POPD PUSHD
014720 PAUSE
014790 ERR
014893 SHIFT
015001 REWIND
015101 QUIT
015229 REM
015319 GOTO
015504 ASK GET
015781 BEEP
015935 SLEEP
016031 SET?
016152 CDR
016266 CAR
016385 MENU
017491 WHICH
017691 EXPORT
017889 OPEN
018159 CLOSE
018347 GETLINE
018581 JOBS
018692 KILL
001169
