E










			$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
			$                                                             $
			$ $     $ $$$  $$$  $$$$   $$$   $$$  $   $ $$$$$ $     $     $
			$ $$   $$  $  $   $ $   $ $   $ $   $ $   $ $     $     $     $
			$ $ $ $ $  $  $     $   $ $   $ $     $   $ $     $     $     $
			$ $  $  $  $  $     $$$$  $   $  $$$  $$$$$ $$$   $     $     $
			$ $     $  $  $     $ $   $   $     $ $   $ $     $     $     $
			$ $     $  $  $   $ $  $  $   $ $   $ $   $ $     $     $     $
			$ $     $ $$$  $$$  $   $  $$$   $$$  $   $ $$$$$ $$$$$ $$$$$ $
			$                                                             $
			$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$









					Summary of microshell commands
						   FPL 9.1986
F

	Summary of microshell commands
	------------------------------

char	meaning								example

 >	output redirection of console to a file				STAT >filename
 >*	output redirection of printer to a file				PIP LST:=file >*prnfile
 <	input redirection						ED file <SCRIPT
 |	pipe output to input of next cmd				PRG1|PRG2|   STAT *.*|PIP LST:=CON:
 ^	next character to be its control equivalent
 : ;	comment
 +	echo redirected output to console
 -	return "CHARACTER READY" to console input status calls
 ;	command separator
 "	treate arguments						ECHO "THIS IS ONE ARGUMENT"
 \	ignore special meaning of next character
 %	argument substitution in shell command files ("%0"..."%18")
 !	Word-Star-like command line editing
	 ^D	cursor forward
	 ^S	cursor back (1 char)  non-destructive
	 backspace		"
	 ^F	cursor forward (1 word)
	 ^A	cursor back (1 word)
	 ^QD	to end of line
	 ^QS	to beginning of line
	 ^V	toggle insert flag
	 ^G	delete character under cursor
	 ^del	delete character left from cursor
	 RUB OUT		"
	 ^Y	delete entire line
	 ^QY	delete rest of line (from cursor right)
	 ^Q DEL	delete beginning of the line (from cursor left)
	 ^QT	delete word left
	 ^T	delete word right
	 ^U	undo all editing and restore original line
	 ^C	abort and return to microshell prompt
	 ESC			"
	 RETURN	execute edited line

 $T	redirect input back to console from a shell file		DDT <$T
 $P	redirect output to a printer					DIR >$P
 +F	auxiliary file search enable
 -F	auxiliary file search disable
 +G	gobble line feeds during inputt redirection
 -G	don't gobble line feeds during inpu redirection
 +L	login current disk (after changing disks - used instead of
 -L	 ^C in CP/M)
 -P	prompt string							-P"%NDrive:%D User:%U" gives
 +P	 special characters used:					Drive:A User:0
		%%	%
		%N	CR,LF
		%d	drive written in lower case
		%D	drive written in upper case
		%U	user number
 +-S	Shell status report
 +U	conversion lower->upper case of command line (like CP/M)
 -U	no conversion
 +V	verbose mode; echo commands before an execution
 -V	stops verbose mode
 -X	exit Microshell and return to CP/M

		Microshell flags
		----------------
flag		meaning					default

+-F		file search				ON
+-G		gobble line feeds			ON
+-M		end-of-file mode (+=CP/M,-=UNIX)	CP/M
+-T		Transparency character flag		OFF
+-U		upper case commnad translation		ON
+-V		verbose : echo shell files		on
+-P  "string"	prompt string				%N%D(%U)
-d 1 nnn	input charcter delay			0
-d 2 nnn	input line delay			0
-d 3 nnn	output prompt delay			0
-d 4 nnnnn	input ignore factor			0


		Microshell commands
		-------------------

%EXIT
%GOTO label
%IF expr THEN action
%IFFILE filename PRESENT THEN action
%IFFILE filename ABSENT THEN action
%RETURN assignment					example: %RETURN %C=1
%label

expr:=var op var
      var op constant

op:=	=	equal
	NE	not equal
	#	not equal
	LT	less than
	LE	less than or equal
	GT	greater than
	GE	greater than or equal

action:=GOTO label
	RETURN
	RETURN assignment
	EXIT

example:
	%IF %A$=STOP THEN GOTO DOEXIT
	%IF %A LT %D THEN RETURN %C=%A



		Other commands
		--------------

%GETCHR var	reads character from console into a var
%GETSTR var	reads string 		"
%MEMNUM var	adress stored on 80H and 81H moves to a var
%MEMSTR var	string stored up from 82H moves to var
%PRINT var	prints var
%PRINR constant prints constant
%PRINT -N st	prints without start CR,LF
%#ARGS var	number of arguments (parametrs) moves to a var
%BCHAR		"BREAK" character (default ESC)
%BREAK ON	break enable
%BREAK OFF	break disable
%CLEAR		clears string variables
%CLRSTR string	definition of screen clear string (default ^Z)
%ERASE		clears screen (CLS)
%EXCHAR char	character for "exit" in shell-file
%FTYPE string	max 8 file-types that are auto-searched
%LOCASE string	conversion upper->lower case
%PATH string	max 6 drives on which files are searched
%SCHAR char	revert to Shell file character
%SDRIVE drive	help files drive
%SHTEXT string	Micro-shell files type
%SHIFT		variables shift  (%0=%1 ; %1=%2 ...)
%status ON	CONST READY all the time
%STATUS OFF	previous CONST
%TCHAR char	revert to keyboard character
%UPCASE string	conversion lower->upper case



		Shell status report
		-------------------

%PATH	"STR"	DISK DRIVE SEARCH PATH:AB
%FTYPE	"STR"	FILE TYPES-AUTO SEARCH:SUB OV? COM
%SHEXT	"STR"	FILE TYPE-SHELL FILES:SUB
%SDRIVE CHAR	SCRATCH DRIVE-SHELL FILES:	A
%CLRSTR "STR"	SCREEN CLEAR STRING:		^Z
%BREAK  ON/OFF	BREAK DURING SHELL FILES:	ON
%BCHAR	CHAR	BREAK CHARACTER:		ESC
%EXCHAR	CHAR	PROGRAM EXIT CHARACTER:		NONE
%TCHAR	CHAR	REVERT TO KEYBOARD CHAR:	NONE
%SCHAR	CHAR	REVERT TO SHELL FILE CHAR:	NONE



		EXAMPLE
		-------

  Shell file for files erasing.

 -V
%#ARGS %A
%IF %A=0 THEN GOTO ERROR
%PRINT -N ERASING; %PRINT -N %A; %PRINT " FILES"
%LOOP
	%PRINT ERASING "%1"
	ERA "%1"
	%SHIFT
	%A=%A-1
	%IF %A GT 0 THEN GOTO LOOP
	%RETURN
%ERROR
	%PRINT "usage: ERASE file [,file]..."
