Simulates user entry of commands in an interactive-pane.
capi
interactive-pane-execute-command interactive-pane command &key command-modification-function editp &allow-other-keys
interactive-pane⇩ |
An interactive-pane. |
command⇩ |
A Lisp form. |
command-modification-function⇩ | |
A function or nil . | |
editp⇩ |
A generalized boolean. |
The generic function interactive-pane-execute-command
has the same effect as the user typing the Lisp form command into the interactive-pane interactive-pane, and pressing Return.
interactive-pane-execute-command
may be called from any process.
If command-modification-function is non-nil, it is a function of one argument. It is called with argument command in the process in which interactive-pane runs. The result of this call is used as the command to enter. The default value of command-modification-function is nil
.
If editp is true then the command is left at the end of the pane for the user to edit before pressing Return
. If editp is nil
then interactive-pane-execute-command
simulates the user pressing Return. The default value of editp is nil
.
CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:27