Keywords: xcoral

Next: Edit directory mode (Edir) Up: Using mode Previous: Latex mode

## Shell mode

Connects the current text window to a sub-shell. XCORAL_SHELL environment variable is used if defined, else SHELL environment variable is used if defined. If none of these variables is set, `/bin/csh` is used. A prompt is displayed and you can enter UNIX commands. The result of the commands is inserted in the buffer at the current position.

In this mode, all the default key bindings can be used but two of them have been redefined:

- Ctrl-d quits the shell mode.
- Ctrl-c interrupts a shell command.

Attention, if your shell mode does not work correctly (i.e. the prompt is not displayed), use the environment variable XCORAL_SHELL to set a basic shell (sh or csh).