\documentstyle{article}
\setcounter{secnumdepth}{0}
\setcounter{tocdepth}{3}
\setlength{\topmargin}{0mm}
\setlength{\textwidth}{160mm}
\setlength{\textheight}{220mm}
\setlength{\oddsidemargin}{0mm}
\setlength{\evensidemargin}{0mm}
\newenvironment{command}%
{\begin{list}{}{\setlength{\leftmargin}{27mm}%
                \setlength{\itemsep}{0mm}%
                \setlength{\labelwidth}{22mm}%
                \setlength{\labelsep}{5mm}}}%
{\end{list}}%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

\title {MIMIC Commands}
\author {Mark Jeffries}
\date {\today}
\maketitle
\tableofcontents

\vspace {10mm}

\section {General}
The mimic interface can be used either straight from ICL or it can be spawned as
a seperate subprocess if multiple commands are required.

At times ICL can tie up the mimic interface if this happens, indicated by ICL
saying that the process requires further data ``<CR> to abort'' try typing NO 
then pressing return twice if pressing return alone does not work.

\section {Using from ICL}
Commands can be entered one at a time using the MIMIC command.
\subsection {Getting help}
\begin{command}
\item [Format:]     {\tt MIMIC HELP}
\item [Description:] Enters the mimic help system, this is used the same as
                     help in DCL and gives information on using the mimic
                     interface.
\end{command}

\subsection {Going to next screen}
\begin{command}
\item [Format:]      {\tt MIMIC PAGES} 
\item [Description:]  Lists the names of all the available mimic pages. This
                      is the same list as that given on the mimic display.
\end{command}                                                              

\subsection {Going to next screen}
\begin{command}
\item [Format:]      {\tt MIMIC NEXT} 
\item [Description:]  Switches the visible mimic page for the next one in the 
                      list.                               
\end{command}                                             
                                                          
\subsection {Going to next screen}                        
\begin{command}                                           
\item [Format:]      {\tt MIMIC PREVIOUS}                 
\item [Description:]  Switches the visible mimic page for the previous one in 
                      the list.     
\end{command}                       
                                    
\subsection {Going to a specified page}
\begin{command}                     
\item [Format:]            {\tt SCREEN} {\it screen\_name} 
\item [Description:]        Switches the visible mimic page for the one given.
\item [{\it screen\_name:}] The screen name, one of the names given by the PAGES
                            command.
\end{command}        
                     
\subsection {Updating the screen}
\begin{command}      
\item [Format:]     {\tt MIMIC UPDATE} 
\item [Description:] Used to refresh the screen if it appears to have become
                     out of date.
\end{command}        
                     
\section{Selecting or Re-starting the Mimic}
The MIMIC may be run on either the Vaxstation or the IKON. The command below 
allows the user to re-start the MIMIC on either display device. If a MIMIC 
is already running it will be stopped first. 

\subsection{Re-starting the MIMIC} 
\begin{command} 
\item [Format:]       {\tt MIMIC\_START} 
\item [Description:]  Used to restart the MIMIC. You are prompted for 
                      the display type : either VAXSTATION or IKON.
\end{command} 

\section {Using a seperate process}
By using a seperate process for the mimic interface multiple commands can be 
used and interaction problems with ICL can be avoided. All the commands given
above can be used, but in this case the MIMIC keyword before them is left out.
Furthermore the keypad can be used to enter the commands. Further information
on the mimic interface can be found by entering HELP inside it.

\subsection {Entering the mimic interface}
\begin{command}      
\item [Format:]     {\tt SPAWN MIM\_INTER} 
\item [Description:] Used to enter the mimic interface.
\end{command}        
                     
\end{document}

  mimic = UPCASE(mimic)
  LOOP WHILE NOT ((mimic = "V") OR (mimic = "I"))
    INPUT Answer I<kon> or V<axstation> : (mimic)
    mimic = UPCASE(mimic)
  END LOOP
  IF mimic = "V" 
    DCL @[OBSERVER.MIMIC]MIMIC_START.COM VWS
  ELSE 
    DCL @[OBSERVER.MIMIC]MIMIC_START.COM IKON
  END IF
ENDPROC
