1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 20:36:38 +02:00
Commit Graph

3797 Commits

Author SHA1 Message Date
Sebastien Helleu 4245de528e exec: add examples in /help exec 2014-03-15 19:40:15 +01:00
Sebastien Helleu ff636cae89 exec: fix typo in /help exec 2014-03-15 19:22:28 +01:00
Sebastien Helleu 112398ee62 exec: fix compilation on OpenBSD
Looks like the variable name "stdout" is a problem on OpenBSD (macro?).
So "stdout" and "stderr" are renamed to "out" an "err".
2014-03-15 15:56:58 +01:00
Sebastien Helleu fff24d0a23 core: update translations 2014-03-15 15:08:49 +01:00
Sebastien Helleu c92b186e01 exec: rename value "off" to "ansi" for option "-color" in command /exec 2014-03-15 12:43:06 +01:00
Sebastien Helleu 85abcaedaa Merge branch 'exec' 2014-03-15 12:28:07 +01:00
Sebastien Helleu 0bfbe8ef40 irc: add decoding of bright ANSI colors (90-97, 100-107) 2014-03-15 12:09:51 +01:00
Sebastien Helleu 6749ed354d core: add decoding of bright ANSI colors (90-97, 100-107) 2014-03-15 12:09:31 +01:00
Sebastien Helleu 298f0211c1 exec: add option "-color" in command /exec (decode ANSI colors by default)
The ANSI colors are decoded by default to WeeChat colors (for local display),
or IRC colors (if output is sent to buffer with "-o").
2014-03-15 11:30:08 +01:00
Sebastien Helleu d3c85c920c irc: add modifier "irc_color_decode_ansi" 2014-03-15 11:12:49 +01:00
Sebastien Helleu e38f437ad7 core: add modifier and infos to decode ANSI colors
New modifier:
- color_decode_ansi: convert ANSI colors to WeeChat colors (or remove colors).

New infos:
- color_ansi_regex: regex used to parse ANSI colors in a string
- color_term2rgb: convert a terminal color (0-255) to RGB
- color_rgb2term: convert a RGB color to terminal color (0-255)
2014-03-15 11:06:30 +01:00
Sebastien Helleu 9e659d9f2e core: add options "term2rgb" and "rgb2term" in command /color 2014-03-14 19:51:52 +01:00
Sebastien Helleu a97bcd1ca1 core: add functions to convert RGB to terminal color (and vice versa) 2014-03-14 19:16:13 +01:00
Andrew Potter 1baa2e288c xfer: Fix segfault in DCC send.
This was broken before the previous change, since remote_address was
just a zero'd out struct.
2014-03-13 21:05:47 -07:00
Andrew Potter 92d454eb8d xfer: Don't use sockaddr_storage for address_length
Hopefully this addresses #25.
2014-03-13 20:32:59 -07:00
Sebastien Helleu d791e76e1b exec: switch to exec buffer even if it is already opened 2014-03-13 14:50:38 +01:00
Sebastien Helleu eb21248ae7 core: fix highlight problem with "(?-i)" and upper case letters in option weechat.look.highlight 2014-03-13 14:14:10 +01:00
Sebastien Helleu 7b31d397b7 exec: add missing empty lines in output of commands
The function weechat_string_split() collapses many separators (here "\n"),
so empty lines were removed and not displayed.

