Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 37ce2601040f8edc2329d4714238376a > files > 821

eso-midas-doc-13SEPpl1.2-3.mga5.i586.rpm

<!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 Line Editing</TITLE>
<META NAME="description" CONTENT="Command Line Editing">
<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="node34.html">
<LINK REL="previous" HREF="node32.html">
<LINK REL="up" HREF="node31.html">
<LINK REL="next" HREF="node34.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html899"
 HREF="node34.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="icons.gif/next_motif.gif"></A> 
<A NAME="tex2html895"
 HREF="node31.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="icons.gif/up_motif.gif"></A> 
<A NAME="tex2html889"
 HREF="node32.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="icons.gif/previous_motif.gif"></A> 
<A NAME="tex2html897"
 HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="icons.gif/contents_motif.gif"></A> 
<A NAME="tex2html898"
 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="tex2html900"
 HREF="node34.html">Command Line Suspension</A>
<B> Up:</B> <A NAME="tex2html896"
 HREF="node31.html">Command Syntax</A>
<B> Previous:</B> <A NAME="tex2html890"
 HREF="node32.html">Command Recalling</A>
<BR>
<BR>
<!--End of Navigation Panel-->

<H2><A NAME="SECTION00642000000000000000">&#160;</A><A NAME="1675">&#160;</A>
<BR>
Command Line Editing
</H2> 

<P>
The commands in the internal command buffer may also be edited.
 
On Unix systems MIDAS comes (since the 94NOV release) with two different 
line-editors:
<I>TermWindows </I> (the one developed at ESO) and <I>readline</I> 
(which is from the GNU project).  The default line-editor is 
<I>readline</I> which provides
a history stack of commands, <TT>emacs</TT> or <TT>vi</TT> editing functions, 
command and filename completion functions, and a communication
channel to the MIDAS GUI <A NAME="1681">&#160;</A>XHelp for the On-Line Help 
<A NAME="1682">&#160;</A> utility.
See the man page of <TT>readline</TT> for a complete list of options.
<BR>
To use the old <I>TermWindows</I> line-editor just set the 
environment variable <TT>TERMWIN</TT> to <TT>yes</TT>. Please, note, that the
 <I>TermWindows</I> editor will be phased out in a future MIDAS release.
<BR>
&nbsp;&nbsp;
<BR>
On VMS systems MIDAS comes only with the <I>TermWindows </I> line-editor.
<BR>
&nbsp;&nbsp;
<BR>
To edit a MIDAS command, type the command number preceded by a dot&nbsp;(period) 
or followed by a dot.
So <TT>`.xyz'</TT> or <TT>`xyz.'</TT> will both display the command
<TT>`xyz'</TT> and put you into the edit mode where you can modify that
command. <BR>
If you employ the pattern matching style, use <TT>`.:pattern'</TT> or
<TT>`:.pattern'</TT> to edit a previous command containing that pattern.
&nbsp;&nbsp; <BR>
You edit that line using the <I>arrow</I> keys and <I>delete</I> key of
the keyboard and retyping the characters.
On VMS systems to toggle between <I>Replace</I> and <I>Insert</I> mode use 
<TT>CtrlA</TT>.
&nbsp;&nbsp; <BR>
Using <TT>`.xyz'</TT> (<TT>`.:pattern'</TT>) will lead to the creation of a new MIDAS
command with new command number, whereas <TT>`xyz.'</TT> (<TT>`:.pattern'</TT>)
modifies the specified command directly (and keeps this command number).
<BR>
Also the commands recalled via the arrow keys can be edited.
&nbsp;&nbsp; <BR>
As mentioned above only the 15&nbsp;most recently used commands are kept in
the command buffer on a first-in, first-out basis. So if you repeat 
or edit a certain command via its MIDAS command-number at least
once in 15&nbsp;command inputs, this command will always be kept in the buffer.
&nbsp;&nbsp; <BR>
However, you may wish to make sure that a command remains always in the
buffer.
Entering <TT>`xyz/LOCK'</TT> will lock the command with
number <TT>`xyz'</TT> in the buffer; to unlock the command, use 
<TT>`xyz/UNLOCK'</TT>.
<BR>
The command <TT>CLEAR/BUFFER</TT> empties the command buffer and resets
the command counter to 1. Since 3 digits are used for the command count, the
counter is also reset to 1 after MIDAS command no.&nbsp;999.

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html899"
 HREF="node34.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="icons.gif/next_motif.gif"></A> 
<A NAME="tex2html895"
 HREF="node31.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="icons.gif/up_motif.gif"></A> 
<A NAME="tex2html889"
 HREF="node32.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="icons.gif/previous_motif.gif"></A> 
<A NAME="tex2html897"
 HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="icons.gif/contents_motif.gif"></A> 
<A NAME="tex2html898"
 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="tex2html900"
 HREF="node34.html">Command Line Suspension</A>
<B> Up:</B> <A NAME="tex2html896"
 HREF="node31.html">Command Syntax</A>
<B> Previous:</B> <A NAME="tex2html890"
 HREF="node32.html">Command Recalling</A>
<!--End of Navigation Panel-->
<ADDRESS>
<I>Petra Nass</I>
<BR><I>1999-06-09</I>
</ADDRESS>
</BODY>
</HTML>