summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/de/autogen/plugin_api/completions.txt2
-rw-r--r--doc/de/autogen/plugin_api/infos.txt6
-rw-r--r--doc/de/autogen/user/exec_commands.txt53
-rw-r--r--doc/de/autogen/user/exec_options.txt20
-rw-r--r--doc/de/autogen/user/weechat_commands.txt25
-rw-r--r--doc/de/weechat_user.de.txt28
-rw-r--r--doc/en/autogen/plugin_api/completions.txt2
-rw-r--r--doc/en/autogen/plugin_api/infos.txt6
-rw-r--r--doc/en/autogen/user/exec_commands.txt53
-rw-r--r--doc/en/autogen/user/exec_options.txt20
-rw-r--r--doc/en/autogen/user/weechat_commands.txt17
-rw-r--r--doc/en/weechat_user.en.txt27
-rw-r--r--doc/fr/autogen/plugin_api/completions.txt2
-rw-r--r--doc/fr/autogen/plugin_api/infos.txt6
-rw-r--r--doc/fr/autogen/user/exec_commands.txt53
-rw-r--r--doc/fr/autogen/user/exec_options.txt20
-rw-r--r--doc/fr/autogen/user/weechat_commands.txt5
-rw-r--r--doc/fr/weechat_user.fr.txt27
-rw-r--r--doc/it/autogen/plugin_api/completions.txt2
-rw-r--r--doc/it/autogen/plugin_api/infos.txt6
-rw-r--r--doc/it/autogen/user/exec_commands.txt53
-rw-r--r--doc/it/autogen/user/exec_options.txt20
-rw-r--r--doc/it/autogen/user/weechat_commands.txt31
-rw-r--r--doc/it/weechat_user.it.txt28
-rw-r--r--doc/ja/autogen/plugin_api/completions.txt2
-rw-r--r--doc/ja/autogen/plugin_api/infos.txt6
-rw-r--r--doc/ja/autogen/user/exec_commands.txt53
-rw-r--r--doc/ja/autogen/user/exec_options.txt20
-rw-r--r--doc/ja/autogen/user/weechat_commands.txt25
-rw-r--r--doc/ja/weechat_user.ja.txt28
-rw-r--r--doc/pl/autogen/plugin_api/completions.txt2
-rw-r--r--doc/pl/autogen/plugin_api/infos.txt6
-rw-r--r--doc/pl/autogen/user/exec_commands.txt53
-rw-r--r--doc/pl/autogen/user/exec_options.txt20
-rw-r--r--doc/pl/autogen/user/weechat_commands.txt29
-rw-r--r--doc/pl/weechat_user.pl.txt28
36 files changed, 733 insertions, 51 deletions
diff --git a/doc/de/autogen/plugin_api/completions.txt b/doc/de/autogen/plugin_api/completions.txt
index 45c4f83cc..ac361764e 100644
--- a/doc/de/autogen/plugin_api/completions.txt
+++ b/doc/de/autogen/plugin_api/completions.txt
@@ -10,6 +10,8 @@
| aspell | aspell_langs | Liste aller Sprachen die durch Aspell unterstützt werden
+| exec | exec_commands_ids | ids (numbers and names) of executed commands
+
| guile | guile_script | Liste der Skripten
| irc | irc_channel | Aktueller IRC-Channel
diff --git a/doc/de/autogen/plugin_api/infos.txt b/doc/de/autogen/plugin_api/infos.txt
index 1fd5d1a4b..2812b65d7 100644
--- a/doc/de/autogen/plugin_api/infos.txt
+++ b/doc/de/autogen/plugin_api/infos.txt
@@ -32,6 +32,12 @@
| weechat | charset_terminal | Terminal Zeichensatz | -
+| weechat | color_ansi_regex | POSIX extended regular expression to search ANSI escape codes | -
+
+| weechat | color_rgb2term | RGB color converted to terminal color (0-255) | rgb,limit (limit is optional and is set to 256 by default)
+
+| weechat | color_term2rgb | terminal color (0-255) converted to RGB color | color (terminal color: 0-255)
+
| weechat | cursor_mode | 1, falls Cursor-Modus aktiviert ist | -
| weechat | date | Datum der WeeChat Kompilierung | -
diff --git a/doc/de/autogen/user/exec_commands.txt b/doc/de/autogen/user/exec_commands.txt
new file mode 100644
index 000000000..3134547d5
--- /dev/null
+++ b/doc/de/autogen/user/exec_commands.txt
@@ -0,0 +1,53 @@
+[[command_exec_exec]]
+[command]*`exec`* execute external commands::
+
+----
+/exec -list
+ [-sh|-nosh] [-bg|-nobg] [-stdin|-nostdin] [-buffer <name>] [-l|-o|-n] |-sw|-nosw] [-ln|-noln] [-color off|decode|strip] [-rc|-norc] [-timeout <timeout>] [-name <name>] <command>
+ -in <id> <text>
+ -inclose <id> [<text>]
+ -signal <id> <signal>
+ -kill <id>
+ -killall
+ -set <id> <property> <value>
+ -del <id>|-all [<id>...]
+
+ -list: list commands
+ -sh: use the shell to execute the command (default)
+ -nosh: do not use the shell to execute the command (required if the command has some unsafe data, for example the content of a message from another user)
+ -bg: run process in background: do not display process output neither return code (not compatible with options -o/-n)
+ -nobg: catch process output and display return code (default)
+ -stdin: create a pipe for sending data to the process (with /exec -in/-inclose)
+-nostdin: do not create a pipe for stdin (default)
+ -buffer: display/send output of command on this buffer (if the buffer is not found, a new buffer with name "exec.exec.xxx" is created)
+ -l: display locally output of command on buffer (default)
+ -o: send output of command to the buffer (not compatible with option -bg)
+ -n: display output of command in a new buffer (not compatible with option -bg)
+ -sw: switch to the output buffer (default)
+ -nosw: don't switch to the output buffer
+ -ln: display line numbers (default in new buffer only)
+ -noln: don't display line numbers
+ -color: action on ANSI colors in output:
+ ansi: keep ANSI codes as-is
+ decode: convert ANSI colors to WeeChat/IRC (default)
+ strip: remove ANSI colors
+ -rc: display return code (default)
+ -norc: don't display return code
+-timeout: set a timeout for the command (in seconds)
+ -name: set a name for the command (to name it later with /exec)
+ command: the command to execute; if beginning with "url:", the shell is disabled and the content of URL is downloaded and sent as output
+ id: command identifier: either its number or name (if set with "-name xxx")
+ -in: send text on standard input of process
+-inclose: same a -in, but stdin is closed after (and text is optional: without text, the stdin is just closed)
+ -signal: send a signal to the process; the signal can be an integer or one of these names: hup, int, quit, kill, term, usr1, usr2
+ -kill: alias of "-signal <id> kill"
+-killall: kill all running processes
+ -set: set a hook property (see function hook_set in plugin API reference)
+property: hook property
+ value: new value for hook property
+ -del: delete a terminated command
+ -all: delete all terminated commands
+
+Default options can be set in the option exec.command.default_options.
+----
+
diff --git a/doc/de/autogen/user/exec_options.txt b/doc/de/autogen/user/exec_options.txt
new file mode 100644
index 000000000..c7d75c760
--- /dev/null
+++ b/doc/de/autogen/user/exec_options.txt
@@ -0,0 +1,20 @@
+* [[option_exec.color.flag_finished]] *exec.color.flag_finished*
+** Beschreibung: `text color for a finished command flag in list of commands`
+** Typ: Farbe
+** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen (Standardwert: `lightred`)
+
+* [[option_exec.color.flag_running]] *exec.color.flag_running*
+** Beschreibung: `text color for a running command flag in list of commands`
+** Typ: Farbe
+** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen (Standardwert: `lightgreen`)
+
+* [[option_exec.command.default_options]] *exec.command.default_options*
+** Beschreibung: `default options for command /exec (see /help exec); example: "-nosh -bg" to run all commands in background (no output), and without using the shell`
+** Typ: Zeichenkette
+** Werte: beliebige Zeichenkette (Standardwert: `""`)
+
+* [[option_exec.command.purge_delay]] *exec.command.purge_delay*
+** Beschreibung: `delay for purging finished commands (in seconds, 0 = purge commands immediately, -1 = never purge)`
+** Typ: integer
+** Werte: -1 .. 25920000 (Standardwert: `0`)
+
diff --git a/doc/de/autogen/user/weechat_commands.txt b/doc/de/autogen/user/weechat_commands.txt
index 2ca246946..6bd9617d1 100644
--- a/doc/de/autogen/user/weechat_commands.txt
+++ b/doc/de/autogen/user/weechat_commands.txt
@@ -131,21 +131,26 @@ Beispiele:
/color alias <color> <name>
unalias <color>
reset
+ term2rgb <color>
+ rgb2term <rgb> [<limit>]
-o
- alias: weist einer Farbzahl einen Namen zu
-unalias: entfernt einen Namen
- color: Farbnummer (>= 0, maximale Anzahl ist abhängig vom Terminal, üblicherweise 63 oder 255 Farben)
- name: Aliasname für eine Farbe (zum Beispiel: "orange")
- reset: setzt alle Farbpaarungen zurück (nützlich falls keine Farbpaarung mehr verfügbar sein sollte und die automatische Reset-Option deaktiviert ist, siehe Option: weechat.look.color_pairs_auto_reset)
- -o: sendet Terminal-/Farbinformationen in den aktuellen Buffer
+ alias: add an alias for a color
+ unalias: delete an alias
+ color: color number (greater than or equal to 0, max depends on terminal, commonly 63 or 255)
+ name: alias name for color (for example: "orange")
+ reset: reset all color pairs (required when no more color pairs are available if automatic reset is disabled, see option weechat.look.color_pairs_auto_reset)
+term2rgb: convert a terminal color (0-255) to RGB color
+rgb2term: convert a RGB color to terminal color (0-255)
+ limit: number of colors to use in terminal table (starting from 0); default is 256
+ -o: send terminal/colors info to current buffer as input
-Ohne Angabe von Argumenten wird in einem separaten Buffer die darstellbare Farbpalette angezeigt.
+Without argument, this command displays colors in a new buffer.
-Beispiele:
- der Farbe 214 wird das Alias "orange" zugeordnet:
+Examples:
+ add alias "orange" for color 214:
/color alias 214 orange
- löscht die Farbe 214:
+ delete color 214:
/color unalias 214
----
diff --git a/doc/de/weechat_user.de.txt b/doc/de/weechat_user.de.txt
index 7e44f280d..cabf0d266 100644
--- a/doc/de/weechat_user.de.txt
+++ b/doc/de/weechat_user.de.txt
@@ -1961,6 +1961,34 @@ Um sich alle genutzten Zeichensätze anzeigen zu lassen wird folgender Befehl ge
sollten Probleme bei der Zeichensatzdarstellung auftreten dann werfen Sie bitte
einen Blick in die 'WeeChat FAQ'.
+// TRANSLATION MISSING
+[[exec_plugin]]
+=== Exec plugin
+
+The `/exec` command lets you execute external commands inside WeeChat and
+display the output locally, or send it to a buffer.
+
+[[exec_options]]
+==== Options (exec.conf)
+
+Sections:
+
+[width="100%",cols="3m,6m,16",options="header"]
+|===
+| Section | Control command | Description
+| command | /set exec.command.* | Options for commands
+| color | /set exec.color.* | Colors
+|===
+
+Options:
+
+include::autogen/user/exec_options.txt[]
+
+[[exec_commands]]
+==== Commands
+
+include::autogen/user/exec_commands.txt[]
+
[[fifo_plugin]]
=== Fifo Erweiterung
diff --git a/doc/en/autogen/plugin_api/completions.txt b/doc/en/autogen/plugin_api/completions.txt
index a28833915..33680a6a1 100644
--- a/doc/en/autogen/plugin_api/completions.txt
+++ b/doc/en/autogen/plugin_api/completions.txt
@@ -10,6 +10,8 @@
| aspell | aspell_langs | list of all languages supported by aspell
+| exec | exec_commands_ids | ids (numbers and names) of executed commands
+
| guile | guile_script | list of scripts
| irc | irc_channel | current IRC channel
diff --git a/doc/en/autogen/plugin_api/infos.txt b/doc/en/autogen/plugin_api/infos.txt
index ef961b510..0a743ba48 100644
--- a/doc/en/autogen/plugin_api/infos.txt
+++ b/doc/en/autogen/plugin_api/infos.txt
@@ -32,6 +32,12 @@
| weechat | charset_terminal | terminal charset | -
+| weechat | color_ansi_regex | POSIX extended regular expression to search ANSI escape codes | -
+
+| weechat | color_rgb2term | RGB color converted to terminal color (0-255) | rgb,limit (limit is optional and is set to 256 by default)
+
+| weechat | color_term2rgb | terminal color (0-255) converted to RGB color | color (terminal color: 0-255)
+
| weechat | cursor_mode | 1 if cursor mode is enabled | -
| weechat | date | WeeChat compilation date | -
diff --git a/doc/en/autogen/user/exec_commands.txt b/doc/en/autogen/user/exec_commands.txt
new file mode 100644
index 000000000..3134547d5
--- /dev/null
+++ b/doc/en/autogen/user/exec_commands.txt
@@ -0,0 +1,53 @@
+[[command_exec_exec]]
+[command]*`exec`* execute external commands::
+
+----
+/exec -list
+ [-sh|-nosh] [-bg|-nobg] [-stdin|-nostdin] [-buffer <name>] [-l|-o|-n] |-sw|-nosw] [-ln|-noln] [-color off|decode|strip] [-rc|-norc] [-timeout <timeout>] [-name <name>] <command>
+ -in <id> <text>
+ -inclose <id> [<text>]
+ -signal <id> <signal>
+ -kill <id>
+ -killall
+ -set <id> <property> <value>
+ -del <id>|-all [<id>...]
+
+ -list: list commands
+ -sh: use the shell to execute the command (default)
+ -nosh: do not use the shell to execute the command (required if the command has some unsafe data, for example the content of a message from another user)
+ -bg: run process in background: do not display process output neither return code (not compatible with options -o/-n)
+ -nobg: catch process output and display return code (default)
+ -stdin: create a pipe for sending data to the process (with /exec -in/-inclose)
+-nostdin: do not create a pipe for stdin (default)
+ -buffer: display/send output of command on this buffer (if the buffer is not found, a new buffer with name "exec.exec.xxx" is created)
+ -l: display locally output of command on buffer (default)
+ -o: send output of command to the buffer (not compatible with option -bg)
+ -n: display output of command in a new buffer (not compatible with option -bg)
+ -sw: switch to the output buffer (default)
+ -nosw: don't switch to the output buffer
+ -ln: display line numbers (default in new buffer only)
+ -noln: don't display line numbers
+ -color: action on ANSI colors in output:
+ ansi: keep ANSI codes as-is
+ decode: convert ANSI colors to WeeChat/IRC (default)
+ strip: remove ANSI colors
+ -rc: display return code (default)
+ -norc: don't display return code
+-timeout: set a timeout for the command (in seconds)
+ -name: set a name for the command (to name it later with /exec)
+ command: the command to execute; if beginning with "url:", the shell is disabled and the content of URL is downloaded and sent as output
+ id: command identifier: either its number or name (if set with "-name xxx")
+ -in: send text on standard input of process
+-inclose: same a -in, but stdin is closed after (and text is optional: without text, the stdin is just closed)
+ -signal: send a signal to the process; the signal can be an integer or one of these names: hup, int, quit, kill, term, usr1, usr2
+ -kill: alias of "-signal <id> kill"
+-killall: kill all running processes
+ -set: set a hook property (see function hook_set in plugin API reference)
+property: hook property
+ value: new value for hook property
+ -del: delete a terminated command
+ -all: delete all terminated commands
+
+Default options can be set in the option exec.command.default_options.
+----
+
diff --git a/doc/en/autogen/user/exec_options.txt b/doc/en/autogen/user/exec_options.txt
new file mode 100644
index 000000000..598af7a00
--- /dev/null
+++ b/doc/en/autogen/user/exec_options.txt
@@ -0,0 +1,20 @@
+* [[option_exec.color.flag_finished]] *exec.color.flag_finished*
+** description: `text color for a finished command flag in list of commands`
+** type: color
+** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (default value: `lightred`)
+
+* [[option_exec.color.flag_running]] *exec.color.flag_running*
+** description: `text color for a running command flag in list of commands`
+** type: color
+** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (default value: `lightgreen`)
+
+* [[option_exec.command.default_options]] *exec.command.default_options*
+** description: `default options for command /exec (see /help exec); example: "-nosh -bg" to run all commands in background (no output), and without using the shell`
+** type: string
+** values: any string (default value: `""`)
+
+* [[option_exec.command.purge_delay]] *exec.command.purge_delay*
+** description: `delay for purging finished commands (in seconds, 0 = purge commands immediately, -1 = never purge)`
+** type: integer
+** values: -1 .. 25920000 (default value: `0`)
+
diff --git a/doc/en/autogen/user/weechat_commands.txt b/doc/en/autogen/user/weechat_commands.txt
index 46ecba0f3..ddacf906a 100644
--- a/doc/en/autogen/user/weechat_commands.txt
+++ b/doc/en/autogen/user/weechat_commands.txt
@@ -131,14 +131,19 @@ Examples:
/color alias <color> <name>
unalias <color>
reset
+ term2rgb <color>
+ rgb2term <rgb> [<limit>]
-o
- alias: add an alias for a color
-unalias: delete an alias
- color: color number (greater than or equal to 0, max depends on terminal, commonly 63 or 255)
- name: alias name for color (for example: "orange")
- reset: reset all color pairs (required when no more color pairs are available if automatic reset is disabled, see option weechat.look.color_pairs_auto_reset)
- -o: send terminal/colors info to current buffer as input
+ alias: add an alias for a color
+ unalias: delete an alias
+ color: color number (greater than or equal to 0, max depends on terminal, commonly 63 or 255)
+ name: alias name for color (for example: "orange")
+ reset: reset all color pairs (required when no more color pairs are available if automatic reset is disabled, see option weechat.look.color_pairs_auto_reset)
+term2rgb: convert a terminal color (0-255) to RGB color
+rgb2term: convert a RGB color to terminal color (0-255)
+ limit: number of colors to use in terminal table (starting from 0); default is 256
+ -o: send terminal/colors info to current buffer as input
Without argument, this command displays colors in a new buffer.
diff --git a/doc/en/weechat_user.en.txt b/doc/en/weechat_user.en.txt
index 0bbbd9cc4..6df248f22 100644
--- a/doc/en/weechat_user.en.txt
+++ b/doc/en/weechat_user.en.txt
@@ -1927,6 +1927,33 @@ To see all charsets used, use following command:
For any problem with charsets, please look at 'WeeChat FAQ'.
+[[exec_plugin]]
+=== Exec plugin
+
+The `/exec` command lets you execute external commands inside WeeChat and
+display the output locally, or send it to a buffer.
+
+[[exec_options]]
+==== Options (exec.conf)
+
+Sections:
+
+[width="100%",cols="3m,6m,16",options="header"]
+|===
+| Section | Control command | Description
+| command | /set exec.command.* | Options for commands
+| color | /set exec.color.* | Colors
+|===
+
+Options:
+
+include::autogen/user/exec_options.txt[]
+
+[[exec_commands]]
+==== Commands
+
+include::autogen/user/exec_commands.txt[]
+
[[fifo_plugin]]
=== Fifo plugin
diff --git a/doc/fr/autogen/plugin_api/completions.txt b/doc/fr/autogen/plugin_api/completions.txt
index 4e280b56d..f99223a7a 100644
--- a/doc/fr/autogen/plugin_api/completions.txt
+++ b/doc/fr/autogen/plugin_api/completions.txt
@@ -10,6 +10,8 @@
| aspell | aspell_langs | liste de toutes les langues supportées par aspell
+| exec | exec_commands_ids | ids (nombres et noms) des commandes exécutées
+
| guile | guile_script | liste des scripts
| irc | irc_channel | canal IRC courant
diff --git a/doc/fr/autogen/plugin_api/infos.txt b/doc/fr/autogen/plugin_api/infos.txt
index 924c9039c..5743c0137 100644
--- a/doc/fr/autogen/plugin_api/infos.txt
+++ b/doc/fr/autogen/plugin_api/infos.txt
@@ -32,6 +32,12 @@
| weechat | charset_terminal | charset du terminal | -
+| weechat | color_ansi_regex | expression régulière POSIX étendue pour chercher les codes ANSI échappés | -
+
+| weechat | color_rgb2term | couleur RGB convertie en couleur du terminal (0-255) | rgb,limite (la limite est optionnelle et vaut 256 par défaut)
+
+| weechat | color_term2rgb | couleur du terminal (0-255) convertie en couleur RGB | couleur (couleur du terminal: 0-255)
+
| weechat | cursor_mode | 1 si le mode curseur est activé | -
| weechat | date | date de compilation de WeeChat | -
diff --git a/doc/fr/autogen/user/exec_commands.txt b/doc/fr/autogen/user/exec_commands.txt
new file mode 100644
index 000000000..b8c49eb02
--- /dev/null
+++ b/doc/fr/autogen/user/exec_commands.txt
@@ -0,0 +1,53 @@
+[[command_exec_exec]]
+[command]*`exec`* exécuter des commandes externes::
+
+----
+/exec -list
+ [-sh|-nosh] [-bg|-nobg] [-stdin|-nostdin] [-buffer <nom>] [-l|-o|-n] |-sw|-nosw] [-ln|-noln] [-color off|decode|strip] [-rc|-norc] [-timeout <délai>] [-name <nom>] <commande>
+ -in <id> <texte>
+ -inclose <id> [<texte>]
+ -signal <id> <signal>
+ -kill <id>
+ -killall
+ -set <id> <propriété> <valeur>
+ -del <id>|-all [<id>...]
+
+ -list: lister les commandes
+ -sh: utiliser le shell pour exécuter la commande (par défaut)
+ -nosh: ne pas utiliser le shell pour exécuter la commande (requis si la commande a des données non fiables, par exemple le contenu d'un message d'un autre utilisateur)
+ -bg: lancer le processus en tâche de fond : ne pas afficher la sortie ni le code retour (non compatible avec les options -o/-n)
+ -nobg: capturer la sortie du processus et afficher le code retour (par défaut)
+ -stdin: créer un tuyau pour envoyer des données sur l'entrée standard du processus (avec /exec -in/-inclose)
+ -nostdin: ne pas créer de tuyau pour l'entrée standard (par défaut)
+ -buffer: afficher/envoyer la sortie de la commande sur ce tampon (si le tampon n'est pas trouvé, un nouveau tampon avec le nom "exec.exec.xxx" est créé)
+ -l: afficher localement la sortie de la commande sur le tampon (par défaut)
+ -o: envoyer la sortie de la commande au tampon (non compatible avec l'option -bg)
+ -n: afficher la sortie de la commande dans un nouveau tampon (non compatible avec l'option -bg)
+ -sw: basculer vers le tampon de sortie (par défaut)
+ -nosw: ne pas basculer vers le tampon de sortie
+ -ln: afficher les numéros de ligne (par défaut dans un nouveau tampon seulement)
+ -noln: ne pas afficher les numéros de ligne
+ -color: action sur les couleurs ANSI dans la sortie :
+ ansi: garder les codes ANSI tels quels
+ decode: convertir les couleurs ANSI en couleurs WeeChat/IRC (par défaut)
+ strip: supprimer les couleurs ANSI
+ -rc: afficher le code retour (par défaut)
+ -norc: ne pas afficher le code retour
+ -timeout: définir un délai maximum pour la commande (en secondes)
+ -name: définir un nom pour la commande (pour la nommer plus tard avec /exec)
+ commande: la commande à exécuter; si elle commence par "url:", le shell est désactivé et le contenu de l'URL est téléchargé et envoyé comme sortie
+ id: identifiant de commande : soit le numéro ou le nom (si défini avec "-name xxx")
+ -in: envoyer le texte sur l'entrée standard du processus
+ -inclose: identique à -in, mais l'entrée standard est fermée après (et le texte est facultatif : sans texte, l'entrée standard est juste fermée)
+ -signal: envoyer un signal au processus; le signal peut être un entier ou l'un de ces noms : hup, int, quit, kill, term, usr1, usr2
+ -kill: alias de "-signal <id> kill"
+ -killall: tuer tous les processus
+ -set: définir une propriété du hook (voir la fonction hook_set dans l'API de référence extension)
+propriété: propriété du hook
+ valeur: nouvelle valeur pour la propriété du hook
+ -del: supprimer la commande terminée
+ -all: supprimer toutes les commandes terminées
+
+Les options par défaut peuvent être définies dans l'option exec.command.default_options.
+----
+
diff --git a/doc/fr/autogen/user/exec_options.txt b/doc/fr/autogen/user/exec_options.txt
new file mode 100644
index 000000000..724f9bed1
--- /dev/null
+++ b/doc/fr/autogen/user/exec_options.txt
@@ -0,0 +1,20 @@
+* [[option_exec.color.flag_finished]] *exec.color.flag_finished*
+** description: `couleur du texte pour le drapeau d'une commande terminée dans la liste des commandes`
+** type: couleur
+** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné (valeur par défaut: `lightred`)
+
+* [[option_exec.color.flag_running]] *exec.color.flag_running*
+** description: `couleur du texte pour le drapeau d'une commande qui tourne dans la liste des commandes`
+** type: couleur
+** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné (valeur par défaut: `lightgreen`)
+
+* [[option_exec.command.default_options]] *exec.command.default_options*
+** description: `options par défaut pour la commande /exec (voir /help exec); exemple: "-nosh -bg" pour lancer toutes les commandes en tâche de fond (sans sortie) et sans utiliser le shell`
+** type: chaîne
+** valeurs: toute chaîne (valeur par défaut: `""`)
+
+* [[option_exec.command.purge_delay]] *exec.command.purge_delay*
+** description: `délai pour purger les commandes terminées (en secondes, 0 = purger les commandes immédiatement, -1 = ne jamais purger)`
+** type: entier
+** valeurs: -1 .. 25920000 (valeur par défaut: `0`)
+
diff --git a/doc/fr/autogen/user/weechat_commands.txt b/doc/fr/autogen/user/weechat_commands.txt
index 34e536eae..fe48a7340 100644
--- a/doc/fr/autogen/user/weechat_commands.txt
+++ b/doc/fr/autogen/user/weechat_commands.txt
@@ -131,6 +131,8 @@ Exemples:
/color alias <couleur> <nom>
unalias <couleur>
reset
+ term2rgb <color>
+ rgb2term <rgb> [<limit>]
-o
alias: ajouter un alias pour une couleur
@@ -138,6 +140,9 @@ unalias: supprimer un alias pour une couleur
couleur: numéro de couleur (supérieur ou égal à 0, le max dépend du terminal, généralement 63 ou 255)
nom: nom d'alias pour la couleur (par exemple: "orange")
reset: réinitialiser toutes les paires de couleurs (requis quand il n'y a plus de paires de couleurs disponibles si la réinitialisation automatique est désactivée, voir l'option weechat.look.color_pairs_auto_reset)
+term2rgb: convertir une couleur du terminal (0-255) en couleur RGB
+rgb2term: convertir une couleur RGB en couleur du terminal (0-255)
+ limite: nombre de couleurs à utiliser dans la table du terminal (en démarrant de 0); par défaut 256
-o: envoyer les infos terminal/couleurs sur le tampon courant comme entrée
Sans paramètre, cette commande affiche les couleurs dans un nouveau tampon.
diff --git a/doc/fr/weechat_user.fr.txt b/doc/fr/weechat_user.fr.txt
index dc30ebe2a..f51f41750 100644
--- a/doc/fr/weechat_user.fr.txt
+++ b/doc/fr/weechat_user.fr.txt
@@ -1992,6 +1992,33 @@ Pour voir tous les jeux de caractères utilisés, utilisez la commande suivante
Pour tout problème avec les jeux de caractères, merci de consulter la
'FAQ WeeChat'.
+[[exec_plugin]]
+=== Extension Exec
+
+La commande `/exec` vous permet de lancer des commandes externes dans WeeChat et
+d'afficher la sortie localement, ou de l'envoyer à un tampon.
+
+[[exec_options]]
+==== Options (exec.conf)
+
+Sections :
+
+[width="100%",cols="3m,6m,16",options="header"]
+|===
+| Section | Commande de contrôle | Description
+| command | /set exec.command.* | Options for commands
+| color | /set exec.color.* | Colors
+|===
+
+Options :
+
+include::autogen/user/exec_options.txt[]
+
+[[exec_commands]]
+==== Commandes
+
+include::autogen/user/exec_commands.txt[]
+
[[fifo_plugin]]
=== Extension Fifo
diff --git a/doc/it/autogen/plugin_api/completions.txt b/doc/it/autogen/plugin_api/completions.txt
index 1856a3648..ef49257dd 100644
--- a/doc/it/autogen/plugin_api/completions.txt
+++ b/doc/it/autogen/plugin_api/completions.txt
@@ -10,6 +10,8 @@
| aspell | aspell_langs | elenco di tutte lingue supportate da aspell
+| exec | exec_commands_ids | ids (numbers and names) of executed commands
+
| guile | guile_script | elenco degli script
| irc | irc_channel | canale IRC corrente
diff --git a/doc/it/autogen/plugin_api/infos.txt b/doc/it/autogen/plugin_api/infos.txt
index d384c36f2..c6463fb85 100644
--- a/doc/it/autogen/plugin_api/infos.txt
+++ b/doc/it/autogen/plugin_api/infos.txt
@@ -32,6 +32,12 @@
| weechat | charset_terminal | set caratteri terminale | -
+| weechat | color_ansi_regex | POSIX extended regular expression to search ANSI escape codes | -
+
+| weechat | color_rgb2term | RGB color converted to terminal color (0-255) | rgb,limit (limit is optional and is set to 256 by default)
+
+| weechat | color_term2rgb | terminal color (0-255) converted to RGB color | color (terminal color: 0-255)
+
| weechat | cursor_mode | 1 se la modalità cursore è abilitata | -
| weechat | date | data di compilazione di WeeChat | -
diff --git a/doc/it/autogen/user/exec_commands.txt b/doc/it/autogen/user/exec_commands.txt
new file mode 100644
index 000000000..3134547d5
--- /dev/null
+++ b/doc/it/autogen/user/exec_commands.txt
@@ -0,0 +1,53 @@
+[[command_exec_exec]]
+[command]*`exec`* execute external commands::
+
+----
+/exec -list
+ [-sh|-nosh] [-bg|-nobg] [-stdin|-nostdin] [-buffer <name>] [-l|-o|-n] |-sw|-nosw] [-ln|-noln] [-color off|decode|strip] [-rc|-norc] [-timeout <timeout>] [-name <name>] <command>
+ -in <id> <text>
+ -inclose <id> [<text>]
+ -signal <id> <signal>
+ -kill <id>
+ -killall
+ -set <id> <property> <value>
+ -del <id>|-all [<id>...]
+
+ -list: list commands
+ -sh: use the shell to execute the command (default)
+ -nosh: do not use the shell to execute the command (required if the command has some unsafe data, for example the content of a message from another user)
+ -bg: run process in background: do not display process output neither return code (not compatible with options -o/-n)
+ -nobg: catch process output and display return code (default)
+ -stdin: create a pipe for sending data to the process (with /exec -in/-inclose)
+-nostdin: do not create a pipe for stdin (default)
+ -buffer: display/send output of command on this buffer (if the buffer is not found, a new buffer with name "exec.exec.xxx" is created)
+ -l: display locally output of command on buffer (default)
+ -o: send output of command to the buffer (not compatible with option -bg)
+ -n: display output of command in a new buffer (not compatible with option -bg)
+ -sw: switch to the output buffer (default)
+ -nosw: don't switch to the output buffer
+ -ln: display line numbers (default in new buffer only)
+ -noln: don't display line numbers
+ -color: action on ANSI colors in output:
+ ansi: keep ANSI codes as-is
+ decode: convert ANSI colors to WeeChat/IRC (default)
+ strip: remove ANSI colors
+ -rc: display return code (default)
+ -norc: don't display return code
+-timeout: set a timeout for the command (in seconds)
+ -name: set a name for the command (to name it later with /exec)
+ command: the command to execute; if beginning with "url:", the shell is disabled and the content of URL is downloaded and sent as output
+ id: command identifier: either its number or name (if set with "-name xxx")
+ -in: send text on standard input of process
+-inclose: same a -in, but stdin is closed after (and text is optional: without text, the stdin is just closed)
+ -signal: send a signal to the process; the signal can be an integer or one of these names: hup, int, quit, kill, term, usr1, usr2
+ -kill: alias of "-signal <id> kill"
+-killall: kill all running processes
+ -set: set a hook property (see function hook_set in plugin API reference)
+property: hook property
+ value: new value for hook property
+ -del: delete a terminated command
+ -all: delete all terminated commands
+
+Default options can be set in the option exec.command.default_options.
+----
+
diff --git a/doc/it/autogen/user/exec_options.txt b/doc/it/autogen/user/exec_options.txt
new file mode 100644
index 000000000..ff844f3b5
--- /dev/null
+++ b/doc/it/autogen/user/exec_options.txt
@@ -0,0 +1,20 @@
+* [[option_exec.color.flag_finished]] *exec.color.flag_finished*
+** descrizione: `text color for a finished command flag in list of commands`
+** tipo: colore
+** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: `lightred`)
+
+* [[option_exec.color.flag_running]] *exec.color.flag_running*
+** descrizione: `text color for a running command flag in list of commands`
+** tipo: colore
+** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: `lightgreen`)
+
+* [[option_exec.command.default_options]] *exec.command.default_options*
+** descrizione: `default options for command /exec (see /help exec); example: "-nosh -bg" to run all commands in background (no output), and without using the shell`
+** tipo: stringa
+** valori: qualsiasi stringa (valore predefinito: `""`)
+
+* [[option_exec.command.purge_delay]] *exec.command.purge_delay*
+** descrizione: `delay for purging finished commands (in seconds, 0 = purge commands immediately, -1 = never purge)`
+** tipo: intero
+** valori: -1 .. 25920000 (valore predefinito: `0`)
+
diff --git a/doc/it/autogen/user/weechat_commands.txt b/doc/it/autogen/user/weechat_commands.txt
index 9c9a068ac..397520081 100644
--- a/doc/it/autogen/user/weechat_commands.txt
+++ b/doc/it/autogen/user/weechat_commands.txt
@@ -128,24 +128,29 @@ Examples:
[command]*`color`* definisce gli alias dei colori e visualizza la tavolozza dei colori::
----
-/color alias <colore> <nome>
- unalias <colore>
+/color alias <color> <name>
+ unalias <color>
reset
+ term2rgb <color>
+ rgb2term <rgb> [<limit>]
-o
- alias: aggiunge un alias per un colore
-unalias: elimina un alias
- colore: numero colore (maggiore o ugale a 0, il massimo dipende dal terminale, di solito 63 o 255)
- nome: nome alias per il colore (ad esempio: "arancione")
- reset: ripristina tutte le coppie di colore (richiesto quando non ci sono più coppie disponibili se il ripristino automatico è disabilitato, consultare l'opzione weechat.look.color_pairs_auto_reset)
- -o: invia le informazioni sul terminale/colori su un nuovo buffer.
+ alias: add an alias for a color
+ unalias: delete an alias
+ color: color number (greater than or equal to 0, max depends on terminal, commonly 63 or 255)
+ name: alias name for color (for example: "orange")
+ reset: reset all color pairs (required when no more color pairs are available if automatic reset is disabled, see option weechat.look.color_pairs_auto_reset)
+term2rgb: convert a terminal color (0-255) to RGB color
+rgb2term: convert a RGB color to terminal color (0-255)
+ limit: number of colors to use in terminal table (starting from 0); default is 256
+ -o: send terminal/colors info to current buffer as input
-Senza argomento, il comando mostra i colori in un nuovo buffer.
+Without argument, this command displays colors in a new buffer.
-Esempi:
- aggiunge alias "arancione" per il colore 214:
- /color alias 214 arancione
- elimina il colore 214:
+Examples:
+ add alias "orange" for color 214:
+ /color alias 214 orange
+ delete color 214:
/color unalias 214
----
diff --git a/doc/it/weechat_user.it.txt b/doc/it/weechat_user.it.txt
index 9ba076a81..b324f7f76 100644
--- a/doc/it/weechat_user.it.txt
+++ b/doc/it/weechat_user.it.txt
@@ -2005,6 +2005,34 @@ Per visualizzare tutti i set caratteri utilizzati, utilizzare il comando seguent
Per qualunque problema con i set caratteri, per favore consultare
le 'Domande Frequenti di WeeChat'.
+// TRANSLATION MISSING
+[[exec_plugin]]
+=== Exec plugin
+
+The `/exec` command lets you execute external commands inside WeeChat and
+display the output locally, or send it to a buffer.
+
+[[exec_options]]
+==== Options (exec.conf)
+
+Sections:
+
+[width="100%",cols="3m,6m,16",options="header"]
+|===
+| Section | Control command | Description
+| command | /set exec.command.* | Options for commands
+| color | /set exec.color.* | Colors
+|===
+
+Options:
+
+include::autogen/user/exec_options.txt[]
+
+[[exec_commands]]
+==== Commands
+
+include::autogen/user/exec_commands.txt[]
+
[[fifo_plugin]]
=== Plugin Fifo
diff --git a/doc/ja/autogen/plugin_api/completions.txt b/doc/ja/autogen/plugin_api/completions.txt
index 919de958c..12a90fa3a 100644
--- a/doc/ja/autogen/plugin_api/completions.txt
+++ b/doc/ja/autogen/plugin_api/completions.txt
@@ -10,6 +10,8 @@
| aspell | aspell_langs | aspell でサポートされる全ての言語のリスト
+| exec | exec_commands_ids | ids (numbers and names) of executed commands
+
| guile | guile_script | スクリプトのリスト
| irc | irc_channel | 現在の IRC チャンネル
diff --git a/doc/ja/autogen/plugin_api/infos.txt b/doc/ja/autogen/plugin_api/infos.txt
index 95e92932e..dcefc6d2a 100644
--- a/doc/ja/autogen/plugin_api/infos.txt
+++ b/doc/ja/autogen/plugin_api/infos.txt
@@ -32,6 +32,12 @@
| weechat | charset_terminal | ターミナルの文字集合 | -
+| weechat | color_ansi_regex | POSIX extended regular expression to search ANSI escape codes | -
+
+| weechat | color_rgb2term | RGB color converted to terminal color (0-255) | rgb,limit (limit is optional and is set to 256 by default)
+
+| weechat | color_term2rgb | terminal color (0-255) converted to RGB color | color (terminal color: 0-255)
+
| weechat | cursor_mode | カーソルモードが有効の場合 1 | -
| weechat | date | WeeChat のコンパイル日 | -
diff --git a/doc/ja/autogen/user/exec_commands.txt b/doc/ja/autogen/user/exec_commands.txt
new file mode 100644
index 000000000..3134547d5
--- /dev/null
+++ b/doc/ja/autogen/user/exec_commands.txt
@@ -0,0 +1,53 @@
+[[command_exec_exec]]
+[command]*`exec`* execute external commands::
+
+----
+/exec -list
+ [-sh|-nosh] [-bg|-nobg] [-stdin|-nostdin] [-buffer <name>] [-l|-o|-n] |-sw|-nosw] [-ln|-noln] [-color off|decode|strip] [-rc|-norc] [-timeout <timeout>] [-name <name>] <command>
+ -in <id> <text>
+ -inclose <id> [<text>]
+ -signal <id> <signal>
+ -kill <id>
+ -killall
+ -set <id> <property> <value>
+ -del <id>|-all [<id>...]
+
+ -list: list commands
+ -sh: use the shell to execute the command (default)
+ -nosh: do not use the shell to execute the command (required if the command has some unsafe data, for example the content of a message from another user)
+ -bg: run process in background: do not display process output neither return code (not compatible with options -o/-n)
+ -nobg: catch process output and display return code (default)
+ -stdin: create a pipe for sending data to the process (with /exec -in/-inclose)
+-nostdin: do not create a pipe for stdin (default)
+ -buffer: display/send output of command on this buffer (if the buffer is not found, a new buffer with name "exec.exec.xxx" is created)
+ -l: display locally output of command on buffer (default)
+ -o: send output of command to the buffer (not compatible with option -bg)
+ -n: display output of command in a new buffer (not compatible with option -bg)
+ -sw: switch to the output buffer (default)
+ -nosw: don't switch to the output buffer
+ -ln: display line numbers (default in new buffer only)
+ -noln: don't display line numbers
+ -color: action on ANSI colors in output:
+ ansi: keep ANSI codes as-is
+ decode: convert ANSI colors to WeeChat/IRC (default)
+ strip: remove ANSI colors
+ -rc: display return code (default)
+ -norc: don't display return code
+-timeout: set a timeout for the command (in seconds)
+ -name: set a name for the command (to name it later with /exec)
+ command: the command to execute; if beginning with "url:", the shell is disabled and the content of URL is downloaded and sent as output
+ id: command identifier: either its number or name (if set with "-name xxx")
+ -in: send text on standard input of process
+-inclose: same a -in, but stdin is closed after (and text is optional: without text, the stdin is just closed)
+ -signal: send a signal to the process; the signal can be an integer or one of these names: hup, int, quit, kill, term, usr1, usr2
+ -kill: alias of "-signal <id> kill"
+-killall: kill all running processes
+ -set: set a hook property (see function hook_set in plugin API reference)
+property: hook property
+ value: new value for hook property
+ -del: delete a terminated command
+ -all: delete all terminated commands
+
+Default options can be set in the option exec.command.default_options.
+----
+
diff --git a/doc/ja/autogen/user/exec_options.txt b/doc/ja/autogen/user/exec_options.txt
new file mode 100644
index 000000000..98348ac4a
--- /dev/null
+++ b/doc/ja/autogen/user/exec_options.txt
@@ -0,0 +1,20 @@
+* [[option_exec.color.flag_finished]] *exec.color.flag_finished*
+** 説明: `text color for a finished command flag in list of commands`
+** タイプ: 色
+** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、ターミナル色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_" (デフォルト値: `lightred`)
+
+* [[option_exec.color.flag_running]] *exec.color.flag_running*
+** 説明: `text color for a running command flag in list of commands`
+** タイプ: 色
+** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、ターミナル色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_" (デフォルト値: `lightgreen`)
+
+* [[option_exec.command.default_options]] *exec.command.default_options*
+** 説明: `default options for command /exec (see /help exec); example: "-nosh -bg" to run all commands in background (no output), and without using the shell`
+** タイプ: 文字列
+** 値: 未制約文字列 (デフォルト値: `""`)
+
+* [[option_exec.command.purge_delay]] *exec.command.purge_delay*
+** 説明: `delay for purging finished commands (in seconds, 0 = purge commands immediately, -1 = never purge)`
+** タイプ: 整数
+** 値: -1 .. 25920000 (デフォルト値: `0`)
+
diff --git a/doc/ja/autogen/user/weechat_commands.txt b/doc/ja/autogen/user/weechat_commands.txt
index 3c4ff3d84..ae5cbfec8 100644
--- a/doc/ja/autogen/user/weechat_commands.txt
+++ b/doc/ja/autogen/user/weechat_commands.txt
@@ -131,21 +131,26 @@ localvar: 現在のバッファのローカル変数を表示
/color alias <color> <name>
unalias <color>
reset
+ term2rgb <color>
+ rgb2term <rgb> [<limit>]
-o
- alias: ある色に別名を追加
-unalias: 別名の削除
- color: カラー番号 (0 以上、最大値はターミナル依存、多くの場合 63 か 255)
- name: カラーの別名 (例えば: "orange")
- reset: 全てのカラーペアをリセット (自動的なリセットが無効化されており、これ以上のカラーペアが利用できない場合に必要、オプション weechat.look.color_pairs_auto_reset を参照)
- -o: 端末/色情報を現在の入力としてバッファに送る
+ alias: add an alias for a color
+ unalias: delete an alias
+ color: color number (greater than or equal to 0, max depends on terminal, commonly 63 or 255)
+ name: alias name for color (for example: "orange")
+ reset: reset all color pairs (required when no more color pairs are available if automatic reset is disabled, see option weechat.look.color_pairs_auto_reset)
+term2rgb: convert a terminal color (0-255) to RGB color
+rgb2term: convert a RGB color to terminal color (0-255)
+ limit: number of colors to use in terminal table (starting from 0); default is 256
+ -o: send terminal/colors info to current buffer as input
-引数無しの場合、コマンドは新しいバッファに色を表示します。
+Without argument, this command displays colors in a new buffer.
-例:
- 色番号 214 に対応する別名 "orange" を追加:
+Examples:
+ add alias "orange" for color 214:
/color alias 214 orange
- 色番号 214 を削除:
+ delete color 214:
/color unalias 214
----
diff --git a/doc/ja/weechat_user.ja.txt b/doc/ja/weechat_user.ja.txt
index 469fd2946..802532418 100644
--- a/doc/ja/weechat_user.ja.txt
+++ b/doc/ja/weechat_user.ja.txt
@@ -1930,6 +1930,34 @@ IRC チャンネル (またはプライベートメッセージ) の文字コー
文字コードに関する問題があれば、'WeeChat FAQ' を参照してください。
+// TRANSLATION MISSING
+[[exec_plugin]]
+=== Exec plugin
+
+The `/exec` command lets you execute external commands inside WeeChat and
+display the output locally, or send it to a buffer.
+
+[[exec_options]]
+==== Options (exec.conf)
+
+Sections:
+
+[width="100%",cols="3m,6m,16",options="header"]
+|===
+| Section | Control command | Description
+| command | /set exec.command.* | Options for commands
+| color | /set exec.color.* | Colors
+|===
+
+Options:
+
+include::autogen/user/exec_options.txt[]
+
+[[exec_commands]]
+==== Commands
+
+include::autogen/user/exec_commands.txt[]
+
[[fifo_plugin]]
=== Fifo プラグイン
diff --git a/doc/pl/autogen/plugin_api/completions.txt b/doc/pl/autogen/plugin_api/completions.txt
index 2dba8f9f0..53e55a9a8 100644
--- a/doc/pl/autogen/plugin_api/completions.txt
+++ b/doc/pl/autogen/plugin_api/completions.txt
@@ -10,6 +10,8 @@
| aspell | aspell_langs | lista wszystkich języków wspieranych przez aspell
+| exec | exec_commands_ids | ids (numbers and names) of executed commands
+
| guile | guile_script | lista skryptów
| irc | irc_channel | obecny kanał IRC
diff --git a/doc/pl/autogen/plugin_api/infos.txt b/doc/pl/autogen/plugin_api/infos.txt
index ecf1853fc..3806bbd48 100644
--- a/doc/pl/autogen/plugin_api/infos.txt
+++ b/doc/pl/autogen/plugin_api/infos.txt
@@ -32,6 +32,12 @@
| weechat | charset_terminal | kodowanie terminala | -
+| weechat | color_ansi_regex | POSIX extended regular expression to search ANSI escape codes | -
+
+| weechat | color_rgb2term | RGB color converted to terminal color (0-255) | rgb,limit (limit is optional and is set to 256 by default)
+
+| weechat | color_term2rgb | terminal color (0-255) converted to RGB color | color (terminal color: 0-255)
+
| weechat | cursor_mode | 1 jeśli tryb kursora jest aktywny | -
| weechat | date | data kompilacji WeeChat | -
diff --git a/doc/pl/autogen/user/exec_commands.txt b/doc/pl/autogen/user/exec_commands.txt
new file mode 100644
index 000000000..3134547d5
--- /dev/null
+++ b/doc/pl/autogen/user/exec_commands.txt
@@ -0,0 +1,53 @@
+[[command_exec_exec]]
+[command]*`exec`* execute external commands::
+
+----
+/exec -list
+ [-sh|-nosh] [-bg|-nobg] [-stdin|-nostdin] [-buffer <name>] [-l|-o|-n] |-sw|-nosw] [-ln|-noln] [-color off|decode|strip] [-rc|-norc] [-timeout <timeout>] [-name <name>] <command>
+ -in <id> <text>
+ -inclose <id> [<text>]
+ -signal <id> <signal>
+ -kill <id>
+ -killall
+ -set <id> <property> <value>
+ -del <id>|-all [<id>...]
+
+ -list: list commands
+ -sh: use the shell to execute the command (default)
+ -nosh: do not use the shell to execute the command (required if the command has some unsafe data, for example the content of a message from another user)
+ -bg: run process in background: do not display process output neither return code (not compatible with options -o/-n)
+ -nobg: catch process output and display return code (default)
+ -stdin: create a pipe for sending data to the process (with /exec -in/-inclose)
+-nostdin: do not create a pipe for stdin (default)
+ -buffer: display/send output of command on this buffer (if the buffer is not found, a new buffer with name "exec.exec.xxx" is created)
+ -l: display locally output of command on buffer (default)
+ -o: send output of command to the buffer (not compatible with option -bg)
+ -n: display output of command in a new buffer (not compatible with option -bg)
+ -sw: switch to the output buffer (default)
+ -nosw: don't switch to the output buffer
+ -ln: display line numbers (default in new buffer only)
+ -noln: don't display line numbers
+ -color: action on ANSI colors in output:
+ ansi: keep ANSI codes as-is
+ decode: convert ANSI colors to WeeChat/IRC (default)
+ strip: remove ANSI colors
+ -rc: display return code (default)
+ -norc: don't display return code
+-timeout: set a timeout for the command (in seconds)
+ -name: set a name for the command (to name it later with /exec)
+ command: the command to execute; if beginning with "url:", the shell is disabled and the content of URL is downloaded and sent as output
+ id: command identifier: either its number or name (if set with "-name xxx")
+ -in: send text on standard input of process
+-inclose: same a -in, but stdin is closed after (and text is optional: without text, the stdin is just closed)
+ -signal: send a signal to the process; the signal can be an integer or one of these names: hup, int, quit, kill, term, usr1, usr2
+ -kill: alias of "-signal <id> kill"
+-killall: kill all running processes
+ -set: set a hook property (see function hook_set in plugin API reference)
+property: hook property
+ value: new value for hook property
+ -del: delete a terminated command
+ -all: delete all terminated commands
+
+Default options can be set in the option exec.command.default_options.
+----
+
diff --git a/doc/pl/autogen/user/exec_options.txt b/doc/pl/autogen/user/exec_options.txt
new file mode 100644
index 000000000..9eb774e69
--- /dev/null
+++ b/doc/pl/autogen/user/exec_options.txt
@@ -0,0 +1,20 @@
+* [[option_exec.color.flag_finished]] *exec.color.flag_finished*
+** opis: `text color for a finished command flag in list of commands`
+** typ: kolor
+** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie (domyślna wartość: `lightred`)
+
+* [[option_exec.color.flag_running]] *exec.color.flag_running*
+** opis: `text color for a running command flag in list of commands`
+** typ: kolor
+** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie (domyślna wartość: `lightgreen`)
+
+* [[option_exec.command.default_options]] *exec.command.default_options*
+** opis: `default options for command /exec (see /help exec); example: "-nosh -bg" to run all commands in background (no output), and without using the shell`
+** typ: ciąg
+** wartości: dowolny ciąg (domyślna wartość: `""`)
+
+* [[option_exec.command.purge_delay]] *exec.command.purge_delay*
+** opis: `delay for purging finished commands (in seconds, 0 = purge commands immediately, -1 = never purge)`
+** typ: liczba
+** wartości: -1 .. 25920000 (domyślna wartość: `0`)
+
diff --git a/doc/pl/autogen/user/weechat_commands.txt b/doc/pl/autogen/user/weechat_commands.txt
index 23e1c6870..480b18666 100644
--- a/doc/pl/autogen/user/weechat_commands.txt
+++ b/doc/pl/autogen/user/weechat_commands.txt
@@ -128,24 +128,29 @@ Przykłady:
[command]*`color`* definiuje aliasy i wyświetla paletę kolorów::
----
-/color alias <kolor> <nazwa>
- unalias <kolor>
+/color alias <color> <name>
+ unalias <color>
reset
+ term2rgb <color>
+ rgb2term <rgb> [<limit>]
-o
- alias: dodaje alias dla koloru
-unalias: usuwa alias
- color: numer koloru (większy lub równy 0, maksymalna wartość zależy od terminala, zazwyczaj 63 lub 255)
- nazwa: nazwa aliasu dla koloru (na przykład: "orange")
- reset: resetuje wszystkie pary kolorów (wymagane jeśli nie ma dostępnej większej ilości par kolorów, jeśli automatyczny reset jest wyłączony, zobacz opcję weechat.look.color_pairs_auto_reset)
- -o: wysyła informacje o terminalu/kolorach do obecnego bufora
+ alias: add an alias for a color
+ unalias: delete an alias
+ color: color number (greater than or equal to 0, max depends on terminal, commonly 63 or 255)
+ name: alias name for color (for example: "orange")
+ reset: reset all color pairs (required when no more color pairs are available if automatic reset is disabled, see option weechat.look.color_pairs_auto_reset)
+term2rgb: convert a terminal color (0-255) to RGB color
+rgb2term: convert a RGB color to terminal color (0-255)
+ limit: number of colors to use in terminal table (starting from 0); default is 256
+ -o: send terminal/colors info to current buffer as input
-Bez podania argumentu komenda wyświetli kolory w nowym buforze.
+Without argument, this command displays colors in a new buffer.
-Przykłady:
- dodaje alias "orange" dla koloru 214:
+Examples:
+ add alias "orange" for color 214:
/color alias 214 orange
- usuwa kolor 214:
+ delete color 214:
/color unalias 214
----
diff --git a/doc/pl/weechat_user.pl.txt b/doc/pl/weechat_user.pl.txt
index 606fcf9d5..ae4f917a0 100644
--- a/doc/pl/weechat_user.pl.txt
+++ b/doc/pl/weechat_user.pl.txt
@@ -1941,6 +1941,34 @@ W celu wyświetlenia wszystkich ustawionych kodowań, wykonaj:
W razie jakichś problemów z kodowaniem, zajrzyj do 'WeeChat FAQ'.
+// TRANSLATION MISSING
+[[exec_plugin]]
+=== Exec plugin
+
+The `/exec` command lets you execute external commands inside WeeChat and
+display the output locally, or send it to a buffer.
+
+[[exec_options]]
+==== Options (exec.conf)
+
+Sections:
+
+[width="100%",cols="3m,6m,16",options="header"]
+|===
+| Section | Control command | Description
+| command | /set exec.command.* | Options for commands
+| color | /set exec.color.* | Colors
+|===
+
+Options:
+
+include::autogen/user/exec_options.txt[]
+
+[[exec_commands]]
+==== Commands
+
+include::autogen/user/exec_commands.txt[]
+
[[fifo_plugin]]
=== Wtyczka fifo