For example, if output is "Line1\n\nEnd\n", the empty line between "Line1"
and "End" was not displayed.
2014-03-13 12:08:33 +01:00
Sebastien Helleu cd65198c71 api: add callback in function string_replace_regex 2014-03-13 10:59:58 +01:00
Sebastien Helleu c8f574d730 exec: disable "output to buffer" if command is executed on an exec buffer 2014-03-13 09:02:36 +01:00
Sebastien Helleu 0eca1fd20b exec: add options "-rc"/"-norc" (display return code) in command /exec 2014-03-13 07:56:20 +01:00
Sebastien Helleu 571a7a5dbe exec: execute commands from input of exec buffers 2014-03-13 07:38:16 +01:00
Sebastien Helleu 86e12946a5 irc: add "#" before any channel in /join, even /join 0 (closes #20) 2014-03-12 22:00:05 +01:00
Sebastien Helleu ed6ea18c30 exec: add options "-ln"/"-noln" (line numbers) in command /exec 2014-03-12 19:52:04 +01:00
Sebastien Helleu 08bffd6f5a exec: automatically disable shell if command starts with "url:" (URL download) 2014-03-12 19:18:29 +01:00
Sebastien Helleu 6c20e402dc exec: add options "-buffer" and "-sw"/"-nosw" in command /exec 2014-03-12 19:13:56 +01:00
Sebastien Helleu 442bc80da6 exec: add option "-inclose" in command /exec 2014-03-12 12:04:23 +01:00
Sebastien Helleu 2962ce55d6 exec: add missing completion of "-ns" in command /exec 2014-03-12 11:56:09 +01:00
Sebastien Helleu e8de096625 exec: add options "-n"/"-ns" in command /exec (display output in a new buffer) 2014-03-12 11:54:00 +01:00
Sebastien Helleu 0790836695 exec: add option exec.command.default_options 2014-03-12 09:57:39 +01:00
Sebastien Helleu 4582a3cd24 Merge branch 'master' of git://github.com/talisein/weechat-1 into talisein-master 2014-03-12 09:36:09 +01:00
Sebastien Helleu a38e577596 core: update translations 2014-03-12 09:30:09 +01:00
Shawn Smith d3ee1bcfe0 irc: display output of CAP LIST in server buffer (closes #10) 2014-03-12 09:30:02 +01:00
Andrew Potter 9f140ca805 xfer: Fix xfer.network.own_ip behavior
Fixes #5. xfer shouldn't try to bind() to the own_ip
address. Instead, always bind to the same local address that is
connected to the irc server, and just change the out_addr if own_ip is
used.

Also fixes a memory leak in error path.
2014-03-11 21:21:18 -07:00
Sebastien Helleu 9543f9c034 core: add missing \0 at the end of stderr buffer in hook_process 2014-03-11 21:11:54 +01:00
Sebastien Helleu d5e1a52e24 exec: fix crash when giving bad id to command /exec -in 2014-03-11 20:13:28 +01:00
Sebastien Helleu 2dc6eeaee2 exec: add option "-del" in command /exec 2014-03-11 18:11:52 +01:00
Sebastien Helleu 281cfdda94 exec: add option "-bg" in command /exec 2014-03-11 17:51:06 +01:00
Sebastien Helleu 5708b3977c exec: update plugin API version 2014-03-11 17:49:50 +01:00
Sebastien Helleu 319f2a51ec exec: fix typos in /help exec 2014-03-11 17:49:50 +01:00
Sebastien Helleu e3de3e6dda exec: add option "-set" in command /exec 2014-03-11 17:49:50 +01:00
Sebastien Helleu 29e498d002 exec: replace number by id in /help exec 2014-03-11 17:49:50 +01:00
Sebastien Helleu 67b892d1fd exec: add list of signal names in /help exec 2014-03-11 17:49:50 +01:00
Sebastien Helleu 2527c282c3 exec: implement options -signal/-kill/-killall in command /exec 2014-03-11 17:49:49 +01:00
Sebastien Helleu 3f50356a14 exec: remove error prefix in case of unexpected end of a command 2014-03-11 17:49:49 +01:00
Sebastien Helleu ee2cb329f4 exec: display command return code after output (stdout/stderr) 2014-03-11 17:49:49 +01:00
Sebastien Helleu 9355c867ed exec: add tag "exec_rc" for line with command return code, remove empty line displayed before 2014-03-11 17:49:49 +01:00
Sebastien Helleu 97254780d6 exec: add exec plugin 2014-03-11 17:49:49 +01:00
Sebastien Helleu 4f48c7a566 api: add option "detached" in function hook_process_hashtable 2014-03-11 17:48:52 +01:00
Sebastien Helleu cd66b459de relay: search buffers by full name 2014-03-11 15:30:51 +01:00