## `Line-Editor` -- editing lines in the terminal version of MuPAD

#### Introduction

This page describes the line editing facility of MuPAD's terminal version.

#### Details

- The line editor described below is only available in the terminal version of MuPAD, not under the X-Window-System, nor on the Macintosh, nor under Windows.
- The current text line can be edited with the line editor during interactive input. Most of the following editor commands are entered by pressing the control key together with a second key. The available commands are:

  `<Ctrl-A>` | Moves the cursor to the beginning of the line.
  `<Ctrl-Y>` | Moves the cursor to the beginning of the previous word. This does not work under Solaris, where <Ctrl-Y> raises a non-POSIX signal which suspends the session.
  `<Ctrl-B>`, `<Cursor-Left>` | Moves the cursor one character to the left.
  `<Ctrl-F>`, `<Cursor-Right>` | Moves the cursor one character to the right.
  `<Ctrl-E>` | Moves the cursor to the end of the line.
  `<Ctrl-U>` | Deletes the complete input line.
  `<Ctrl-W>` | Deletes all characters from the cursor position to the beginning of the previous word.
  `<Ctrl-H>` | Deletes the character left of the cursor.
  `<Ctrl-D>` | Deletes the character at the cursor position.
  `<Ctrl-T>` | Deletes the next word.
  `<Ctrl-K>` | Deletes all characters to the end of the line.
  `<Ctrl-L>` | Inserts the last input line before the current cursor position.
  `<Ctrl-P>`, `<Cursor-Up>` | Reproduces the last input line. Repeated pressing of `<Ctrl-P>` successively reproduces the previous input lines. If the cursor is not at the beginning of the line then the previous lines are searched for an entry that corresponds to the characters of the current input.
  `<Ctrl-N>`, `<Cursor-Down>` | The analogue of `<Ctrl-P>`, but the previous input is run through in reverse order.
  `<Ctrl-C>` | Used during editing, the MuPAD input will be ignored; the MuPAD prompt appears for a new input. Used directly after the MuPAD prompt, the MuPAD process is terminated. Used during a MuPAD calculation, the computation is interrupted.
  `<TAB>` | Completes the actual input to the name of a system object. This may be the name of a library, of a function, or of an environment variable, respectively. If the actual input matches the beginning of several system objects, then all completed names are printed to the screen.

#### Example 1

We demonstrate the `<TAB>` completion. The `<TAB>` character is pressed after the input `lin`. The system responds by printing the three system objects beginning with `lin`. These are the libraries `linalg`, `linopt`, and the system function `linsolve`, respectively:

    >> lin<TAB>

          linalg, linopt, linsolve

The following input lists all functions of the `linalg` library beginning with '`a`':

    >> linalg::a<TAB>

          linalg::addCol, linalg::addRow, linalg::adjoint, linalg::angle

The following input lists all functions available in the `groebner` library:

    >> groebner::<TAB>

          groebner::dimension, groebner::gbasis, groebner::normalf,
          groebner::spoly

#### Changes

- The `<TAB>` completion was introduced.

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000