1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 12:56:37 +02:00

exec: add options "-n"/"-ns" in command /exec (display output in a new buffer)

This commit is contained in:
Sebastien Helleu
2014-03-12 11:54:00 +01:00
parent 0790836695
commit e8de096625
10 changed files with 268 additions and 53 deletions
+8 -7
View File
@@ -22,13 +22,14 @@
struct t_exec_cmd_options
{
int command_index;
int use_shell;
int detached;
int pipe_stdin;
int timeout;
int output_to_buffer;
const char *ptr_name;
int command_index; /* index of command in arguments */
int use_shell; /* 1 to use shell (sh -c "command") */
int detached; /* 1 if detached (no output) */
int pipe_stdin; /* 1 to create a pipe for stdin */
int timeout; /* timeout (in seconds) */
int output_to_buffer; /* 1 if output is sent to buffer */
int new_buffer; /* output in a new buffer */
const char *ptr_name; /* name of command */
};
extern void exec_command_init ();