version 1.77, 2021/08/23 12:33:55 |
version 1.78, 2021/08/25 08:51:55 |
|
|
* Runs a command without a window. |
* Runs a command without a window. |
*/ |
*/ |
|
|
static enum cmd_retval cmd_run_shell_exec(struct cmd *, struct cmdq_item *); |
static enum args_parse_type cmd_run_shell_args_parse(struct args *, u_int, |
|
char **); |
|
static enum cmd_retval cmd_run_shell_exec(struct cmd *, |
|
struct cmdq_item *); |
|
|
static void cmd_run_shell_timer(int, short, void *); |
static void cmd_run_shell_timer(int, short, void *); |
static void cmd_run_shell_callback(struct job *); |
static void cmd_run_shell_callback(struct job *); |
|
|
.name = "run-shell", |
.name = "run-shell", |
.alias = "run", |
.alias = "run", |
|
|
.args = { "bd:Ct:", 0, 1, NULL }, |
.args = { "bd:Ct:", 0, 1, cmd_run_shell_args_parse }, |
.usage = "[-bC] [-d delay] " CMD_TARGET_PANE_USAGE " [shell-command]", |
.usage = "[-bC] [-d delay] " CMD_TARGET_PANE_USAGE " [shell-command]", |
|
|
.target = { 't', CMD_FIND_PANE, CMD_FIND_CANFAIL }, |
.target = { 't', CMD_FIND_PANE, CMD_FIND_CANFAIL }, |
|
|
struct event timer; |
struct event timer; |
int flags; |
int flags; |
}; |
}; |
|
|
|
static enum args_parse_type |
|
cmd_run_shell_args_parse(struct args *args, __unused u_int idx, |
|
__unused char **cause) |
|
{ |
|
if (args_has(args, 'C')) |
|
return (ARGS_PARSE_COMMANDS_OR_STRING); |
|
return (ARGS_PARSE_STRING); |
|
} |
|
|
static void |
static void |
cmd_run_shell_print(struct job *job, const char *msg) |
cmd_run_shell_print(struct job *job, const char *msg) |