Pane.runCommand
Run one framed command in this pane's existing POSIX shell.
Source and package
- Qualified name
-
Pane.run Command - Module
- pane
- Declared in
Pane- Package
- libtmux
- Source
- packages/libtmux/src/pane.ts
- runCommand( command: string, options?: Shell
Command , ): Promise<ShellOptions Command >Result -
Description
The command inherits the shell's directory, variables and functions. It runs in a subshell, so changes leave the interactive shell where it was. An exit status requires the command's own frame. A shell's OSC 133 completion is additional evidence while the observation is open.
Read
outcomeandoutputCompletebefore using the bounded output. Another writer can change shell state or print between the markers.foreignOutputSuspectedreports foreign framing when visible. A timeout or cancellation stops waiting. The shell can still execute input that tmux already accepted. Checkdeliverybefore sending another command.- Parameters
- Errors
-
-
Type
Error – for an invalid command or deadline. -
Lib
Tmux – for an unsupported shell or synchronized pane.Error -
Tmux
Server – if the handle's daemon has changed.Restarted Error -
Tmux
Command – if tmux refuses the dispatch.Error
-
Recorded calls
source callsThe TypeScript reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls pane.Pane.runCommand.