<!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>Adapting MIDAS to your personal needs</TITLE> <META NAME="description" CONTENT="Adapting MIDAS to your personal needs"> <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="node53.html"> <LINK REL="previous" HREF="node50.html"> <LINK REL="up" HREF="node22.html"> <LINK REL="next" HREF="node53.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html1129" HREF="node53.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="icons.gif/next_motif.gif"></A> <A NAME="tex2html1125" HREF="node22.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="icons.gif/up_motif.gif"></A> <A NAME="tex2html1119" HREF="node51.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="icons.gif/previous_motif.gif"></A> <A NAME="tex2html1127" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="icons.gif/contents_motif.gif"></A> <A NAME="tex2html1128" 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="tex2html1130" HREF="node53.html">MIDAS User Levels</A> <B> Up:</B> <A NAME="tex2html1126" HREF="node22.html">Monitor and Command Language</A> <B> Previous:</B> <A NAME="tex2html1120" HREF="node51.html">Using Catalogs in MIDAS</A> <BR> <BR> <!--End of Navigation Panel--> <H1><A NAME="SECTION006100000000000000000"> </A> <A NAME="adapting-MIDAS-to-your-personal-needs"> </A> <BR> Adapting MIDAS to your personal needs </H1> <P> There are commands in MIDAS which help you in tailoring MIDAS to your personal taste and needs. <BR> Maybe the most important one is <TT>CREATE/COMMAND</TT> with which you can add abbreviated and alias command names. As a next step, try out <TT>CREATE/DEFAULTS</TT> in order to set up your own defaults for frequently used commands, e.g. size and location of display and graphics windows in an X11-environment. The command <TT>SET/MIDAS_SYSTEM</TT> has an extended set of options to let you change internal MIDAS features, ranging from selecting your preferred text editor (to be used e.g. in <TT>REPORT/PROBLEM</TT>) to choosing your own MIDAS prompt. With the command <TT>SET/BUFFER</TT> you modify the size of the internal command buffer. <BR> If you have a MIDAS command procedure named `<TT>login.prg</TT>' in the directory specified by MID_WORK, this procedure will be automatically executed whenever you get into the MIDAS environment, i.e. when you type <TT>INMIDAS</TT> (<TT>inmidas</TT>) or <TT>GOMIDAS</TT> (<TT>gomidas</TT>).<A NAME="2615"> </A> Therefore, the procedure <TT>login.prg</TT><A NAME="2617"> </A> is the place where you should put all the commands needed to adapt MIDAS.<BLOCKQUOTE> <TT>!+ <BR> ! MIDAS procedure login.prg <BR> ! personal set up file for A. S. Tronomer 940815 <BR> !+ <BR> CREATE/COMMAND RK READ/KEYWORD </TT>!define abbreviations<TT> <BR> CREATE/COMMAND WK WRITE/KEYWORD <BR> CREATE/COMMAND RD READ/DESCR <BR> CREATE/COMMAND WD WRITE/DESCR <BR> CREATE/COMMAND XH CREATE/GUI HELP <BR> CREATE/COMMAND SMOOTH/SPECIAL @@ mysmooth </TT>!define a new command<TT> <BR> ! <BR> CREATE/DEFAULT CREATE/GRAPH ? 400,800 </TT>!size for graphic window<TT> <BR> CREATE/DEFAULT CREATE/DISP ? 600,600,400,400 </TT>!size+loc for display window<TT> <BR> ! <BR> SET/MIDAS_SYS edit=vi user=user env=midhost <BR> SET/MIDAS_SYS prompt=Mid</TT><IMG WIDTH="16" HEIGHT="44" ALIGN="MIDDLE" BORDER="0" SRC="img217.gif" ALT="$\{$"><TT>mid$sess(11:12)</TT><IMG WIDTH="17" HEIGHT="44" ALIGN="MIDDLE" BORDER="0" SRC="img218.gif" ALT="$\}$"></BLOCKQUOTE>Assuming you are working with MIDAS unit 22, this procedure will change the MIDAS prompt to <TT>Mid22</TT>, use `<TT>vi'</TT> as editor when you run the <TT>REPORT/PROBLEM</TT> command, define the commands <TT>RK, WK, RD, WD, XH, SMOOTH/SPECIAL</TT>, and override the preset defaults for <TT>CREATE/GRAPHICS, CREATE/DISPLAY</TT>. Setting the environmment to <I>midhost</I> means, that all commands which MIDAS does not understand are passed on to the host system. Thus, instead of <TT>$ls</TT> you can directly enter <TT>ls</TT> at the MIDAS prompt. Also, the user level is set to <TT>USER</TT>; cf. the following section. <P> <HR> <!--Navigation Panel--> <A NAME="tex2html1129" HREF="node53.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="icons.gif/next_motif.gif"></A> <A NAME="tex2html1125" HREF="node22.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="icons.gif/up_motif.gif"></A> <A NAME="tex2html1119" HREF="node51.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="icons.gif/previous_motif.gif"></A> <A NAME="tex2html1127" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="icons.gif/contents_motif.gif"></A> <A NAME="tex2html1128" 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="tex2html1130" HREF="node53.html">MIDAS User Levels</A> <B> Up:</B> <A NAME="tex2html1126" HREF="node22.html">Monitor and Command Language</A> <B> Previous:</B> <A NAME="tex2html1120" HREF="node51.html">Using Catalogs in MIDAS</A> <!--End of Navigation Panel--> <ADDRESS> <I>Petra Nass</I> <BR><I>1999-06-09</I> </ADDRESS> </BODY> </HTML>