1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

exec: display output of commands in real time, add options -flush/-noflush in command /exec

This commit is contained in:
Sébastien Helleu
2014-04-03 11:55:04 +02:00
parent 936d5559f4
commit 7c55cbb38b
22 changed files with 391 additions and 285 deletions
+6 -4
View File
@@ -25,6 +25,9 @@
#define weechat_plugin weechat_exec_plugin
#define EXEC_PLUGIN_NAME "exec"
#define EXEC_STDOUT 0
#define EXEC_STDERR 1
enum t_exec_color
{
EXEC_COLOR_ANSI = 0,
@@ -56,10 +59,9 @@ struct t_exec_cmd
int display_rc; /* 1 if return code is displayed */
/* command output */
int out_size; /* number of bytes in stdout */
char *out; /* stdout of command */
int err_size; /* number of bytes in stderr */
char *err; /* stderr of command */
int output_line_nb; /* line number */
int output_size[2]; /* number of bytes in stdout/stderr */
char *output[2]; /* stdout/stderr of command */
int return_code; /* command return code */
/* pipe/hsignal */