Previous Next        Current Page: NeXtMidas Training / Getting Started - Part 1 / Running NeXtMidas Commands / Command Recall/Completion
back
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
   + NeXtMidas Shell   
   - Running NeXtMidas Commands   
      - Basic Commands   
      - Parameters   
      - Switches   
      - Command Recall/Completion   
   + Results Parameters   
   + Lab 1   
   + Getting Help   
   + Lab 2   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • NeXtMidas Command History, Recall and Completion:
    Recalling Commands
    You can recall a command you entered earlier with the ! character.
    nM> result x 10
    nM> set x 5
    nM> !r
    nM> result x 10
    Command History
    The HISTORY command can be used to show the last set of commands entered.
    nM> history r
     nM> history r
     res x
     res x TRUE
     res x "a string"
     res aux.write
     res reg.handlers.file
     res datDir
     res t:tbl filetag.toTable(R_)
     res tbl
     res/all tbl
    Extending Command Line Input
    Long commands may be continued with the & character
    For example,
     nM> plot {LT="NMS",URL="http://nextmidas.com:8080/nms/",&
     --> BACKGROUND="BLUEMARBLE"}|world.shp{LAYER={LABEL="NAME",OPAQ=0}} &
     --> view=latlon
    
    Tab Completion
    The [TAB] key can be used to complete commands, results, table keys and filenames.
    Results are given precedence over file names.
    Note: The shell will tab complete absolute paths (ex: "stat /var/" will tab complete, but "cd /" then "stat var/" will not.)
    Command Parameter Completion
    The ? character can be used to prompt for command parameters.
    nM> waveform ?
    OUT = temp
    FORM = CF
    ELEM = 4K
    SHAPE = SIN
    AMP = 1
    FREQ = .01
    PHASE = 0
    START = 0
    DELTA = 1
    nM> WAVEFORM,OUT=temp,FORM=CF,ELEM=4K,SHAPE=SIN,AMP=1,
                 FREQ=.01,PHASE=0,START=0,DELTA=1

back