version 1.11, 2012/02/02 00:15:28 |
version 1.12, 2012/07/11 07:10:15 |
|
|
* Send keys to client. |
* Send keys to client. |
*/ |
*/ |
|
|
int cmd_send_keys_exec(struct cmd *, struct cmd_ctx *); |
enum cmd_retval cmd_send_keys_exec(struct cmd *, struct cmd_ctx *); |
|
|
const struct cmd_entry cmd_send_keys_entry = { |
const struct cmd_entry cmd_send_keys_entry = { |
"send-keys", "send", |
"send-keys", "send", |
|
|
cmd_send_keys_exec |
cmd_send_keys_exec |
}; |
}; |
|
|
int |
enum cmd_retval |
cmd_send_keys_exec(struct cmd *self, struct cmd_ctx *ctx) |
cmd_send_keys_exec(struct cmd *self, struct cmd_ctx *ctx) |
{ |
{ |
struct args *args = self->args; |
struct args *args = self->args; |
|
|
int i, key; |
int i, key; |
|
|
if (cmd_find_pane(ctx, args_get(args, 't'), &s, &wp) == NULL) |
if (cmd_find_pane(ctx, args_get(args, 't'), &s, &wp) == NULL) |
return (-1); |
return (CMD_RETURN_ERROR); |
|
|
if (args_has(args, 'R')) { |
if (args_has(args, 'R')) { |
ictx = &wp->ictx; |
ictx = &wp->ictx; |
|
|
} |
} |
} |
} |
|
|
return (0); |
return (CMD_RETURN_NORMAL); |
} |
} |