Go to the first, previous, next, last section, table of contents.
When running on a Unix-style operating system Jade allows you to run a
shell subprocess in a buffer (usually the `*shell*' buffer). Each
line you type in the buffer is sent to the shell and the output from
the shell is displayed in the buffer.
- Meta-x shell
-
Start a new shell subprocess running in a buffer called `*shell*'.
If a buffer `*shell*' already exists a new buffer with a unique
name will be opened (i.e. `*shell*<2>').
The working directory of the shell subprocess will be the directory
which the contents of the current buffer was read from.
This command won't work on Amigas!
Each `*shell*' buffer installs the major mode shell-mode.
This provides the following commands.
- Ctrl-a
-
Move the cursor to the beginning of the current line, after the
prompt which the shell printed (if one exists).
- Ctrl-d
-
If the cursor is at the end of the buffer send the shell process the
eof character (`^D') (signifying the end of the file).
Otherwise delete the character under the cursor.
- RET
-
Send the current line to the shell (minus any prompt at the beginning
of the line). If the cursor is not on the last line of the buffer (i.e.
the most recent prompt) the current line is copied to the end of the
buffer before being sent.
- Ctrl-c Ctrl-n
-
Move the cursor to the next prompt in the buffer.
- Ctrl-c Ctrl-p
-
Move to the previous prompt.
- Ctrl-c Ctrl-c
-
Send the
intr character (`^C') to the shell process.
- Ctrl-c Ctrl-d
-
Send the
eof character (`^D') to the shell.
- Ctrl-c Ctrl-z
-
Send the
susp character (`^Z') to the shell.
- Ctrl-c Ctrl-\
-
Send the
quit character (`^\') to the shell.
- Hook: shell-mode-hook
-
This hook is evaluated by the Shell mode after it has initialised
itself (and started its subprocess).
The following variables customise the actions of the Shell mode.
- Variable: shell-file-name
-
This variable defines the file name of the shell to run. Its default
value is either the value of the environment variable
SHELL or
if that doesn't exist the file `/bin/sh'.
- Variable: shell-whole-line
-
When this variable's value is non-
nil the RET command always
sends the whole of the current line (minus any prompt) even when the
cursor is not at the end of the line. Otherwise only the part of the
line before the cursor is sent.
The default value of this variable is t.
- Variable: shell-prompt-regexp
-
This buffer-local variable defines the regular expression used to match
the prompt printed by the shell each time it waits for you to enter a
shell command. By default it has the value `^[^]#$%>)]*[]#$%>)] *'
but this may be incorrect if you have modified your shell's prompt.
Go to the first, previous, next, last section, table of contents.