Working with the Shell

The Shell appears in the lower panel of the Mechanical Scripting view.

 

Toolbar

The toolbar for the Shell provides these buttons:

  1. Clear Contents: Clears the contents of the Shell. This can also be done by executing the command clear inside the Shell.

  2. Insert Snippet: Opens the snippet inserter in context of the Shell.

  3. Shell Preferences: Displays a drop-down menu for indicating whether to hide the output, input, errors, and warnings. All check boxes are cleared by default so that the output, input, errors, and warnings are all shown.

     

  4. Content area: Area in which you enter and execute single-line or multi-line commands. This area provides autocompletion.

Color Coding for Output in the Shell

In the output, the color of the text distinguishes output from errors and warnings.

Text ColorItem
GrayOutput
RedError
YellowWarning

Context Menu

There is a context menu associated with the commands that have been executed. To display this context menu, place the mouse cursor over the executed command and right-click.

 

  • Copy: Copies the command to the clipboard.

  • Replay: Re-inserts the executed command in the content area for execution.

Shortcuts:

The Shell provides these shortcuts:

  • Ctrl + ↑: Takes you to the previously executed command.

  • Ctrl + ↓: Takes you to the next executed command.

  • Enter: Executes the command.

  • Shift + Enter: Inserts a new line.