doc: remove "weechat_" prefix in internal links (plugin API reference)
parent
a9b0c00df7
commit
0c2f32fbcd
|
@ -797,7 +797,7 @@ _WeeChat ≥ 0.4.2._
|
|||
|
||||
Return number of chars needed on screen to display UTF-8 string.
|
||||
Non-printable chars have a width of 1 (this is the difference with the function
|
||||
<<_utf8_strlen_screen,weechat_utf8_strlen_screen>>).
|
||||
<<_utf8_strlen_screen,utf8_strlen_screen>>).
|
||||
|
||||
Prototype:
|
||||
|
||||
|
@ -931,9 +931,8 @@ Evaluate a path in 3 steps:
|
|||
|
||||
. replace leading `%h` by WeeChat home directory,
|
||||
. replace leading `+~+` by user home directory (call to
|
||||
<<_string_expand_home,weechat_string_expand_home>>),
|
||||
. evaluate variables
|
||||
(see <<_string_eval_expression,weechat_string_eval_expression>>).
|
||||
<<_string_expand_home,string_expand_home>>),
|
||||
. evaluate variables (see <<_string_eval_expression,string_eval_expression>>).
|
||||
|
||||
Prototype:
|
||||
|
||||
|
@ -949,11 +948,11 @@ Arguments:
|
|||
|
||||
* _path_: path
|
||||
* _pointers_: hashtable for call to function
|
||||
<<_string_eval_expression,weechat_string_eval_expression>>
|
||||
<<_string_eval_expression,string_eval_expression>>
|
||||
* _extra_vars_: hashtable for call to function
|
||||
<<_string_eval_expression,weechat_string_eval_expression>>
|
||||
<<_string_eval_expression,string_eval_expression>>
|
||||
* _options_: hashtable for call to function
|
||||
<<_string_eval_expression,weechat_string_eval_expression>>
|
||||
<<_string_eval_expression,string_eval_expression>>
|
||||
|
||||
Return value:
|
||||
|
||||
|
@ -1200,7 +1199,7 @@ _WeeChat ≥ 0.3.7._
|
|||
|
||||
Compile a POSIX extended regular expression using optional flags at beginning
|
||||
of string (for format of flags, see
|
||||
<<_string_regex_flags,weechat_string_regex_flags>>).
|
||||
<<_string_regex_flags,string_regex_flags>>).
|
||||
|
||||
Prototype:
|
||||
|
||||
|
@ -1376,8 +1375,7 @@ Arguments:
|
|||
|
||||
* _string_: string
|
||||
* _regex_: pointer to a regular expression (_regex_t_ structure) compiled with
|
||||
WeeChat function <<_string_regcomp,weechat_string_regcomp>> or regcomp
|
||||
(see `man regcomp`)
|
||||
WeeChat function <<_string_regcomp,string_regcomp>> or regcomp (see `man regcomp`)
|
||||
* _replace_: replacement text, where following references are allowed:
|
||||
** `+$0+` to `+$99+`: match 0 to 99 in regular expression (0 is the whole match,
|
||||
1 to 99 are groups captured between parentheses)
|
||||
|
@ -1448,7 +1446,7 @@ Arguments:
|
|||
Return value:
|
||||
|
||||
* array of strings, NULL if problem (must be freed by calling
|
||||
<<_string_free_split,weechat_string_free_split>> after use)
|
||||
<<_string_free_split,string_free_split>> after use)
|
||||
|
||||
C example:
|
||||
|
||||
|
@ -1511,7 +1509,7 @@ Arguments:
|
|||
Return value:
|
||||
|
||||
* array of strings, NULL if problem (must be freed by calling
|
||||
<<_string_free_split,weechat_string_free_split>> after use)
|
||||
<<_string_free_split,string_free_split>> after use)
|
||||
|
||||
C example:
|
||||
|
||||
|
@ -1545,8 +1543,7 @@ void weechat_string_free_split (char **split_string);
|
|||
|
||||
Arguments:
|
||||
|
||||
* _split_string_: string split by function
|
||||
<<_string_split,weechat_string_split>>
|
||||
* _split_string_: string split by function <<_string_split,string_split>>
|
||||
|
||||
C example:
|
||||
|
||||
|
@ -1576,8 +1573,7 @@ char *weechat_string_build_with_split_string (char **split_string,
|
|||
|
||||
Arguments:
|
||||
|
||||
* _split_string_: string split by function
|
||||
<<_string_split,weechat_string_split>>
|
||||
* _split_string_: string split by function <<_string_split,string_split>>
|
||||
* _separator_: string used to separate strings
|
||||
|
||||
Return value:
|
||||
|
@ -1620,7 +1616,7 @@ Arguments:
|
|||
Return value:
|
||||
|
||||
* array of strings, NULL if problem (must be freed by calling
|
||||
<<_free_split_command,weechat_free_split_command>> after use)
|
||||
<<_free_split_command,free_split_command>> after use)
|
||||
|
||||
C example:
|
||||
|
||||
|
@ -1650,8 +1646,7 @@ void weechat_string_free_split_command (char **split_command);
|
|||
|
||||
Arguments:
|
||||
|
||||
* _split_command_: command split by
|
||||
<<_string_split_command,weechat_string_split_command>>
|
||||
* _split_command_: command split by <<_string_split_command,string_split_command>>
|
||||
|
||||
C example:
|
||||
|
||||
|
@ -1986,9 +1981,9 @@ Arguments:
|
|||
pointer); pointers "window" and "buffer" are automatically added if they are
|
||||
not in hashtable (with pointer to current window/buffer) (can be NULL):
|
||||
** _regex_: pointer to a regular expression (_regex_t_ structure) compiled with
|
||||
WeeChat function <<_string_regcomp,weechat_string_regcomp>> or
|
||||
regcomp (see `man regcomp`); this option is similar to _regex_ in hashtable
|
||||
_options_ (below), but is used for better performance
|
||||
WeeChat function <<_string_regcomp,string_regcomp>> or regcomp (see `man regcomp`);
|
||||
this option is similar to _regex_ in hashtable _options_ (below),
|
||||
but is used for better performance
|
||||
* _extra_vars_: extra variables that will be expanded (can be NULL)
|
||||
* _options_: a hashtable with some options (keys and values must be string)
|
||||
(can be NULL):
|
||||
|
@ -2049,7 +2044,7 @@ expanded to last):
|
|||
|
||||
| `+${color:name}+` |
|
||||
WeeChat color code (the name of color has optional attributes),
|
||||
see function <<_color,weechat_color>> for supported formats |
|
||||
see function <<_color,color>> for supported formats |
|
||||
`+${color:red}red text+` +
|
||||
`+${color:*214}bold orange text+` |
|
||||
`+red text+` (in red) +
|
||||
|
@ -2058,7 +2053,7 @@ expanded to last):
|
|||
| `+${info:name}+` +
|
||||
`+${info:name,arguments}+` |
|
||||
Info from WeeChat or a plugin, see function
|
||||
<<_info_get,weechat_info_get>> |
|
||||
<<_info_get,info_get>> |
|
||||
`+${info:version}+` +
|
||||
`+${info:irc_nick_color_name,foo}+` |
|
||||
`+1.0+` +
|
||||
|
@ -4304,10 +4299,10 @@ Return value:
|
|||
|
||||
[NOTE]
|
||||
File is NOT created on disk by this function. It will be created by call to
|
||||
function <<_config_write,weechat_config_write>>.
|
||||
function <<_config_write,config_write>>.
|
||||
You should call this function only after adding some sections (with
|
||||
<<_config_new_section,weechat_config_new_section>>) and options (with
|
||||
<<_config_new_option,weechat_config_new_option>>).
|
||||
<<_config_new_section,config_new_section>>) and options (with
|
||||
<<_config_new_option,config_new_option>>).
|
||||
|
||||
C example:
|
||||
|
||||
|
@ -5238,7 +5233,7 @@ Arguments:
|
|||
|
||||
[NOTE]
|
||||
You can set value to null only if it is allowed for option (see
|
||||
<<_config_new_option,weechat_config_new_option>>).
|
||||
<<_config_new_option,config_new_option>>).
|
||||
|
||||
Return value:
|
||||
|
||||
|
@ -6581,8 +6576,7 @@ Add new key bindings.
|
|||
|
||||
[NOTE]
|
||||
Unlike command `/key bind`, this function will never change an existing key
|
||||
binding, only new keys are created. To remove a key binding, use
|
||||
<<_key_unbind,weechat_key_unbind>>.
|
||||
binding, only new keys are created. To remove a key binding, use <<_key_unbind,key_unbind>>.
|
||||
|
||||
Prototype:
|
||||
|
||||
|
@ -6655,7 +6649,7 @@ int weechat_key_unbind (const char *context, const char *key);
|
|||
|
||||
Arguments:
|
||||
|
||||
* _context_: context for keys (see <<_key_bind,weechat_key_bind>>)
|
||||
* _context_: context for keys (see <<_key_bind,key_bind>>)
|
||||
* _key_: key to remove or a special value "area:XXX" to remove all keys having
|
||||
_XXX_ as first or second area
|
||||
|
||||
|
@ -7454,8 +7448,8 @@ WeeChat makes an automatic split of the command and its arguments (like the
|
|||
shell does). +
|
||||
If the split is not correct (according to quotes in your command), or if you
|
||||
want to use shell, you can use function
|
||||
<<_hook_process_hashtable,weechat_hook_process_hashtable>> with
|
||||
arguments in the hashtable _options_ _(WeeChat ≥ 0.4.0)_.
|
||||
<<_hook_process_hashtable,hook_process_hashtable>> with arguments in the hashtable
|
||||
_options_ _(WeeChat ≥ 0.4.0)_.
|
||||
|
||||
Prototype:
|
||||
|
||||
|
@ -7516,7 +7510,7 @@ unhook (and kill process if it is still running).
|
|||
|
||||
The command can be an URL with format: "url:http://www.example.com",
|
||||
to download content of URL _(WeeChat ≥ 0.3.7)_. Options are possible for URL
|
||||
with function <<_hook_process_hashtable,weechat_hook_process_hashtable>>.
|
||||
with function <<_hook_process_hashtable,hook_process_hashtable>>.
|
||||
|
||||
The command can also be a function name with format: "func:name", to execute
|
||||
the function "name" _(WeeChat ≥ 1.5)_. This function receives a single argument
|
||||
|
@ -7692,8 +7686,7 @@ struct t_hook *weechat_hook_process_hashtable (const char *command,
|
|||
void *callback_data);
|
||||
----
|
||||
|
||||
Arguments are the same as function <<_hook_process,weechat_hook_process>>,
|
||||
with an extra argument:
|
||||
Arguments are the same as function <<_hook_process,hook_process>>, with an extra argument:
|
||||
|
||||
* _options_: options for command executed; the hashtable is duplicated in
|
||||
function, so it's safe to free it after this call
|
||||
|
@ -7716,7 +7709,7 @@ available:
|
|||
_(WeeChat ≥ 0.4.3)_ |
|
||||
(not used) |
|
||||
Create a pipe for writing data on standard input (stdin) of child process
|
||||
(see function <<_hook_set,weechat_hook_set>>)
|
||||
(see function <<_hook_set,hook_set>>)
|
||||
|
||||
| buffer_flush +
|
||||
_(WeeChat ≥ 1.0)_ |
|
||||
|
@ -8899,8 +8892,7 @@ int weechat_hook_signal_send (const char *signal, const char *type_data,
|
|||
Arguments:
|
||||
|
||||
* _signal_: signal to send
|
||||
* _type_data_: type of data sent with signal (see
|
||||
<<_hook_signal,weechat_hook_signal>>)
|
||||
* _type_data_: type of data sent with signal (see <<_hook_signal,hook_signal>>)
|
||||
* _signal_data_: data sent with signal
|
||||
|
||||
Return value _(WeeChat ≥ 1.0)_:
|
||||
|
@ -9555,7 +9547,7 @@ Arguments:
|
|||
** _struct t_gui_buffer *buffer_: buffer where completion is made
|
||||
** _struct t_gui_completion *completion_: structure used to add words for
|
||||
completion (see
|
||||
<<_hook_completion_list_add,weechat_hook_completion_list_add>>)
|
||||
<<_hook_completion_list_add,hook_completion_list_add>>)
|
||||
** return value:
|
||||
*** _WEECHAT_RC_OK_
|
||||
*** _WEECHAT_RC_ERROR_
|
||||
|
@ -9570,13 +9562,12 @@ recommended to choose a name with a unique prefix, like "plugin_xxx" (where
|
|||
"xxx" is your item name).
|
||||
|
||||
[IMPORTANT]
|
||||
The callback must only call function
|
||||
<<_hook_completion_list_add,weechat_hook_completion_list_add>>
|
||||
The callback must only call function <<_hook_completion_list_add,hook_completion_list_add>>
|
||||
and must *NOT* update the command line. +
|
||||
To update the command line when key[Tab] is pressed, you can use the function
|
||||
<<_hook_command_run,weechat_hook_command_run>> with command:
|
||||
"/input complete_next" (and you must return _WEECHAT_RC_OK_EAT_ if your callback
|
||||
has updated the command line, so that WeeChat will not perform the completion).
|
||||
<<_hook_command_run,hook_command_run>> with command: "/input complete_next"
|
||||
(and you must return _WEECHAT_RC_OK_EAT_ if your callback has updated the command line,
|
||||
so that WeeChat will not perform the completion).
|
||||
|
||||
Return value:
|
||||
|
||||
|
@ -9701,7 +9692,7 @@ Arguments:
|
|||
** _WEECHAT_LIST_POS_BEGINNING_: beginning of list
|
||||
** _WEECHAT_LIST_POS_END_: end of list
|
||||
|
||||
C example: see <<_hook_completion,weechat_hook_completion>>.
|
||||
C example: see <<_hook_completion,hook_completion>>.
|
||||
|
||||
Script (Python):
|
||||
|
||||
|
@ -11272,7 +11263,7 @@ Properties:
|
|||
"0" to prevent user from clearing buffer with the command `/buffer clear`,
|
||||
"1" to let user clear the buffer (default for a new buffer)
|
||||
(note: even when it is set to "0", the buffer can still be cleared with
|
||||
the function <<_buffer_clear,weechat_buffer_clear>>)
|
||||
the function <<_buffer_clear,buffer_clear>>)
|
||||
|
||||
| filter +
|
||||
_(WeeChat ≥ 1.0)_ | "0" or "1" |
|
||||
|
@ -11787,7 +11778,7 @@ Arguments:
|
|||
|
||||
* _title_: new title for terminal (NULL to reset title); string is evaluated,
|
||||
so variables like `${info:version}` can be used
|
||||
(see <<_string_eval_expression,weechat_string_eval_expression>>)
|
||||
(see <<_string_eval_expression,string_eval_expression>>)
|
||||
|
||||
C example:
|
||||
|
||||
|
@ -12353,8 +12344,7 @@ Properties:
|
|||
| Name | Value | Description
|
||||
|
||||
| color | WeeChat color option name |
|
||||
See argument "color" of function
|
||||
<<_nicklist_add_group,weechat_nicklist_add_group>>
|
||||
See argument "color" of function <<_nicklist_add_group,nicklist_add_group>>
|
||||
|
||||
| visible | "0", "1" |
|
||||
"0" = hidden group, "1" = visible group
|
||||
|
@ -12558,15 +12548,13 @@ Properties:
|
|||
| Name | Value | Description
|
||||
|
||||
| color | WeeChat color option name |
|
||||
See argument "color" of function
|
||||
<<_nicklist_add_nick,weechat_nicklist_add_nick>>
|
||||
See argument "color" of function <<_nicklist_add_nick,nicklist_add_nick>>
|
||||
|
||||
| prefix | any string |
|
||||
Prefix of nick
|
||||
|
||||
| prefix_color | WeeChat color option name |
|
||||
See argument "prefix_color" of function
|
||||
<<_nicklist_add_nick,weechat_nicklist_add_nick>>
|
||||
See argument "prefix_color" of function <<_nicklist_add_nick,nicklist_add_nick>>
|
||||
|
||||
| visible | "0", "1" |
|
||||
"0" = hidden nick, "1" = visible nick
|
||||
|
@ -12966,7 +12954,7 @@ Arguments:
|
|||
* _bar_: bar pointer
|
||||
* _property_: name, hidden, priority, conditions, position, filling_top_bottom,
|
||||
filling_left_right, size, size_max, color_fg, color_delim, color_bg,
|
||||
separator, items (see <<_bar_new,weechat_bar_new>>)
|
||||
separator, items (see <<_bar_new,bar_new>>)
|
||||
* _value_: new value for property
|
||||
|
||||
Return value:
|
||||
|
@ -14158,7 +14146,7 @@ Functions for hdata (raw access to WeeChat or plugins data).
|
|||
Hdata provides read-only access to data. It is *STRICTLY FORBIDDEN* to write
|
||||
something in memory pointed by hdata variables. +
|
||||
The only way to update data is to call function
|
||||
<<_hdata_update,weechat_hdata_update>>.
|
||||
<<_hdata_update,hdata_update>>.
|
||||
|
||||
==== hdata_new
|
||||
|
||||
|
@ -14206,7 +14194,7 @@ Arguments:
|
|||
** _void *data_: pointer
|
||||
** _struct t_hdata *hdata_: pointer to hdata
|
||||
** _struct t_hashtable *hashtable_: hashtable with variables to update
|
||||
(see <<_hdata_update,weechat_hdata_update>>)
|
||||
(see <<_hdata_update,hdata_update>>)
|
||||
** return value: number of variables updated
|
||||
* _callback_update_data_: pointer given to update callback when it is called by
|
||||
WeeChat _(WeeChat ≥ 0.3.9)_
|
||||
|
@ -14818,7 +14806,7 @@ Arguments:
|
|||
* _hdata_: hdata pointer
|
||||
* _list_: list pointer; if NULL _(WeeChat ≥ 1.0)_, the pointer is checked with
|
||||
the lists in hdata that have flag "check pointers" (see
|
||||
<<_hdata_new_list,weechat_hdata_new_list>>), and if no such list
|
||||
<<_hdata_new_list,hdata_new_list>>), and if no such list
|
||||
exists, the pointer is considered as valid
|
||||
* _pointer_: pointer to check
|
||||
|
||||
|
@ -15328,8 +15316,8 @@ Set new value for variable in a hdata.
|
|||
|
||||
[NOTE]
|
||||
This function can be called only in an update callback
|
||||
(see <<_hdata_new,weechat_hdata_new>> and
|
||||
<<_hdata_update,weechat_hdata_update>>), if the variable can be updated.
|
||||
(see <<_hdata_new,hdata_new>> and <<_hdata_update,hdata_update>>),
|
||||
if the variable can be updated.
|
||||
|
||||
Prototype:
|
||||
|
||||
|
|
|
@ -809,7 +809,7 @@ _WeeChat ≥ 0.4.2._
|
|||
Retourner le nombre de caractères nécessaires pour afficher la chaîne UTF-8
|
||||
sur l'écran.
|
||||
Les caractères non affichables ont une longueur de 1 (c'est la différence avec
|
||||
la fonction <<_utf8_strlen_screen,weechat_utf8_strlen_screen>>).
|
||||
la fonction <<_utf8_strlen_screen,utf8_strlen_screen>>).
|
||||
|
||||
Prototype :
|
||||
|
||||
|
@ -943,9 +943,8 @@ _WeeChat ≥ 1.3._
|
|||
|
||||
. remplacer le `%h` du début par le répertoire maison de WeeChat,
|
||||
. remplacer le `+~+` du début par le répertoire maison de l'utilisateur (appel à
|
||||
<<_string_expand_home,weechat_string_expand_home>>),
|
||||
. évaluer les variables
|
||||
(voir <<_string_eval_expression,weechat_string_eval_expression>>).
|
||||
<<_string_expand_home,string_expand_home>>),
|
||||
. évaluer les variables (voir <<_string_eval_expression,string_eval_expression>>).
|
||||
|
||||
Prototype :
|
||||
|
||||
|
@ -961,11 +960,11 @@ Paramètres :
|
|||
|
||||
* _path_ : chemin
|
||||
* _pointers_ : table de hachage pour l'appel à la fonction
|
||||
<<_string_eval_expression,weechat_string_eval_expression>>
|
||||
<<_string_eval_expression,string_eval_expression>>
|
||||
* _extra_vars_ : table de hachage pour l'appel à la fonction
|
||||
<<_string_eval_expression,weechat_string_eval_expression>>
|
||||
<<_string_eval_expression,string_eval_expression>>
|
||||
* _options_ : table de hachage pour l'appel à la fonction
|
||||
<<_string_eval_expression,weechat_string_eval_expression>>
|
||||
<<_string_eval_expression,string_eval_expression>>
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
|
@ -1219,8 +1218,7 @@ Cette fonction n'est pas disponible dans l'API script.
|
|||
_WeeChat ≥ 0.3.7._
|
||||
|
||||
Compiler une expression régulière avec des "flags" optionnels en début de chaîne
|
||||
(pour le format des "flags", voir
|
||||
<<_string_regex_flags,weechat_string_regex_flags>>).
|
||||
(pour le format des "flags", voir <<_string_regex_flags,string_regex_flags>>).
|
||||
|
||||
Prototype :
|
||||
|
||||
|
@ -1397,9 +1395,8 @@ Paramètres :
|
|||
|
||||
* _string_ : chaîne
|
||||
* _regex_ : pointeur vers une expression régulière (structure _regex_t_)
|
||||
compilée avec la fonction WeeChat
|
||||
<<_string_regcomp,weechat_string_regcomp>> ou regcomp (voir
|
||||
`man regcomp`)
|
||||
compilée avec la fonction WeeChat <<_string_regcomp,string_regcomp>> ou regcomp
|
||||
(voir `man regcomp`)
|
||||
* _replace_ : texte de remplacement, où les références suivantes sont
|
||||
autorisées :
|
||||
** `+$0+` à `+$99+` : correspondance 0 à 99 dans l'expression régulière (0 est la
|
||||
|
@ -1476,7 +1473,7 @@ Paramètres :
|
|||
Valeur de retour :
|
||||
|
||||
* tableau de chaînes, NULL en cas de problème (doit être supprimé par un appel à
|
||||
<<_string_free_split,weechat_string_free_split>> après utilisation)
|
||||
<<_string_free_split,string_free_split>> après utilisation)
|
||||
|
||||
Exemples en C :
|
||||
|
||||
|
@ -1542,7 +1539,7 @@ Paramètres :
|
|||
Valeur de retour :
|
||||
|
||||
* tableau de chaînes, NULL en cas de problème (doit être supprimé par un appel à
|
||||
<<_string_free_split,weechat_string_free_split>> après utilisation)
|
||||
<<_string_free_split,string_free_split>> après utilisation)
|
||||
|
||||
Exemple en C :
|
||||
|
||||
|
@ -1576,8 +1573,7 @@ void weechat_string_free_split (char **split_string);
|
|||
|
||||
Paramètres :
|
||||
|
||||
* _split_string_ : chaîne découpée par
|
||||
<<_string_split,weechat_string_split>>
|
||||
* _split_string_ : chaîne découpée par <<_string_split,string_split>>
|
||||
|
||||
Exemple en C :
|
||||
|
||||
|
@ -1607,8 +1603,7 @@ char *weechat_string_build_with_split_string (char **split_string
|
|||
|
||||
Paramètres :
|
||||
|
||||
* _split_string_ : chaîne découpée par la fonction
|
||||
<<_string_split,weechat_string_split>>
|
||||
* _split_string_ : chaîne découpée par la fonction <<_string_split,string_split>>
|
||||
* _separator_ : chaîne utilisée pour séparer les différentes chaînes
|
||||
|
||||
Valeur de retour :
|
||||
|
@ -1652,7 +1647,7 @@ Paramètres :
|
|||
Valeur de retour :
|
||||
|
||||
* tableau de chaînes, NULL en cas de problème (doit être supprimé par un appel à
|
||||
<<_free_split_command,weechat_free_split_command>> après utilisation)
|
||||
<<_free_split_command,free_split_command>> après utilisation)
|
||||
|
||||
Exemple en C :
|
||||
|
||||
|
@ -1683,7 +1678,7 @@ void weechat_string_free_split_command (char **split_command);
|
|||
Paramètres :
|
||||
|
||||
* _split_command_ : commande découpée par
|
||||
<<_string_split_command,weechat_string_split_command>>
|
||||
<<_string_split_command,string_split_command>>
|
||||
|
||||
Exemple en C :
|
||||
|
||||
|
@ -2024,8 +2019,8 @@ Paramètres :
|
|||
hachage (avec le pointer vers fenêtre/tampon courants) (peut être NULL) :
|
||||
** _regex_ : pointeur vers une expression régulière (structure _regex_t_)
|
||||
compilée avec la fonction WeeChat
|
||||
<<_string_regcomp,weechat_string_regcomp>> ou regcomp (voir
|
||||
`man regcomp`) ; cette option est similaire à _regex_ dans la table de
|
||||
<<_string_regcomp,string_regcomp>> ou regcomp (voir `man regcomp`) ;
|
||||
cette option est similaire à _regex_ dans la table de
|
||||
hachage _options_ (ci-dessous), mais est utilisée pour de meilleures
|
||||
performances
|
||||
* _extra_vars_ : variables additionnelles qui seront étendues (peut être NULL)
|
||||
|
@ -2091,7 +2086,7 @@ première étendue à la dernière) :
|
|||
|
||||
| `+${color:nom}+` |
|
||||
Code couleur WeeChat (le nom de couleur a des attributs facultatifs),
|
||||
voir la fonction <<_color,weechat_color>> pour les formats supportés |
|
||||
voir la fonction <<_color,color>> pour les formats supportés |
|
||||
`+${color:red}texte rouge+` +
|
||||
`+${color:*214}texte orange gras+` |
|
||||
`+texte rouge+` (en rouge) +
|
||||
|
@ -2099,8 +2094,7 @@ première étendue à la dernière) :
|
|||
|
||||
| `+${info:nom}+` +
|
||||
`+${info:nom,paramètres}+` |
|
||||
Info de WeeChat ou d'une extension, voir la fonction
|
||||
<<_info_get,weechat_info_get>> |
|
||||
Info de WeeChat ou d'une extension, voir la fonction <<_info_get,info_get>> |
|
||||
`+${info:version}+` +
|
||||
`+${info:irc_nick_color_name,foo}+` |
|
||||
`+1.0+` +
|
||||
|
@ -4377,10 +4371,10 @@ Valeur de retour :
|
|||
|
||||
[NOTE]
|
||||
Le fichier n'est PAS créé sur le disque par cette fonction. Il sera créé par
|
||||
l'appel à la fonction <<_config_write,weechat_config_write>>.
|
||||
l'appel à la fonction <<_config_write,config_write>>.
|
||||
Vous ne devriez appeler cette fonction qu'après avoir créé les sections (avec
|
||||
<<_config_new_section,weechat_config_new_section>>) et les options (avec
|
||||
<<_config_new_option,weechat_config_new_option>>).
|
||||
<<_config_new_section,config_new_section>>) et les options (avec
|
||||
<<_config_new_option,config_new_option>>).
|
||||
|
||||
Exemple en C :
|
||||
|
||||
|
@ -5328,7 +5322,7 @@ Paramètres :
|
|||
|
||||
[NOTE]
|
||||
Vous pouvez affecter "null" à une option seulement si c'est autorisé pour
|
||||
l'option (voir <<_config_new_option,weechat_config_new_option>>).
|
||||
l'option (voir <<_config_new_option,config_new_option>>).
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
|
@ -6685,8 +6679,7 @@ Ajouter de nouvelles associations de touches.
|
|||
[NOTE]
|
||||
Contrairement à la commande `/key bind`, cette fonction ne changera jamais
|
||||
une association de touche existante, seulement des nouvelles touches seront
|
||||
créées. Pour supprimer une association de touche, utilisez
|
||||
<<_key_unbind,weechat_key_unbind>>.
|
||||
créées. Pour supprimer une association de touche, utilisez <<_key_unbind,key_unbind>>.
|
||||
|
||||
Prototype :
|
||||
|
||||
|
@ -6761,8 +6754,7 @@ int weechat_key_unbind (const char *context, const char *key);
|
|||
|
||||
Paramètres :
|
||||
|
||||
* _context_ : contexte pour les touches (voir
|
||||
<<_key_bind,weechat_key_bind>>)
|
||||
* _context_ : contexte pour les touches (voir <<_key_bind,key_bind>>)
|
||||
* _key_ : touche à supprimer ou la valeur spéciale "area:XXX" pour supprimer
|
||||
toutes les touches ayant _XXX_ comme première ou deuxième zone
|
||||
|
||||
|
@ -7590,7 +7582,7 @@ commande. WeeChat effectue un découpage automatique de la commande et de ses
|
|||
paramètres (comme le fait le shell). +
|
||||
Si le découpage n'est pas correct (selon les guillemets utilisés dans votre
|
||||
commande), ou si vous souhaitez utiliser le shell, vous pouvez utiliser la
|
||||
fonction <<_hook_process_hashtable,weechat_hook_process_hashtable>> avec
|
||||
fonction <<_hook_process_hashtable,hook_process_hashtable>> avec
|
||||
les paramètres dans la table de hachage _options_ _(WeeChat ≥ 0.4.0)_.
|
||||
|
||||
Prototype :
|
||||
|
@ -7660,7 +7652,7 @@ toujours).
|
|||
La commande peut être une URL avec le format : "url:http://www.example.com",
|
||||
pour télécharger le contenu de l'URL _(WeeChat ≥ 0.3.7)_.
|
||||
Des options pour l'URL sont possibles avec la fonction
|
||||
<<_hook_process_hashtable,weechat_hook_process_hashtable>>.
|
||||
<<_hook_process_hashtable,hook_process_hashtable>>.
|
||||
|
||||
La commande peut aussi être le nom d'une fonction avec le format : "func:nom",
|
||||
pour exécuter la fonction "nom" _(WeeChat ≥ 1.5)_. Cette fonction reçoit un
|
||||
|
@ -7841,8 +7833,7 @@ struct t_hook *weechat_hook_process_hashtable (const char *command,
|
|||
----
|
||||
|
||||
Les paramètres sont les mêmes que ceux de la fonction
|
||||
<<_hook_process,weechat_hook_process>>, avec un paramètre
|
||||
supplémentaire :
|
||||
<<_hook_process,hook_process>>, avec un paramètre supplémentaire :
|
||||
|
||||
* _options_ : options pour la commande exécutée; la table de hachage est
|
||||
dupliquée dans la fonction, donc il est possible de la supprimer après cet
|
||||
|
@ -7866,7 +7857,7 @@ sont disponibles :
|
|||
_(WeeChat ≥ 0.4.3)_ |
|
||||
(non utilisée) |
|
||||
Créer un tuyau pour écrire sur l'entrée standard (stdin) du processus fils
|
||||
(voir la fonction <<_hook_set,weechat_hook_set>>)
|
||||
(voir la fonction <<_hook_set,hook_set>>)
|
||||
|
||||
| buffer_flush +
|
||||
_(WeeChat ≥ 1.0)_ |
|
||||
|
@ -9070,7 +9061,7 @@ Paramètres :
|
|||
|
||||
* _signal_ : signal à envoyer
|
||||
* _type_data_ : type de données à envoyer avec le signal (voir
|
||||
<<_hook_signal,weechat_hook_signal>>)
|
||||
<<_hook_signal,hook_signal>>)
|
||||
* _signal_data_ : données envoyées avec le signal
|
||||
|
||||
Valeur de retour _(WeeChat ≥ 1.0)_ :
|
||||
|
@ -9747,7 +9738,7 @@ Paramètres :
|
|||
** _struct t_gui_buffer *buffer_ : tampon où la complétion est effectuée
|
||||
** _struct t_gui_completion *completion_ : structure utilisée pour ajouter
|
||||
les mots pour la complétion (voir
|
||||
<<_hook_completion_list_add,weechat_hook_completion_list_add>>)
|
||||
<<_hook_completion_list_add,hook_completion_list_add>>)
|
||||
** valeur de retour :
|
||||
*** _WEECHAT_RC_OK_
|
||||
*** _WEECHAT_RC_ERROR_
|
||||
|
@ -9765,10 +9756,10 @@ Il est donc recommandé de choisir un nom avec un préfixe unique, comme
|
|||
|
||||
[IMPORTANT]
|
||||
Le "callback" doit seulement appeler la fonction
|
||||
<<_hook_completion_list_add,weechat_hook_completion_list_add>>
|
||||
<<_hook_completion_list_add,hook_completion_list_add>>
|
||||
et ne doit *PAS* mettre à jour la ligne de commande. +
|
||||
Pour mettre à jour la ligne de commande quand key[Tab] est pressé, vous pouvez
|
||||
utiliser la fonction <<_hook_command_run,weechat_hook_command_run>>
|
||||
utiliser la fonction <<_hook_command_run,hook_command_run>>
|
||||
avec la commande : "/input complete_next" (et vous devez retourner
|
||||
_WEECHAT_RC_OK_EAT_ si votre "callback" a mis à jour la ligne de commande, de
|
||||
sorte que WeeChat n'exécute pas la complétion).
|
||||
|
@ -9896,7 +9887,7 @@ Paramètres :
|
|||
** _WEECHAT_LIST_POS_BEGINNING_ : au début de la liste
|
||||
** _WEECHAT_LIST_POS_END_ : à la fin de la liste
|
||||
|
||||
Exemple en C : voir <<_hook_completion,weechat_hook_completion>>.
|
||||
Exemple en C : voir <<_hook_completion,hook_completion>>.
|
||||
|
||||
Script (Python) :
|
||||
|
||||
|
@ -11513,8 +11504,7 @@ Propriétés :
|
|||
"0" pour empêcher l'utilisateur d'effacer le tampon avec la commande
|
||||
`/buffer clear`, "1" pour autoriser l'utilisateur à effacer le tampon (par
|
||||
défaut pour un nouveau tampon) (note : même lorsque la valeur est "0", le
|
||||
tampon peut toujours être effacé avec la fonction
|
||||
<<_buffer_clear,weechat_buffer_clear>>)
|
||||
tampon peut toujours être effacé avec la fonction <<_buffer_clear,buffer_clear>>)
|
||||
|
||||
| filter +
|
||||
_(WeeChat ≥ 1.0)_ | "0" or "1" |
|
||||
|
@ -12046,9 +12036,9 @@ void weechat_window_set_title (const char *title);
|
|||
|
||||
Paramètres :
|
||||
|
||||
* _title_ : nouveau titre pour le terminal (NULL pour réinitialiser le titre);
|
||||
* _title_ : nouveau titre pour le terminal (NULL pour réinitialiser le titre) ;
|
||||
la chaîne est évaluée, donc les variables comme `${info:version}` peuvent
|
||||
être utilisées (voir <<_string_eval_expression,weechat_string_eval_expression>>)
|
||||
être utilisées (voir <<_string_eval_expression,string_eval_expression>>)
|
||||
|
||||
Exemple en C :
|
||||
|
||||
|
@ -12618,7 +12608,7 @@ Propriétés :
|
|||
|
||||
| color | nom d'option de couleur WeeChat |
|
||||
Voir le paramètre "color" de la fonction
|
||||
<<_nicklist_add_group,weechat_nicklist_add_group>>
|
||||
<<_nicklist_add_group,nicklist_add_group>>
|
||||
|
||||
| visible | "0", "1" |
|
||||
"0" = groupe caché, "1" = groupe visible
|
||||
|
@ -12823,14 +12813,14 @@ Propriétés :
|
|||
|
||||
| color | nom d'option de couleur WeeChat |
|
||||
Voir le paramètre "color" de la fonction
|
||||
<<_nicklist_add_nick,weechat_nicklist_add_nick>>
|
||||
<<_nicklist_add_nick,nicklist_add_nick>>
|
||||
|
||||
| prefix | toute chaîne |
|
||||
Préfixe du pseudo
|
||||
|
||||
| prefix_color | nom d'option de couleur WeeChat |
|
||||
Voir le paramètre "prefix_color" de la fonction
|
||||
<<_nicklist_add_nick,weechat_nicklist_add_nick>>
|
||||
<<_nicklist_add_nick,nicklist_add_nick>>
|
||||
|
||||
| visible | "0", "1" |
|
||||
"0" = pseudo caché, "1" = pseudo visible
|
||||
|
@ -13245,7 +13235,7 @@ Paramètres :
|
|||
* _bar_ : pointeur vers la barre
|
||||
* _property_ : name, hidden, priority, conditions, position, filling_top_bottom,
|
||||
filling_left_right, size, size_max, color_fg, color_delim, color_bg,
|
||||
separator, items (voir <<_bar_new,weechat_bar_new>>)
|
||||
separator, items (voir <<_bar_new,bar_new>>)
|
||||
* _value_ : nouvelle valeur pour la propriété
|
||||
|
||||
Valeur de retour :
|
||||
|
@ -14453,7 +14443,7 @@ Le "hdata" fournit seulement un accès en lecture seule aux données. Il est
|
|||
*STRICTEMENT INTERDIT* d'écrire quelque chose dans une zone mémoire pointée par
|
||||
les variables du hdata. +
|
||||
Le seul moyen pour mettre à jour des données est d'appeler la fonction
|
||||
<<_hdata_update,weechat_hdata_update>>.
|
||||
<<_hdata_update,hdata_update>>.
|
||||
|
||||
==== hdata_new
|
||||
|
||||
|
@ -14506,7 +14496,7 @@ Paramètres :
|
|||
** _void *data_ : pointeur
|
||||
** _struct t_hdata *hdata_ : pointeur vers le hdata
|
||||
** _struct t_hashtable *hashtable_ : table de hachage avec les variables à
|
||||
mettre à jour (voir <<_hdata_update,weechat_hdata_update>>)
|
||||
mettre à jour (voir <<_hdata_update,hdata_update>>)
|
||||
** valeur de retour : nombre de variables mises à jour
|
||||
* _callback_update_data_ : pointeur donné au "callback" lorsqu'il est appelé par
|
||||
WeeChat _(WeeChat ≥ 0.3.9)_
|
||||
|
@ -15126,8 +15116,8 @@ Paramètres :
|
|||
* _list_ : pointeur vers une liste; si NULL _(WeeChat ≥ 1.0)_, le pointeur est
|
||||
vérifié avec les listes dans le hdata qui ont le drapeau
|
||||
"vérifier les pointeurs" (voir
|
||||
<<_hdata_new_list,weechat_hdata_new_list>>), et s'il n'y a pas de
|
||||
telle liste, le pointeur est considéré comme valide
|
||||
<<_hdata_new_list,hdata_new_list>>), et s'il n'y a pas de telle liste,
|
||||
le pointeur est considéré comme valide
|
||||
* _pointer_ : pointeur à vérifier
|
||||
|
||||
Valeur de retour :
|
||||
|
@ -15651,9 +15641,8 @@ Définir une nouvelle valeur pour une variable dans un hdata.
|
|||
|
||||
[NOTE]
|
||||
Cette fonction ne peut être appelée que dans un "callback" de mise à jour
|
||||
(voir <<_hdata_new,weechat_hdata_new>> et
|
||||
<<_hdata_update,weechat_hdata_update>>), si la variable peut être mise à
|
||||
jour.
|
||||
(voir <<_hdata_new,hdata_new>> et <<_hdata_update,hdata_update>>), si la variable
|
||||
peut être mise à jour.
|
||||
|
||||
Prototype :
|
||||
|
||||
|
|
|
@ -834,7 +834,7 @@ Restituisce il numero di caratteri necessari per visualizzare la stringa
|
|||
UTF-8 su schermo.
|
||||
// TRANSLATION MISSING
|
||||
Non-printable chars have a width of 1 (this is the difference with the function
|
||||
<<_utf8_strlen_screen,weechat_utf8_strlen_screen>>).
|
||||
<<_utf8_strlen_screen,utf8_strlen_screen>>).
|
||||
|
||||
Prototipo:
|
||||
|
||||
|
@ -973,9 +973,8 @@ Evaluate a path in 3 steps:
|
|||
|
||||
. replace leading `%h` by WeeChat home directory,
|
||||
. replace leading `+~+` by user home directory (call to
|
||||
<<_string_expand_home,weechat_string_expand_home>>),
|
||||
. evaluate variables
|
||||
(see <<_string_eval_expression,weechat_string_eval_expression>>).
|
||||
<<_string_expand_home,string_expand_home>>),
|
||||
. evaluate variables (see <<_string_eval_expression,string_eval_expression>>).
|
||||
|
||||
Prototipo:
|
||||
|
||||
|
@ -992,11 +991,11 @@ Argomenti:
|
|||
|
||||
* _path_: path
|
||||
* _pointers_: hashtable for call to function
|
||||
<<_string_eval_expression,weechat_string_eval_expression>>
|
||||
<<_string_eval_expression,string_eval_expression>>
|
||||
* _extra_vars_: hashtable for call to function
|
||||
<<_string_eval_expression,weechat_string_eval_expression>>
|
||||
<<_string_eval_expression,string_eval_expression>>
|
||||
* _options_: hashtable for call to function
|
||||
<<_string_eval_expression,weechat_string_eval_expression>>
|
||||
<<_string_eval_expression,string_eval_expression>>
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Valore restituito:
|
||||
|
@ -1255,7 +1254,7 @@ _WeeChat ≥ 0.3.7._
|
|||
// TRANSLATION MISSING
|
||||
Compile a POSIX extended regular expression using optional flags at beginning
|
||||
of string (for format of flags, see
|
||||
<<_string_regex_flags,weechat_string_regex_flags>>).
|
||||
<<_string_regex_flags,string_regex_flags>>).
|
||||
|
||||
Prototipo:
|
||||
|
||||
|
@ -1438,7 +1437,7 @@ Argomenti:
|
|||
// TRANSLATION MISSING
|
||||
* _string_: string
|
||||
* _regex_: pointer to a regular expression (_regex_t_ structure) compiled with
|
||||
WeeChat function <<_string_regcomp,weechat_string_regcomp>> or regcomp
|
||||
WeeChat function <<_string_regcomp,string_regcomp>> or regcomp
|
||||
(see `man regcomp`)
|
||||
* _replace_: replacement text, where following references are allowed:
|
||||
** `+$0+` to `+$99+`: match 0 to 99 in regular expression (0 is the whole match,
|
||||
|
@ -1512,7 +1511,7 @@ Argomenti:
|
|||
Valore restituito:
|
||||
|
||||
* array di stringhe, NULL se si verifica un problema (deve essere liberata chiamando
|
||||
<<_string_free_split,weechat_string_free_split>> dopo l'uso)
|
||||
<<_string_free_split,string_free_split>> dopo l'uso)
|
||||
|
||||
Esempi:
|
||||
|
||||
|
@ -1577,7 +1576,7 @@ Argomenti:
|
|||
Valore restituito:
|
||||
|
||||
* array di stringhe, NULL se si verifica un problema (deve essere liberata chiamando
|
||||
<<_string_free_split,weechat_string_free_split>> dopo l'uso)
|
||||
<<_string_free_split,string_free_split>> dopo l'uso)
|
||||
|
||||
Esempio in C:
|
||||
|
||||
|
@ -1611,8 +1610,7 @@ void weechat_string_free_split (char **split_string);
|
|||
|
||||
Argomenti:
|
||||
|
||||
* _split_string_: stringa divisa dalla funzione
|
||||
<<_string_split,weechat_string_split>>
|
||||
* _split_string_: stringa divisa dalla funzione <<_string_split,string_split>>
|
||||
|
||||
Esempio in C:
|
||||
|
||||
|
@ -1642,8 +1640,7 @@ char *weechat_string_build_with_split_string (char **split_string,
|
|||
|
||||
Argomenti:
|
||||
|
||||
* _split_string_: stringa divisa dalla funzione
|
||||
<<_string_split,weechat_string_split>>
|
||||
* _split_string_: stringa divisa dalla funzione <<_string_split,string_split>>
|
||||
* _separator_: stringa usata per separare le stringhe
|
||||
|
||||
Valore restituito:
|
||||
|
@ -1687,7 +1684,7 @@ Argomenti:
|
|||
Valore restituito:
|
||||
|
||||
* array di stringhe, NULL in caso di problemi (deve essere liberata chiamando
|
||||
<<_free_split_command,weechat_free_split_command>> dopo l'uso)
|
||||
<<_free_split_command,free_split_command>> dopo l'uso)
|
||||
|
||||
Esempio in C:
|
||||
|
||||
|
@ -1717,8 +1714,7 @@ void weechat_string_free_split_command (char **split_command);
|
|||
|
||||
Argomenti:
|
||||
|
||||
* _split_command_: comando diviso da
|
||||
<<_string_split_command,weechat_string_split_command>>
|
||||
* _split_command_: comando diviso da <<_string_split_command,string_split_command>>
|
||||
|
||||
Esempio in C:
|
||||
|
||||
|
@ -2060,9 +2056,9 @@ Argomenti:
|
|||
pointer); pointers "window" and "buffer" are automatically added if they are
|
||||
not in hashtable (with pointer to current window/buffer) (can be NULL):
|
||||
** _regex_: pointer to a regular expression (_regex_t_ structure) compiled with
|
||||
WeeChat function <<_string_regcomp,weechat_string_regcomp>> or
|
||||
regcomp (see `man regcomp`); this option is similar to _regex_ in hashtable
|
||||
_options_ (below), but is used for better performance
|
||||
WeeChat function <<_string_regcomp,string_regcomp>> or regcomp (see `man regcomp`);
|
||||
this option is similar to _regex_ in hashtable _options_ (below),
|
||||
but is used for better performance
|
||||
* _extra_vars_: extra variables that will be expanded (can be NULL)
|
||||
* _options_: a hashtable with some options (keys and values must be string)
|
||||
(can be NULL):
|
||||
|
@ -2127,7 +2123,7 @@ expanded to last):
|
|||
|
||||
| `+${color:name}+` |
|
||||
WeeChat color code (the name of color has optional attributes),
|
||||
see function <<_color,weechat_color>> for supported formats |
|
||||
see function <<_color,color>> for supported formats |
|
||||
`+${color:red}red text+` +
|
||||
`+${color:*214}bold orange text+` |
|
||||
`+red text+` (in red) +
|
||||
|
@ -2135,8 +2131,7 @@ expanded to last):
|
|||
|
||||
| `+${info:name}+` +
|
||||
`+${info:name,arguments}+` |
|
||||
Info from WeeChat or a plugin, see function
|
||||
<<_info_get,weechat_info_get>> |
|
||||
Info from WeeChat or a plugin, see function <<_info_get,info_get>> |
|
||||
`+${info:version}+` +
|
||||
`+${info:irc_nick_color_name,foo}+` |
|
||||
`+1.0+` +
|
||||
|
@ -4435,10 +4430,10 @@ Valore restituito:
|
|||
|
||||
[NOTE]
|
||||
Il file NON viene creato su disco da questa funzione. Verrà creato chiamando
|
||||
la funzione <<_config_write,weechat_config_write>>.
|
||||
la funzione <<_config_write,config_write>>.
|
||||
Si dovrebbe chiamare questa funzione solo dopo aver aggiunto alcune sezioni
|
||||
(con <<_config_new_section,weechat_config_new_section>>) e le
|
||||
opzioni (con <<_config_new_option,weechat_config_new_option>>).
|
||||
(con <<_config_new_section,config_new_section>>) e le
|
||||
opzioni (con <<_config_new_option,config_new_option>>).
|
||||
|
||||
Esempio in C:
|
||||
|
||||
|
@ -5385,7 +5380,7 @@ Argomenti:
|
|||
|
||||
[NOTE]
|
||||
È possibile impostare il valore a null solo se è consentito per l'opzione
|
||||
(consultare <<_config_new_option,weechat_config_new_option>>).
|
||||
(consultare <<_config_new_option,config_new_option>>).
|
||||
|
||||
Valore restituito:
|
||||
|
||||
|
@ -6747,7 +6742,7 @@ Aggiunge una nuova combinazione tasto.
|
|||
[NOTE]
|
||||
A differenza del comando `/key bind`, questa funzione non cambia mai una
|
||||
combinazione tasti esistente, ma ne vengono create di nuove. Per rimuovere
|
||||
una combinazione tasti, usare <<_key_unbind,weechat_key_unbind>>.
|
||||
una combinazione tasti, usare <<_key_unbind,key_unbind>>.
|
||||
|
||||
Prototipo:
|
||||
|
||||
|
@ -6821,7 +6816,7 @@ int weechat_key_unbind (const char *context, const char *key);
|
|||
|
||||
Argomenti:
|
||||
|
||||
* _context_: contesto per i tasti (consultare <<_key_bind,weechat_key_bind>>)
|
||||
* _context_: contesto per i tasti (consultare <<_key_bind,key_bind>>)
|
||||
* _key_: tasto da rimuovere o un valore speciale "area:XXX" per rimuovere tutti
|
||||
i tasti che hanno _XXX_ come prima o seconda area
|
||||
|
||||
|
@ -7656,7 +7651,7 @@ Since version 0.3.9.2, the shell is not used any more to execute the command.
|
|||
WeeChat makes an automatic split of command and arguments (like the shell does).
|
||||
If the split is not correct (according to quotes in your command), or if you
|
||||
want to use shell, you can use function
|
||||
<<_hook_process_hashtable,weechat_hook_process_hashtable>> with
|
||||
<<_hook_process_hashtable,hook_process_hashtable>> with
|
||||
arguments in the hashtable _options_ _(WeeChat ≥ 0.4.0)_.
|
||||
|
||||
Prototipo:
|
||||
|
@ -7725,7 +7720,7 @@ effettua automaticamente l'unhook (e termina il processo se ancora in esecuzione
|
|||
Il comando può essere un URL con il formato: "url:http://www.esempio.com", per
|
||||
scaricare il contenuto dell'URL _(WeeChat ≥ 0.3.7)_. Le opzioni per
|
||||
un URL sono disponibili con la funzione
|
||||
<<_hook_process_hashtable,weechat_hook_process_hashtable>>.
|
||||
<<_hook_process_hashtable,hook_process_hashtable>>.
|
||||
|
||||
// TRANSLATION MISSING
|
||||
The command can also be a function name with format: "func:name", to execute
|
||||
|
@ -7906,7 +7901,7 @@ struct t_hook *weechat_hook_process_hashtable (const char *command,
|
|||
----
|
||||
|
||||
Gli argomenti sono gli stessi della funzione
|
||||
<<_hook_process,weechat_hook_process>>, con un argomento aggiuntivo:
|
||||
<<_hook_process,hook_process>>, con un argomento aggiuntivo:
|
||||
|
||||
* _options_: le opzioni per il comando eseguito; la tabella hash è duplicata
|
||||
nella funzione, per cui è possibile liberarla dopo questa chiamata
|
||||
|
@ -7933,7 +7928,7 @@ available:
|
|||
_(WeeChat ≥ 0.4.3)_ |
|
||||
(not used) |
|
||||
Create a pipe for writing data on standard input (stdin) of child process
|
||||
(see function <<_hook_set,weechat_hook_set>>)
|
||||
(see function <<_hook_set,hook_set>>)
|
||||
|
||||
// TRANSLATION MISSING
|
||||
| buffer_flush +
|
||||
|
@ -9213,8 +9208,7 @@ int weechat_hook_signal_send (const char *signal, const char *type_data,
|
|||
Argomenti:
|
||||
|
||||
* _signal_: segnale da inviare
|
||||
* _type_data_: tipo di dati inviati con il segnale (consultare
|
||||
<<_hook_signal,weechat_hook_signal>>)
|
||||
* _type_data_: tipo di dati inviati con il segnale (consultare <<_hook_signal,hook_signal>>)
|
||||
* _signal_data_: dati inviati con il segnale
|
||||
|
||||
// TRANSLATION MISSING
|
||||
|
@ -9902,7 +9896,7 @@ Argomenti:
|
|||
** _struct t_gui_buffer *buffer_: buffer dove viene eseguito il completamento
|
||||
** _struct t_gui_completion *completion_: struttura usata per aggiungere
|
||||
parole per il completamento (consultare
|
||||
<<_hook_completion_list_add,weechat_hook_completion_list_add>>)
|
||||
<<_hook_completion_list_add,hook_completion_list_add>>)
|
||||
** valore restituito:
|
||||
*** _WEECHAT_RC_OK_
|
||||
*** _WEECHAT_RC_ERROR_
|
||||
|
@ -9920,10 +9914,10 @@ raccomanda pertanto di scegliere un nome con un prefisso unico, come
|
|||
// TRANSLATION MISSING
|
||||
[IMPORTANT]
|
||||
The callback must only call function
|
||||
<<_hook_completion_list_add,weechat_hook_completion_list_add>>
|
||||
<<_hook_completion_list_add,hook_completion_list_add>>
|
||||
and must *NOT* update the command line. +
|
||||
To update the command line when key[Tab] is pressed, you can use the function
|
||||
<<_hook_command_run,weechat_hook_command_run>> with command:
|
||||
<<_hook_command_run,hook_command_run>> with command:
|
||||
"/input complete_next" (and you must return _WEECHAT_RC_OK_EAT_ if your callback
|
||||
has updated the command line, so that WeeChat will not perform the completion).
|
||||
|
||||
|
@ -10051,7 +10045,7 @@ Argomenti:
|
|||
** _WEECHAT_LIST_POS_BEGINNING_: inizio della lista
|
||||
** _WEECHAT_LIST_POS_END_: fine della lista
|
||||
|
||||
Esempio in C: consultare <<_hook_completion,weechat_hook_completion>>.
|
||||
Esempio in C: consultare <<_hook_completion,hook_completion>>.
|
||||
|
||||
Script (Python):
|
||||
|
||||
|
@ -11700,7 +11694,7 @@ Properties:
|
|||
"0" to prevent user from clearing buffer with the command `/buffer clear`,
|
||||
"1" to let user clear the buffer (default for a new buffer)
|
||||
(note: even when it is set to "0", the buffer can still be cleared with
|
||||
the function <<_buffer_clear,weechat_buffer_clear>>)
|
||||
the function <<_buffer_clear,buffer_clear>>)
|
||||
|
||||
// TRANSLATION MISSING
|
||||
| filter +
|
||||
|
@ -12236,7 +12230,7 @@ Argomenti:
|
|||
// TRANSLATION MISSING
|
||||
* _title_: nuovo titolo per il terminale (NULL per resettarlo);
|
||||
string is evaluated, so variables like `${info:version}` can be used
|
||||
(see <<_string_eval_expression,weechat_string_eval_expression>>)
|
||||
(see <<_string_eval_expression,string_eval_expression>>)
|
||||
|
||||
Esempio in C:
|
||||
|
||||
|
@ -12808,7 +12802,7 @@ Properties:
|
|||
|
||||
| color | nome per l'opzione del colore per WeeChat |
|
||||
Consultare l'argomento "color" della funzione
|
||||
<<_nicklist_add_group,weechat_nicklist_add_group>>
|
||||
<<_nicklist_add_group,nicklist_add_group>>
|
||||
|
||||
| visible | "0", "1" |
|
||||
"0" = gruppo nascosto, "1" = gruppo visibile
|
||||
|
@ -13016,14 +13010,14 @@ Properties:
|
|||
|
||||
| color | nome per l'opzione del colore di WeeChat |
|
||||
Consultare l'argomento "color" della funzione
|
||||
<<_nicklist_add_nick,weechat_nicklist_add_nick>>
|
||||
<<_nicklist_add_nick,nicklist_add_nick>>
|
||||
|
||||
| prefix | qualsiasi stringa |
|
||||
Prefisso del nick
|
||||
|
||||
| prefix_color | nome per l'opzione del colore di WeeChat |
|
||||
Consultare l'argomento "prefix_color" della funzione
|
||||
<<_nicklist_add_nick,weechat_nicklist_add_nick>>
|
||||
<<_nicklist_add_nick,nicklist_add_nick>>
|
||||
|
||||
| visible | "0", "1" |
|
||||
"0" = nick nascosto, "1" = nick visibile
|
||||
|
@ -13442,7 +13436,7 @@ Argomenti:
|
|||
* _bar_: puntatore alla barra
|
||||
* _property_: name, hidden, priority, conditions, position, filling_top_bottom,
|
||||
filling_left_right, size, size_max, color_fg, color_delim, color_bg,
|
||||
separator, items (consultare <<_bar_new,weechat_bar_new>>)
|
||||
separator, items (consultare <<_bar_new,bar_new>>)
|
||||
* _value_: nuovo valore per la proprietà
|
||||
|
||||
Valore restituito:
|
||||
|
@ -14671,8 +14665,7 @@ Funzioni per hdata (accesso raw a WeeChat o ai dati dei plugin).
|
|||
[IMPORTANT]
|
||||
Hdata fornisce un accesso in sola lettura ai dati. È *SEVERAMENTE VIETATO*
|
||||
scrivere qualcosa in memoria puntato dalle variabili in hdata. +
|
||||
The only way to update data is to call function
|
||||
<<_hdata_update,weechat_hdata_update>>.
|
||||
The only way to update data is to call function <<_hdata_update,hdata_update>>.
|
||||
|
||||
==== hdata_new
|
||||
|
||||
|
@ -14725,7 +14718,7 @@ Argomenti:
|
|||
** _void *data_: pointer
|
||||
** _struct t_hdata *hdata_: pointer to hdata
|
||||
** _struct t_hashtable *hashtable_: hashtable with variables to update
|
||||
(see <<_hdata_update,weechat_hdata_update>>)
|
||||
(see <<_hdata_update,hdata_update>>)
|
||||
** return value: number of variables updated
|
||||
// TRANSLATION MISSING
|
||||
* _callback_update_data_: pointer given to update callback when it is called by
|
||||
|
@ -15351,8 +15344,8 @@ Argomenti:
|
|||
// TRANSLATION MISSING
|
||||
* _list_: puntatore alla lista; if NULL _(WeeChat ≥ 1.0)_, the pointer is
|
||||
checked with the lists in hdata that have flag "check pointers" (see
|
||||
<<_hdata_new_list,weechat_hdata_new_list>>), and if no such list
|
||||
exists, the pointer is considered as valid
|
||||
<<_hdata_new_list,hdata_new_list>>), and if no such list exists,
|
||||
the pointer is considered as valid
|
||||
* _pointer_: puntatore da verificare
|
||||
|
||||
Valore restituito:
|
||||
|
@ -15882,8 +15875,8 @@ Set new value for variable in a hdata.
|
|||
|
||||
[NOTE]
|
||||
This function can be called only in an update callback
|
||||
(see <<_hdata_new,weechat_hdata_new>> and
|
||||
<<_hdata_update,weechat_hdata_update>>), if the variable can be updated.
|
||||
(see <<_hdata_new,hdata_new>> and <<_hdata_update,hdata_update>>),
|
||||
if the variable can be updated.
|
||||
|
||||
Prototipo:
|
||||
|
||||
|
|
|
@ -802,7 +802,7 @@ _WeeChat バージョン 0.4.2 以上で利用可。_
|
|||
|
||||
UTF-8 文字列を画面上に表示するために必要な画面幅を返す。非表示文字を
|
||||
1 文字として数えます (これが
|
||||
<<_utf8_strlen_screen,weechat_utf8_strlen_screen>> 関数との違いです)。
|
||||
<<_utf8_strlen_screen,utf8_strlen_screen>> 関数との違いです)。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
|
@ -936,9 +936,9 @@ _WeeChat バージョン 0.3.3 以上で利用可。_
|
|||
|
||||
. 先頭の `%h` を WeeChat ホームディレクトリで置換し、
|
||||
. 先頭の `+~+` をユーザのホームディレクトリで置換し
|
||||
(<<_string_expand_home,weechat_string_expand_home>> を実行し)、
|
||||
(<<_string_expand_home,string_expand_home>> を実行し)、
|
||||
. 変数を評価します
|
||||
(<<_string_eval_expression,weechat_string_eval_expression>> を参照してください)。
|
||||
(<<_string_eval_expression,string_eval_expression>> を参照してください)。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
|
@ -954,11 +954,11 @@ char *weechat_string_eval_path_home (const char *path,
|
|||
|
||||
* _path_: パス
|
||||
* _pointers_: 関数に渡されるハッシュテーブル
|
||||
<<_string_eval_expression,weechat_string_eval_expression>>
|
||||
<<_string_eval_expression,string_eval_expression>>
|
||||
* _extra_vars_: 関数に渡されるハッシュテーブル
|
||||
<<_string_eval_expression,weechat_string_eval_expression>>
|
||||
<<_string_eval_expression,string_eval_expression>>
|
||||
* _options_: 関数に渡されるハッシュテーブル
|
||||
<<_string_eval_expression,weechat_string_eval_expression>>
|
||||
<<_string_eval_expression,string_eval_expression>>
|
||||
|
||||
戻り値:
|
||||
|
||||
|
@ -1204,7 +1204,7 @@ _WeeChat バージョン 0.3.7 以上で利用可。_
|
|||
|
||||
文字列の最初に含まれるオプションフラグを使って POSIX
|
||||
拡張正規表現をコンパイル (フラグの書式については
|
||||
<<_string_regex_flags,weechat_string_regex_flags>> を参照)。
|
||||
<<_string_regex_flags,string_regex_flags>> を参照)。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
|
@ -1378,7 +1378,7 @@ char *weechat_string_replace_regex (const char *string, void *regex,
|
|||
引数:
|
||||
|
||||
* _string_: 文字列
|
||||
* _regex_: WeeChat 関数 <<_string_regcomp,weechat_string_regcomp>>
|
||||
* _regex_: WeeChat 関数 <<_string_regcomp,string_regcomp>>
|
||||
または regcomp (`man regcomp` を参照)
|
||||
でコンパイルした正規表現へのポインタ (_regex_t_ 構造体)
|
||||
* _replace_: 置換先テキスト、以下のリファレンスを使うことができます:
|
||||
|
@ -1450,7 +1450,7 @@ char **weechat_string_split (const char *string, const char *separators,
|
|||
戻り値:
|
||||
|
||||
* 文字列の配列、分割に失敗した場合は NULL (使用後には必ず
|
||||
<<_string_free_split,weechat_string_free_split>> を呼び出して領域を開放してください)
|
||||
<<_string_free_split,string_free_split>> を呼び出して領域を開放してください)
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
|
@ -1513,7 +1513,7 @@ char **weechat_string_split_shell (const char *string, int *num_items);
|
|||
戻り値:
|
||||
|
||||
* 文字列の配列、分割に失敗した場合は NULL (使用後には必ず
|
||||
<<_string_free_split,weechat_string_free_split>> を呼び出して領域を開放してください)
|
||||
<<_string_free_split,string_free_split>> を呼び出して領域を開放してください)
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
|
@ -1547,7 +1547,7 @@ void weechat_string_free_split (char **split_string);
|
|||
|
||||
引数:
|
||||
|
||||
* _split_string_: 関数 <<_string_split,weechat_string_split>>
|
||||
* _split_string_: 関数 <<_string_split,string_split>>
|
||||
が返した分割文字列の配列
|
||||
|
||||
C 言語での使用例:
|
||||
|
@ -1578,7 +1578,7 @@ char *weechat_string_build_with_split_string (char **split_string,
|
|||
|
||||
引数:
|
||||
|
||||
* _split_string_: 関数 <<_string_split,weechat_string_split>>
|
||||
* _split_string_: 関数 <<_string_split,string_split>>
|
||||
が返した分割文字列の配列
|
||||
* _separator_: 文字列を分割する区切り文字
|
||||
|
||||
|
@ -1622,7 +1622,7 @@ char **weechat_string_split_command (const char *command, char separator);
|
|||
戻り値:
|
||||
|
||||
* 文字列の配列、分割に失敗した場合は NULL (使用後には必ず
|
||||
<<_free_split_command,weechat_free_split_command>> を呼び出して領域を開放してください)
|
||||
<<_free_split_command,free_split_command>> を呼び出して領域を開放してください)
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
|
@ -1652,7 +1652,7 @@ void weechat_string_free_split_command (char **split_command);
|
|||
|
||||
引数:
|
||||
|
||||
* _split_command_: 関数 <<_string_split_command,weechat_string_split_command>>
|
||||
* _split_command_: 関数 <<_string_split_command,string_split_command>>
|
||||
が返す分割コマンドの配列
|
||||
|
||||
C 言語での使用例:
|
||||
|
@ -1986,7 +1986,7 @@ char *weechat_string_eval_expression (const char *expr,
|
|||
* _pointers_: ポインタを含むハッシュテーブル (キーは文字列、値はポインタ);
|
||||
(現在のウィンドウやバッファへのポインタを持つ) ハッシュテーブルが "window" と
|
||||
"buffer" ポインタを持たない場合はこれらは自動的に追加される (NULL でも可):
|
||||
** _regex_: WeeChat 関数 <<_string_regcomp,weechat_string_regcomp>>
|
||||
** _regex_: WeeChat 関数 <<_string_regcomp,string_regcomp>>
|
||||
または regcomp (`man regcomp` を参照) でコンパイル済みの正規表現へのポインタ
|
||||
(_regex_t_ 構造体); このオプションは (以下の) ハッシュテーブル構造体 _options_
|
||||
メンバの _regex_ とよく似ていますが、より高速に動作します
|
||||
|
@ -2050,7 +2050,7 @@ char *weechat_string_eval_expression (const char *expr,
|
|||
|
||||
| `+${color:name}+` |
|
||||
WeeChat 色コード (色名部分はオプション属性をとることも可能です),
|
||||
書式を確認するには関数 <<_color,weechat_color>> をご確認ください |
|
||||
書式を確認するには関数 <<_color,color>> をご確認ください |
|
||||
`+${color:red}red text+` +
|
||||
`+${color:*214}bold orange text+` |
|
||||
`+red text+` (赤色で) +
|
||||
|
@ -2058,7 +2058,7 @@ char *weechat_string_eval_expression (const char *expr,
|
|||
|
||||
| `+${info:name}+` +
|
||||
`+${info:name,arguments}+` |
|
||||
WeeChat またはプラグインのインフォ、<<_info_get,weechat_info_get>>
|
||||
WeeChat またはプラグインのインフォ、<<_info_get,info_get>>
|
||||
を参照 |
|
||||
`+${info:version}+` +
|
||||
`+${info:irc_nick_color_name,foo}+` |
|
||||
|
@ -4305,10 +4305,10 @@ struct t_config_file *weechat_config_new (const char *name,
|
|||
|
||||
[NOTE]
|
||||
この関数はディスク上にファイルを作りません。ファイルを作るには
|
||||
<<_config_write,weechat_config_write>>
|
||||
<<_config_write,config_write>>
|
||||
関数を使ってください。この関数を呼び出す必要があるのは
|
||||
(<<_config_new_section,weechat_config_new_section>> を使って) セクションもしくは
|
||||
(<<_config_new_option,weechat_config_new_option>> を使って) オプションを追加した後だけです。
|
||||
(<<_config_new_section,config_new_section>> を使って) セクションもしくは
|
||||
(<<_config_new_option,config_new_option>> を使って) オプションを追加した後だけです。
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
|
@ -5238,7 +5238,7 @@ int weechat_config_option_set_null (struct t_config_option *option,
|
|||
|
||||
[NOTE]
|
||||
オプションに null を設定することが許可されている場合にのみ null を設定できます
|
||||
(<<_config_new_option,weechat_config_new_option>> を参照)。
|
||||
(<<_config_new_option,config_new_option>> を参照)。
|
||||
|
||||
戻り値:
|
||||
|
||||
|
@ -6582,7 +6582,7 @@ _WeeChat バージョン 0.3.6 以上で利用可。_
|
|||
[NOTE]
|
||||
コマンド `/key bind`
|
||||
とは異なり、この関数がすでに存在しているキー割り当てを変更することはありません。新しいキー割り当てを作成するだけです。キー割り当てを削除するには
|
||||
<<_key_unbind,weechat_key_unbind>> を使ってください。
|
||||
<<_key_unbind,key_unbind>> を使ってください。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
|
@ -6655,7 +6655,7 @@ int weechat_key_unbind (const char *context, const char *key);
|
|||
|
||||
引数:
|
||||
|
||||
* _context_: キーのコンテキスト (<<_key_bind,weechat_key_bind>> を参照)
|
||||
* _context_: キーのコンテキスト (<<_key_bind,key_bind>> を参照)
|
||||
* _key_: 削除するキーまたは特殊値 "area:XXX" で1 番目または 2
|
||||
番目の領域から _XXX_ をもつすべてのキーを削除する
|
||||
|
||||
|
@ -7454,7 +7454,7 @@ WeeChat バージョン 0.3.9.2
|
|||
が自動的にコマンドと引数を分割します (シェルがやっているように)。 +
|
||||
分割 (クォートに基づくコマンド分割)
|
||||
に失敗する場合、またはシェルを使いたい場合は、ハッシュテーブル _options_
|
||||
に引数を入れて <<_hook_process_hashtable,weechat_hook_process_hashtable>>
|
||||
に引数を入れて <<_hook_process_hashtable,hook_process_hashtable>>
|
||||
関数を使ってください _(WeeChat バージョン 0.4.0 以上で利用可)_ 。
|
||||
|
||||
プロトタイプ:
|
||||
|
@ -7515,7 +7515,7 @@ struct t_hook *weechat_hook_process (const char *command,
|
|||
(プロセスが実行中であればプロセスを kill します)。
|
||||
|
||||
コマンドを "url:http://www.example.com" の書式に従う URL にすることで、URL
|
||||
の内容がダウンロードされます _(WeeChat バージョン 0.3.7 以上で利用可)_ 。<<_hook_process_hashtable,weechat_hook_process_hashtable>>
|
||||
の内容がダウンロードされます _(WeeChat バージョン 0.3.7 以上で利用可)_ 。<<_hook_process_hashtable,hook_process_hashtable>>
|
||||
関数を使えば URL に対してオプションを与えることもできます。
|
||||
|
||||
_command_ には関数名を指定することも可能です。"name" という関数を実行するには "func:name"
|
||||
|
@ -7693,7 +7693,7 @@ struct t_hook *weechat_hook_process_hashtable (const char *command,
|
|||
----
|
||||
|
||||
引数は以下の追加引数を除いて
|
||||
<<_hook_process,weechat_hook_process>> 関数と同じです:
|
||||
<<_hook_process,hook_process>> 関数と同じです:
|
||||
|
||||
* _options_: 実行するコマンドのオプション;
|
||||
ハッシュテーブルは関数の中で複製されるため、この関数を呼び出した後にハッシュテーブルを安全に開放できます。
|
||||
|
@ -7716,7 +7716,7 @@ struct t_hook *weechat_hook_process_hashtable (const char *command,
|
|||
_(WeeChat バージョン 0.4.3 以上で利用可)_ |
|
||||
(非使用) |
|
||||
データを書き込むためのパイプを子プロセスの標準入力 (stdin)
|
||||
に作成します (関数 <<_hook_set,weechat_hook_set>> を参照)
|
||||
に作成します (関数 <<_hook_set,hook_set>> を参照)
|
||||
|
||||
| buffer_flush +
|
||||
_(WeeChat バージョン 1.0 以上で利用可)_ |
|
||||
|
@ -8900,7 +8900,7 @@ int weechat_hook_signal_send (const char *signal, const char *type_data,
|
|||
|
||||
* _signal_: 送信するシグナル
|
||||
* _type_data_: シグナルと一緒に送信するデータの型
|
||||
(<<_hook_signal,weechat_hook_signal>> を参照)
|
||||
(<<_hook_signal,hook_signal>> を参照)
|
||||
* _signal_data_: シグナルと一緒に送信するデータ
|
||||
|
||||
戻り値 _(WeeChat バージョン 1.0 以上で利用可)_:
|
||||
|
@ -9554,7 +9554,7 @@ struct t_hook *weechat_hook_completion (const char *completion_item,
|
|||
** _struct t_gui_buffer *buffer_: 補完が行われたバッファ
|
||||
** _struct t_gui_completion *completion_:
|
||||
補完に際して単語を追加するために使われる構造体
|
||||
(<<_hook_completion_list_add,weechat_hook_completion_list_add>> を参照)
|
||||
(<<_hook_completion_list_add,hook_completion_list_add>> を参照)
|
||||
** 戻り値:
|
||||
*** _WEECHAT_RC_OK_
|
||||
*** _WEECHAT_RC_ERROR_
|
||||
|
@ -9570,10 +9570,10 @@ struct t_hook *weechat_hook_completion (const char *completion_item,
|
|||
|
||||
[IMPORTANT]
|
||||
コールバックは
|
||||
<<_hook_completion_list_add,weechat_hook_completion_list_add>>
|
||||
<<_hook_completion_list_add,hook_completion_list_add>>
|
||||
関数を呼び出すだけで、コマンドラインをコールバックで絶対に*変更しない* でください。 +
|
||||
key[Tab] が押された時にコマンドラインを更新するためには、関数
|
||||
<<_hook_command_run,weechat_hook_command_run>> を使ってコマンド
|
||||
<<_hook_command_run,hook_command_run>> を使ってコマンド
|
||||
"/input complete_next" をフックしてください (コールバックがコマンドラインを更新する場合は必ず
|
||||
_WEECHAT_RC_OK_EAT_ を返してください。そうすれば WeeChat は補完を行いません)。
|
||||
|
||||
|
@ -9700,7 +9700,7 @@ void weechat_hook_completion_list_add (struct t_gui_completion *completion,
|
|||
** _WEECHAT_LIST_POS_BEGINNING_: リストの最初
|
||||
** _WEECHAT_LIST_POS_END_: リストの最後
|
||||
|
||||
C 言語での使用例: <<_hook_completion,weechat_hook_completion>> を参照。
|
||||
C 言語での使用例: <<_hook_completion,hook_completion>> を参照。
|
||||
|
||||
スクリプト (Python) での使用例:
|
||||
|
||||
|
@ -11270,7 +11270,7 @@ void weechat_buffer_set (struct t_gui_buffer *buffer, const char *property,
|
|||
ユーザからのコマンド `/buffer clear` でバッファのクリアを禁止する場合は
|
||||
"0"、バッファのクリアを許可する場合は "1" (新規バッファに対するデフォルト)
|
||||
(注意: この値が "0" に設定されていたとしても、関数
|
||||
<<_buffer_clear,weechat_buffer_clear>> を使えばバッファをクリアすることが可能です)
|
||||
<<_buffer_clear,buffer_clear>> を使えばバッファをクリアすることが可能です)
|
||||
|
||||
| filter +
|
||||
_(WeeChat バージョン 1.0 以上で利用可)_ | "0" または "1" |
|
||||
|
@ -11783,7 +11783,7 @@ void weechat_window_set_title (const char *title);
|
|||
// TRANSLATION MISSING
|
||||
* _title_: 端末の新しいタイトル (タイトルをリセットする場合は NULL);
|
||||
string is evaluated, so variables like `${info:version}` can be used
|
||||
(see <<_string_eval_expression,weechat_string_eval_expression>>)
|
||||
(see <<_string_eval_expression,string_eval_expression>>)
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
|
@ -12349,7 +12349,7 @@ void weechat_nicklist_group_set (struct t_gui_buffer *buffer,
|
|||
| 名前 | 値 | 説明
|
||||
|
||||
| color | WeeChat 色オプション名 |
|
||||
関数 <<_nicklist_add_group,weechat_nicklist_add_group>>
|
||||
関数 <<_nicklist_add_group,nicklist_add_group>>
|
||||
の引数 "color" を参照
|
||||
|
||||
| visible | "0"、"1" |
|
||||
|
@ -12554,14 +12554,14 @@ void weechat_nicklist_nick_set (struct t_gui_buffer *buffer,
|
|||
| 名前 | 値 | 説明
|
||||
|
||||
| color | WeeChat 色オプション名 |
|
||||
関数 <<_nicklist_add_nick,weechat_nicklist_add_nick>>
|
||||
関数 <<_nicklist_add_nick,nicklist_add_nick>>
|
||||
の引数 "color" を参照
|
||||
|
||||
| prefix | 任意の文字列 |
|
||||
指定したニックネームのプレフィックス
|
||||
|
||||
| prefix_color | WeeChat color option name |
|
||||
関数 <<_nicklist_add_nick,weechat_nicklist_add_nick>>
|
||||
関数 <<_nicklist_add_nick,nicklist_add_nick>>
|
||||
の引数 "prefix_color" を参照
|
||||
|
||||
| visible | "0", "1" |
|
||||
|
@ -12960,9 +12960,7 @@ int weechat_bar_set (struct t_gui_bar *bar, const char *property,
|
|||
引数:
|
||||
|
||||
* _bar_: バーへのポインタ
|
||||
* _property_: name、hidden、priority、conditions、position、filling_top_bottom、filling_left_right、size、size_max、color_fg、color_delim、color_bg、separator、items
|
||||
(<<_bar_new,weechat_bar_new>>
|
||||
を参照)
|
||||
* _property_: name、hidden、priority、conditions、position、filling_top_bottom、filling_left_right、size、size_max、color_fg、color_delim、color_bg、separator、items (<<_bar_new,bar_new>> を参照)
|
||||
* _value_: プロパティの新しい値
|
||||
|
||||
戻り値:
|
||||
|
@ -14154,7 +14152,7 @@ hdata に対する関数 (WeeChat またはプラグインデータへの直ア
|
|||
hdata を使うことで読み取り専用でデータにアクセスできます。hdata
|
||||
変数が示すメモリ領域に何かを書き込むことは*厳禁* です。 +
|
||||
データを更新する場合は必ず関数
|
||||
<<_hdata_update,weechat_hdata_update>> を使ってください。
|
||||
<<_hdata_update,hdata_update>> を使ってください。
|
||||
|
||||
==== hdata_new
|
||||
|
||||
|
@ -14202,7 +14200,7 @@ struct t_hdata *weechat_hdata_new (const char *hdata_name, const char *var_prev,
|
|||
** _void *data_: ポインタ
|
||||
** _struct t_hdata *hdata_: hdata へのポインタ
|
||||
** _struct t_hashtable *hashtable_: 更新する変数を含むハッシュテーブル
|
||||
(<<_hdata_update,weechat_hdata_update>> を参照)
|
||||
(<<_hdata_update,hdata_update>> を参照)
|
||||
** return value: 更新された変数の数
|
||||
* _callback_update_data_: WeeChat が _callback_update_ コールバックを呼び出す際にコールバックに渡すポインタ
|
||||
_(WeeChat バージョン 0.3.9 以上で利用可)_
|
||||
|
@ -14814,7 +14812,7 @@ int weechat_hdata_check_pointer (struct t_hdata *hdata, void *list, void *pointe
|
|||
* _hdata_: hdata へのポインタ
|
||||
* _list_: リストポインタ; NULL の場合 _(WeeChat バージョン 1.0 以上)_ 、ポインタは
|
||||
hdata に含まれる "check pointers" フラグを持つリストでチェックされます
|
||||
(<<_hdata_new_list,weechat_hdata_new_list>>
|
||||
(<<_hdata_new_list,hdata_new_list>>
|
||||
を参照)、このフラグを持つリストがない場合、ポインタは妥当とされます。
|
||||
* _pointer_: 確認するポインタ
|
||||
|
||||
|
@ -15324,8 +15322,8 @@ hdata の変数に新しい値を設定。
|
|||
|
||||
[NOTE]
|
||||
変数の更新を許可している場合に、この関数呼び出して良いのは update
|
||||
コールバックの中だけです (<<_hdata_new,weechat_hdata_new>>
|
||||
と <<_hdata_update,weechat_hdata_update>> を参照)
|
||||
コールバックの中だけです (<<_hdata_new,hdata_new>>
|
||||
と <<_hdata_update,hdata_update>> を参照)
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
|
|
Loading…
Reference in New Issue