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 Unix/Linux/AIX 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 98/ME,
command is run. On Windows XP/Vista/Windows 7/Windows 8,
cmd is run. Please note that LispWorks 7.0 does not support Windows 98/ME/XP.
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 (Windows version) - 25 Feb 2015