A pane allowing the user to interact with a subprocess.
The command which is run as a subprocess.
shell-pane creates an editor in which a subprocess runs.
User input is interpreted as input to the subprocess. In particular, when the user enters
Return in the last line, the line is sent to the subprocess. The output of the subprocess is displayed in the pane.
The default value of command is
nil, which means that the actual command is determined as follows:
On Linux/AIX/Solaris and Mac OS X, the value of the environment variable
ESHELL is used if set, and otherwise the environment variable
SHELL is consulted. If that is not set, then
/bin/sh on SVR4 platforms) is run.
On Microsoft Windows,
cmd.exe is run.
This function emulates user input on
(defun send-keys-to-pane-aux (pane string newline-p)
(loop for char across string
do (capi:call-editor pane char))
(capi:call-editor pane #\Return)))
This function trampolines to
send-keys-to-pane-aux on the right process:
(defun send-keys-to-pane (pane string newline-p)
pane string newline-p))
(setq sp (capi:contain
This call emulates the user typing
dir followed by
(send-keys-to-pane sp "dir" t)
CAPI User Guide and Reference Manual (Macintosh version) - 3 Aug 2017