<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 98.1p1 release (March 2nd, 1998) originally by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>Command Recalling</TITLE> <META NAME="description" CONTENT="Command Recalling"> <META NAME="keywords" CONTENT="vol1"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <LINK REL="STYLESHEET" HREF="vol1.css"> <LINK REL="next" HREF="node33.html"> <LINK REL="previous" HREF="node31.html"> <LINK REL="up" HREF="node31.html"> <LINK REL="next" HREF="node33.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html887" HREF="node33.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="icons.gif/next_motif.gif"></A> <A NAME="tex2html883" HREF="node31.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="icons.gif/up_motif.gif"></A> <A NAME="tex2html877" HREF="node31.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="icons.gif/previous_motif.gif"></A> <A NAME="tex2html885" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="icons.gif/contents_motif.gif"></A> <A NAME="tex2html886" HREF="node216.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="icons.gif/index_motif.gif"></A> <BR> <B> Next:</B> <A NAME="tex2html888" HREF="node33.html">Command Line Editing</A> <B> Up:</B> <A NAME="tex2html884" HREF="node31.html">Command Syntax</A> <B> Previous:</B> <A NAME="tex2html878" HREF="node31.html">Command Syntax</A> <BR> <BR> <!--End of Navigation Panel--> <H2><A NAME="SECTION00641000000000000000"> </A> <A NAME="1645"> </A> <BR> Command Recalling </H2> <P> By default, the last 15 commands entered on the terminal are kept in an internal buffer (the no. of commands saved can be changed via <TT>SET/BUFFER</TT>). To recall (and execute) any of these commands, simply type the associated command number. This is the number ``xyz'' appearing in the prompt <TT>Midas xyz</TT>> when that command was entered. To display the command buffer, simply hit <!-- MATH: $\fbox{\tt Return}$ --> <IMG WIDTH="83" HEIGHT="27" ALIGN="BOTTOM" BORDER="0" SRC="img24.gif" ALT="\fbox{\tt Return}">. <BR> If you want to recall more than one command at once, enter all the relevant command numbers (separated by a semicolon and space), e.g. enter <TT>14; 17; 22</TT> if you want to repeat the commands numbered 14, 17 and 22 . Also <TT>14; read/keyw in_a; 17</TT> is possible. <BR> <BR> To recall commands not by number but by pattern, use <TT>:pattern</TT> to repeat the last command matching the specified pattern. For example, if the last two commands in your command buffer are: <P> <BLOCKQUOTE> <TT>22 READ/IMAGE supernova <BR> 23 show/commands</TT></BLOCKQUOTE>Then, typing <TT>22</TT> as well as <TT>:READ</TT> or <TT>:nova</TT> will execute the command <TT>READ/IMAGE supernova</TT> again. Note that for the pattern matching MIDAS <I>does</I> make a distinction between upper and lower case. <BR> You can also use the vertical arrow keys to navigate up and down through the command buffer. <BR> Besides repeating complete input lines it is also possible to just use parts of the last command line. Each ``token''<A NAME="1658"> </A> of the last command line is saved internally until the next input. A ``token'' is the information separated by spaces in the command line. To repeat the tokens on a subsequent command line merely type a `.' For example, if you have in the command buffer:<BLOCKQUOTE> <TT>READ/KEYWORD in_a <BR> LOAD/IMAGE myframe 0 2,2 </TT></BLOCKQUOTE>Then typing <TT>` . yourframe . . '</TT> as the next command is equivalent to typing <TT>`LOAD/IMAGE yourframe 0 2,2'</TT>. <BR> <BR> All features described so far apply to genuine MIDAS commands as well as to host system commands (where the first character of the command line is the $ sign). <BR> <BR> Some words of caution: In VMS the version number of files may be specified using a semicolon, e.g. <BR> <TT>$ RENAME file.typ;7 lola.bdf</TT>. <BR> Typing such a command inside MIDAS will not work, since the monitor will interpret this input as two Midas commands. Instead, use a dot to separate the version number, e.g. <BR> <TT>Midas 234> $ RENAME file.typ.7 lola.bdf</TT>. In Unix the repetition of tokens may cause trouble. Consider the following: <BR> <TT>Midas 123> load/image vaca</TT> <BR> <TT>Midas 124> $cp /elsewhere/toro.bdf . </TT> <BR> The intention was to simply copy the file <TT>toro.bdf</TT> from somewhere else to the current directory. But instead of <TT>toro.bdf</TT> you will find a strange file named <TT>?</TT> in your directory... <BR> In the line `123' only two tokens are entered, so all other 8 tokens are set to the default value <TT>`?'</TT>. In line `124' the third token will be set to the third token in the line above, so it changes to: <BR> <TT>Midas 124> $cp /elsewhere/toro.bdf ? </TT> <BR> Instead, specify also the result frame completely, e.g. <BR> <TT>$cp /elsewhere/toro.bdf toro.bdf</TT>. Preceding a host command by $$ disables the interpretation of specific symbols by MIDAS, thus <BR> <TT>Midas 124> $$cp /elsewhere/toro.bdf . </TT> <BR> will actually do the expected copy. <P> <HR> <!--Navigation Panel--> <A NAME="tex2html887" HREF="node33.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="icons.gif/next_motif.gif"></A> <A NAME="tex2html883" HREF="node31.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="icons.gif/up_motif.gif"></A> <A NAME="tex2html877" HREF="node31.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="icons.gif/previous_motif.gif"></A> <A NAME="tex2html885" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="icons.gif/contents_motif.gif"></A> <A NAME="tex2html886" HREF="node216.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="icons.gif/index_motif.gif"></A> <BR> <B> Next:</B> <A NAME="tex2html888" HREF="node33.html">Command Line Editing</A> <B> Up:</B> <A NAME="tex2html884" HREF="node31.html">Command Syntax</A> <B> Previous:</B> <A NAME="tex2html878" HREF="node31.html">Command Syntax</A> <!--End of Navigation Panel--> <ADDRESS> <I>Petra Nass</I> <BR><I>1999-06-09</I> </ADDRESS> </BODY> </HTML>