2013-11-04 21:41:34 +01:00
= Guida per l'Utente di WeeChat
2014-01-23 18:38:53 +01:00
:author: Sébastien Helleu
:email: flashcode@flashtux.org
:lang: it
:toc:
:toclevels: 4
2009-12-04 12:11:12 +01:00
Questo manuale documenta il client di chat WeeChat, ed è parte
del programma stesso.
È possibile trovare l'ultima versione di questo documento qui:
2013-05-23 15:21:41 +02:00
http://weechat.org/doc
2009-12-04 12:11:12 +01:00
[[introduction]]
2013-11-04 21:41:34 +01:00
== Introduzione
2009-12-04 12:11:12 +01:00
WeeChat (Wee Enhanced Environment for Chat) è un client di chat
2009-12-17 08:32:04 +01:00
libero, veloce e leggero, realizzato per diversi sistemi operativi.
2009-12-04 12:11:12 +01:00
[[features]]
2013-11-04 21:41:34 +01:00
=== Caratteristiche
2009-12-04 12:11:12 +01:00
2011-07-20 10:38:39 +02:00
Le principali caratteristiche:
2009-12-04 12:11:12 +01:00
2013-10-23 14:41:28 +02:00
// TRANSLATION MISSING
* multi-protocollo: IRC and Jabber (with script jabber.py or bitlbee/minbif)
2009-12-04 12:11:12 +01:00
* connessione a server multipli (con SSL, IPv6, proxy)
* piccolo, veloce e leggero
* personalizzabile ed estensibile con plugin e script
2013-02-10 15:50:30 +01:00
* conforme alle RFC di IRC http://tools.ietf.org/html/rfc1459[1459],
http://tools.ietf.org/html/rfc2810[2810],
http://tools.ietf.org/html/rfc2811[2811],
http://tools.ietf.org/html/rfc2812[2812] e
http://tools.ietf.org/html/rfc2813[2813]
2009-12-04 12:11:12 +01:00
* multi-piattaforma (GNU/Linux, *BSD, MacOS X, Windows ed altre)
* 100% GPL, software libero
2013-05-23 15:21:41 +02:00
La home page di WeeChat si trova qui: http://weechat.org/
2009-12-04 12:11:12 +01:00
2014-01-29 22:37:33 +01:00
[[prerequisites]]
2013-11-04 21:41:34 +01:00
=== Requisiti
2009-12-04 12:11:12 +01:00
Per poter installare WeeChat, è necessario:
* un sistema GNU/Linux in esecuzione (con gli strumenti di
compilazione per i sorgenti), oppure OS compatibile
2012-07-30 16:50:15 +02:00
* privilegi di 'root' (per installare WeeChat in una directory di
2009-12-04 12:11:12 +01:00
sistema)
* librerie ncurses
[[install]]
2013-11-04 21:41:34 +01:00
== Installazione
2009-12-04 12:11:12 +01:00
[[binary_packages]]
2013-11-04 21:41:34 +01:00
=== Pacchetti binari
2009-12-04 12:11:12 +01:00
I pacchetti binari sono disponibili per molte distribuzioni, incluse:
2011-07-20 10:38:39 +02:00
* Debian (o qualunque distribuzione compatibile):
2010-02-20 12:17:30 +01:00
`apt-get install weechat-curses`
2011-07-20 10:38:39 +02:00
* Mandriva/RedHat (o qualunque distribuzione compatibile con RPM):
2012-07-30 16:50:15 +02:00
`rpm -i /path/per/weechat-x.y.z-1.i386.rpm`
2009-12-04 12:11:12 +01:00
* Gentoo: `emerge weechat`
2010-02-20 12:17:30 +01:00
* Arch Linux: `pacman -S weechat`
* Fedora Core: `yum install weechat`
* Sourcemage: `cast weechat`
2009-12-04 12:11:12 +01:00
Potrebbero risultare utili alcuni pacchetti addizionali, come
weechat-plugins.
Per altre distribuzioni, consultare il manuale per le istruzioni di
installazione.
[[source_package]]
2013-11-04 21:41:34 +01:00
=== Sorgenti
2009-12-04 12:11:12 +01:00
WeeChat può essere compilato con cmake oppure autotools
(tuttavia si raccomanda cmake).
2010-02-19 17:38:06 +01:00
[[dependencies]]
2013-11-04 21:41:34 +01:00
==== Dipendenze
2010-02-19 17:38:06 +01:00
2010-02-22 09:39:58 +01:00
La seguente tabella mostra l'elenco di pacchetti richiesti o opzionali per
compilare WeeChat.
2010-02-19 17:38:06 +01:00
2011-10-26 19:25:51 +02:00
[width="100%",cols="5,^3,^3,13",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-06-07 21:01:48 +02:00
| Pacchetto ^(1)^ | Versione | Richiesto | Caratteristica
2013-08-17 16:38:28 +02:00
| cmake | | *sì* | Compilazione (ancora possibile con autotools, ma si raccomanda cmake)
| libncursesw5-dev ^(2)^ | | *sì* | Interfaccia ncurses
| libcurl4-gnutls-dev | | *sì* | Trasferimento URL
2012-08-14 18:29:32 +02:00
// TRANSLATION MISSING
2013-08-17 16:38:28 +02:00
| zlib1g-dev | | *sì* | Compression of packets in relay plugin (weechat protocol), script plugin
2012-08-14 18:29:32 +02:00
// TRANSLATION MISSING
2013-08-17 16:38:28 +02:00
| libgcrypt11-dev | | *sì* | Secured data, IRC SASL authentication (DH-BLOWFISH/DH-AES), script plugin
2012-08-04 12:39:39 +02:00
// TRANSLATION MISSING
2013-08-17 16:38:28 +02:00
| libgnutls-dev | ≥ 2.2.0 | | Connessione SSL al server IRC, support of SSL in relay plugin
| gettext | | | Internazionalizzazione (traduzione dei messaggi; la lingua base è l'inglese)
| ca-certificates | | | Certificati per le connessioni SSL
| libaspell-dev o libenchant-dev | | | Plugin aspell
| python-dev | ≥ 2.5 ^(3)^ | | Plugin python
| libperl-dev | | | Plugin perl
| ruby1.9.1-dev | ≥ 1.8 | | Plugin ruby
| liblua5.1-0-dev | | | Plugin lua
| tcl-dev | ≥ 8.5 | | Plugin tcl
| guile-2.0-dev | ≥ 2.0 | | Plugin guile (scheme)
2013-07-31 13:28:59 +02:00
// TRANSLATION MISSING
2013-08-17 16:38:28 +02:00
| asciidoc | ≥ 8.5.0 | | Build man page and documentation
| source-highlight | | | Evidenziazione della sintassi per i sorgenti nella documentazione
2013-06-28 20:08:16 +02:00
// TRANSLATION MISSING
2013-10-08 17:04:58 +02:00
| xsltproc,
docbook-xml, docbook-xsl | | | Build of man page
2013-11-04 21:41:34 +01:00
|===
2010-02-19 17:38:06 +01:00
[NOTE]
2010-02-22 09:39:58 +01:00
^(1)^ Il nome viene dalla distribuzione Debian GNU/Linux, nomi e versioni dei pacchetti
potrebbero essere differenti in versioni e distribuzioni differenti. +
^(2)^ WeeChat può essere compilato con libncurses5-dev, ma *NON* è raccomandato
2012-01-22 21:11:56 +01:00
(potrebbero verificarsi bug di visualizzazione). +
2012-05-18 15:33:19 +02:00
^(3)^ La versione raccomandata di Python è la 2.7 (tutti gli script funzionano
correttamente con la versione 2.7, ma non con le versioni ≤ 2.6 o ≥ 3.0).
2010-02-19 17:38:06 +01:00
2010-01-22 18:24:07 +01:00
[[compile_with_cmake]]
2013-11-04 21:41:34 +01:00
==== Compilazione con cmake
2009-12-04 12:11:12 +01:00
2012-07-30 16:50:15 +02:00
* Installazione nelle directory di sistema (richiede privilegi di 'root'):
2009-12-04 12:11:12 +01:00
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
$ mkdir build
$ cd build
$ cmake ..
$ make
% make install (come root)
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
2012-07-30 16:50:15 +02:00
* Installazione in una directory personalizzata:
2009-12-04 12:11:12 +01:00
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
$ mkdir build
$ cd build
2012-07-30 16:50:15 +02:00
$ cmake .. -DPREFIX=/path/della/directory
2009-12-04 12:11:12 +01:00
$ make
$ make install
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
2013-06-08 15:54:06 +02:00
// TRANSLATION MISSING
Options can be used for cmake, with format: "-DOPTION=VALUE".
// TRANSLATION MISSING
List of commonly used options:
// TRANSLATION MISSING
2013-07-20 17:29:19 +02:00
[width="100%",cols="2m,2,5m,12",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-06-08 15:54:06 +02:00
| Option | Values | Default value | Description
| CMAKE_BUILD_TYPE | `Debug`, `Release`, `RelWithDebInfo`, `MinSizeRel` | |
The type of build: `Debug` (or `RelWithDebInfo`) is recommended if you are
running development version of WeeChat.
| PREFIX | directory | /usr/local |
The directory where WeeChat will be installed.
| WEECHAT_HOME | directory | ~/.weechat |
The default home directory when running WeeChat.
2013-07-20 17:29:19 +02:00
| CA_FILE | file | /etc/ssl/certs/ca-certificates.crt |
File containing the certificate authorities.
This is the default value of option
<<option_weechat.network.gnutls_ca_file,weechat.network.gnutls_ca_file>>.
2013-06-08 15:54:06 +02:00
| ENABLE_ALIAS | `ON`, `OFF` | ON |
Compile <<alias_plugin,Alias plugin>>.
| ENABLE_ASPELL | `ON`, `OFF` | ON |
Compile <<aspell_plugin,Aspell plugin>>.
| ENABLE_CHARSET | `ON`, `OFF` | ON |
Compile <<charset_plugin,Charset plugin>>.
2013-07-31 18:26:37 +02:00
| ENABLE_MAN | `ON`, `OFF` | OFF |
2013-07-31 13:28:59 +02:00
Compile man page.
2013-06-29 09:51:15 +02:00
| ENABLE_DOC | `ON`, `OFF` | OFF |
Compile documentation (it takes a long time, recommended only if you build
a binary package embedding documentation or if you can't browse documentation
online).
2013-06-08 15:54:06 +02:00
| ENABLE_ENCHANT | `ON`, `OFF` | OFF |
Compile <<aspell_plugin,Aspell plugin>> with Enchant.
| ENABLE_FIFO | `ON`, `OFF` | ON |
Compile <<fifo_plugin,Fifo plugin>>.
| ENABLE_GNUTLS | `ON`, `OFF` | ON |
Enable Gnutls (for SSL).
| ENABLE_GUILE | `ON`, `OFF` | ON |
Compile <<scripts_plugins,Guile plugin>> (Scheme).
| ENABLE_IRC | `ON`, `OFF` | ON |
Compile <<irc_plugin,IRC plugin>>.
| ENABLE_LARGEFILE | `ON`, `OFF` | ON |
Support of large files.
| ENABLE_LOGGER | `ON`, `OFF` | ON |
Compile <<logger_plugin,Logger plugin>>.
| ENABLE_LUA | `ON`, `OFF` | ON |
Compile <<scripts_plugins,Lua plugin>>.
| ENABLE_NCURSES | `ON`, `OFF` | ON |
Compile Ncurses interface.
| ENABLE_NLS | `ON`, `OFF` | ON |
Enable NLS (translations).
| ENABLE_PERL | `ON`, `OFF` | ON |
Compile <<scripts_plugins,Perl plugin>>.
| ENABLE_PYTHON | `ON`, `OFF` | ON |
Compile <<scripts_plugins,Python plugin>>.
| ENABLE_PYTHON3 | `ON`, `OFF` | OFF |
Compile <<scripts_plugins,Python plugin>> using Python 3 (*NOT* recommended
because many scripts are not compatible with Python 3).
| ENABLE_RELAY | `ON`, `OFF` | ON |
Compile <<relay_plugin,Relay plugin>>.
| ENABLE_RMODIFIER | `ON`, `OFF` | ON |
Compile <<rmodifier_plugin,Rmodifier plugin>>.
| ENABLE_RUBY | `ON`, `OFF` | ON |
Compile <<scripts_plugins,Ruby plugin>>.
| ENABLE_SCRIPT | `ON`, `OFF` | ON |
Compile <<scripts_plugins,Script plugin>>.
| ENABLE_SCRIPTS | `ON`, `OFF` | ON |
Compile <<scripts_plugins,script plugins>> (Python, Perl, Ruby, Lua, Tcl,
Guile).
| ENABLE_TCL | `ON`, `OFF` | ON |
Compile <<scripts_plugins,Tcl plugin>>.
| ENABLE_XFER | `ON`, `OFF` | ON |
Compile <<xfer_plugin,Xfer plugin>>.
2013-11-04 21:41:34 +01:00
|===
2013-06-08 15:54:06 +02:00
The other options can be displayed with this command:
2013-11-04 21:41:34 +01:00
----
2013-06-08 15:54:06 +02:00
$ cmake -LA
2013-11-04 21:41:34 +01:00
----
2013-06-08 15:54:06 +02:00
Or with Curses interface:
2013-11-04 21:41:34 +01:00
----
2013-06-08 15:54:06 +02:00
$ ccmake ..
2013-11-04 21:41:34 +01:00
----
2013-06-08 15:54:06 +02:00
2010-01-22 18:24:07 +01:00
[[compile_with_autotools]]
2013-11-04 21:41:34 +01:00
==== Compilazione con autotools
2009-12-04 12:11:12 +01:00
2012-12-14 20:20:09 +01:00
// TRANSLATION MISSING
[WARNING]
Only cmake is officially supported to build WeeChat. You should use autotools
only if you are not able to use cmake. +
Build with autotools requires more dependencies and is slower than with cmake.
2012-07-30 16:50:15 +02:00
* Installazione nelle directory di sistema (richiede privilegi di 'root'):
2009-12-04 12:11:12 +01:00
2013-11-04 21:41:34 +01:00
----
2012-12-14 20:20:09 +01:00
$ ./autogen.sh
2013-10-12 15:58:56 +02:00
$ mkdir build
$ cd build
$ ../configure
2009-12-04 12:11:12 +01:00
$ make
% make install (come root)
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
2012-07-30 16:50:15 +02:00
* Installazione in una directory personalizzata:
2009-12-04 12:11:12 +01:00
2013-11-04 21:41:34 +01:00
----
2012-12-14 20:20:09 +01:00
$ ./autogen.sh
2013-10-12 15:58:56 +02:00
$ mkdir build
$ cd build
$ ../configure --prefix=/path/to/directory
2009-12-04 12:11:12 +01:00
$ make
$ make install
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
2013-06-08 15:54:06 +02:00
// TRANSLATION MISSING
Options can be used for 'configure' script, they can be displayed with this
command:
2013-11-04 21:41:34 +01:00
----
2013-06-08 15:54:06 +02:00
$ ./configure --help
2013-11-04 21:41:34 +01:00
----
2013-06-08 15:54:06 +02:00
2009-12-04 12:11:12 +01:00
[[git_sources]]
2013-11-04 21:41:34 +01:00
=== Sorgenti git
2009-12-04 12:11:12 +01:00
2012-12-14 20:20:09 +01:00
Attenzione: i sorgenti git sono per gli utenti avanzati: potrebbero non
2009-12-04 12:11:12 +01:00
compilare o essere instabili. Siete avvisati!
2012-12-14 20:20:09 +01:00
Per ottenere i sorgenti git, dare il comando:
2009-12-04 12:11:12 +01:00
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
$ git clone git://git.sv.gnu.org/weechat.git
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
2010-03-13 14:22:24 +01:00
Poi seguire le istruzioni per i sorgenti (consultare
<<source_package,sorgenti>>).
2010-03-13 20:02:29 +01:00
[[report_crashes]]
2013-11-04 21:41:34 +01:00
=== Segnalare gli errori
2010-03-13 14:22:24 +01:00
2011-07-20 10:38:39 +02:00
Nel caso in cui si verifichino errori, o si desideri segnalare qualsiasi errore
futuro di WeeChat, è necessario:
2010-03-13 14:22:24 +01:00
2010-03-19 23:33:14 +01:00
* compilarlo con informazioni di debug (o installare il pacchetto binario con
2010-03-14 11:33:03 +01:00
le informazioni di debug)
* abilitare i file 'core' sul proprio sistema
* installare gdb
2010-03-13 14:22:24 +01:00
[[debug_info]]
2013-11-04 21:41:34 +01:00
==== Informazioni di debug
2010-03-13 14:22:24 +01:00
2010-03-14 11:33:03 +01:00
Se si compila con cmake:
2010-03-13 14:22:24 +01:00
2013-11-04 21:41:34 +01:00
----
2010-03-13 14:22:24 +01:00
$ cmake .. -DCMAKE_BUILD_TYPE=Debug
2013-11-04 21:41:34 +01:00
----
2010-03-13 14:22:24 +01:00
2011-07-20 10:38:39 +02:00
Se compilato con gli autotools, il debug è attivato automaticamente (`--with-debug=1`).
2010-03-13 14:22:24 +01:00
2010-03-14 11:33:03 +01:00
Se è stato installato il pacchetto binario, installare il pacchetto 'weechat-gdb'.
2010-03-13 14:22:24 +01:00
[[core_files]]
2013-11-04 21:41:34 +01:00
==== File core
2010-03-13 14:22:24 +01:00
2012-08-01 17:31:48 +02:00
// TRANSLATION MISSING
To enable 'core' files, you can use option
<<option_weechat.startup.sys_rlimit,weechat.startup.sys_rlimit>>:
2013-11-04 21:41:34 +01:00
----
2012-08-01 17:31:48 +02:00
/set weechat.startup.sys_rlimit "core:-1"
2013-11-04 21:41:34 +01:00
----
2012-08-01 17:31:48 +02:00
// TRANSLATION MISSING
For WeeChat ≤ 0.3.8 or if you want to enable core files even before WeeChat
starts, you can use `ulimit` command.
2010-03-13 14:22:24 +01:00
2010-03-14 11:33:03 +01:00
Ad esempio su Linux con la shell 'bash', aggiungere questa riga al proprio
`~/.bashrc`:
2010-03-13 14:22:24 +01:00
2013-11-04 21:41:34 +01:00
----
2010-03-13 14:22:24 +01:00
ulimit -c unlimited
2013-11-04 21:41:34 +01:00
----
2010-03-13 14:22:24 +01:00
2010-03-14 11:33:03 +01:00
Oppure impostare una dimensione massima:
2010-03-13 14:22:24 +01:00
2013-11-04 21:41:34 +01:00
----
2010-03-13 14:22:24 +01:00
ulimit -c 200000
2013-11-04 21:41:34 +01:00
----
2010-03-13 14:22:24 +01:00
[[gdb_backtrace]]
2013-11-04 21:41:34 +01:00
==== Ottenere un backtrace con gdb
2010-03-13 14:22:24 +01:00
2010-03-14 11:33:03 +01:00
In caso di errore di WeeChat, il sistema creerà un file 'core' oppure 'core.12345'
('12345' è l'id del processo).
2012-07-30 16:50:15 +02:00
Questo file viene creato nella directory in cui è in esecuzione WeeChat (e
*non* la directory dove WeeChat è installato!).
2010-03-13 14:22:24 +01:00
2013-08-02 08:54:16 +02:00
Ad esempio, se 'weechat' è installato in '/usr/bin/' ed il file 'core'
2010-03-14 11:33:03 +01:00
si trova in '/home/xxx/', allora eseguire gdb con questo comando:
2010-03-13 14:22:24 +01:00
2013-11-04 21:41:34 +01:00
----
2013-08-02 08:54:16 +02:00
gdb /usr/bin/weechat /home/xxx/core
2013-11-04 21:41:34 +01:00
----
2010-03-13 14:22:24 +01:00
2010-06-11 13:05:28 +02:00
[NOTE]
2010-06-14 10:23:59 +02:00
Se è stato installato il pacchetto binario 'weechat-dbg' (ad esempio in Debian), è
2012-07-30 16:50:15 +02:00
possibile usare questo path per il binario di WeeChat:
2013-08-02 08:54:16 +02:00
'/usr/lib/debug/usr/bin/weechat'
2010-06-11 13:05:28 +02:00
2010-05-01 11:48:02 +02:00
All'interno di gdb, usare il comando `bt full` per visualizzare
2010-03-14 11:33:03 +01:00
il backtrace. Verrà mostrato qualcosa di simile a questo:
2010-03-13 14:22:24 +01:00
2013-11-04 21:41:34 +01:00
----
2012-02-24 13:51:29 +01:00
(gdb) set logging file /tmp/crash.txt
(gdb) set logging on
Copying output to /tmp/crash.txt.
2010-05-01 11:48:02 +02:00
(gdb) bt full
#0 0x00007f9dfb04a465 in raise () from /lib/libc.so.6
#1 0x00007f9dfb04b8e6 in abort () from /lib/libc.so.6
2013-10-20 11:39:11 +02:00
#2 0x0000000000437f66 in weechat_shutdown (return_code=1, crash=1)
at /some_path/src/core/weechat.c:351
2010-05-01 11:48:02 +02:00
#3 <signal handler called>
2013-10-20 11:39:11 +02:00
#4 0x000000000044cb24 in hook_process_timer_cb (arg_hook_process=0x254eb90,
remaining_calls=<value optimized out>) at /some_path/src/core/wee-hook.c:1364
2010-05-01 11:48:02 +02:00
hook_process = 0x254eb90
status = <value optimized out>
2013-10-20 11:39:11 +02:00
#5 0x000000000044cc7d in hook_timer_exec ()
at /some_path/src/core/wee-hook.c:1025
2010-05-01 11:48:02 +02:00
tv_time = {tv_sec = 1272693881, tv_usec = 212665}
ptr_hook = 0x2811f40
next_hook = 0x0
2013-10-20 11:39:11 +02:00
#6 0x000000000041b5b0 in gui_main_loop ()
at /some_path/src/gui/curses/gui-curses-main.c:319
2010-05-01 11:48:02 +02:00
hook_fd_keyboard = 0x173b600
tv_timeout = {tv_sec = 0, tv_usec = 0}
read_fds = {fds_bits = {0 <repeats 16 times>}}
write_fds = {fds_bits = {0 <repeats 16 times>}}
except_fds = {fds_bits = {0 <repeats 16 times>}}
max_fd = <value optimized out>
2013-11-04 21:41:34 +01:00
----
2010-03-13 14:22:24 +01:00
2010-03-14 11:33:03 +01:00
Bisogna riportare l'errore agli sviluppatori, e specificare quale azione ha causato
l'errore.
2010-03-13 14:22:24 +01:00
2010-03-14 11:33:03 +01:00
Grazie per il vostro aiuto!
2009-12-04 12:11:12 +01:00
2011-08-28 15:39:41 +02:00
[[debug_running_weechat]]
2013-11-04 21:41:34 +01:00
==== Debug di WeeChat durante l'esecuzione
2011-08-28 15:39:41 +02:00
2011-09-17 08:50:58 +02:00
Per eseguire il debug di un'istanza di WeeChat in esecuzione (ad esempio se
WeeChat sembra sia bloccato), è possibile usare gdb con l'id del processo
2013-08-02 08:54:16 +02:00
(sostituire '12345' con il PID del processo weechat):
2011-08-28 15:39:41 +02:00
2013-11-04 21:41:34 +01:00
----
2013-08-02 08:54:16 +02:00
gdb /usr/bin/weechat 12345
2013-11-04 21:41:34 +01:00
----
2011-08-28 15:39:41 +02:00
2011-09-17 08:50:58 +02:00
Poi, come per un crash, usare il comando `bt full`:
2011-08-28 15:39:41 +02:00
2013-11-04 21:41:34 +01:00
----
2011-08-28 15:39:41 +02:00
(gdb) bt full
2013-11-04 21:41:34 +01:00
----
2011-08-28 15:39:41 +02:00
2009-12-04 12:11:12 +01:00
[[usage]]
2013-11-04 21:41:34 +01:00
== Utilizzo
2009-12-04 12:11:12 +01:00
[[running_weechat]]
2013-11-04 21:41:34 +01:00
=== Esecuzione di WeeChat
2009-12-04 12:11:12 +01:00
Argomenti a riga di comando:
2013-06-28 20:08:16 +02:00
include::cmdline_options.it.txt[]
2009-12-04 12:11:12 +01:00
Per avviare WeeChat, digitare questo comando:
2013-11-04 21:41:34 +01:00
----
2013-08-02 08:54:16 +02:00
$ weechat
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
Alla prima esecuzione di WeeChat, viene creato un file di configurazione
2012-07-30 16:50:15 +02:00
predefinito. Il file di configurazione viene creato nella directory:
2009-12-04 12:11:12 +01:00
'~/.weechat/weechat.conf'.
È possibile modificare questo file per configurare WeeChat a seconda delle
proprie esigenze, oppure impostando i parametri con il comando `/set`
2010-03-13 14:22:24 +01:00
all'interno di WeeChat (consultare <<weechat_commands,comandi di WeeChat>>).
2009-12-04 12:11:12 +01:00
[[screen_layout]]
2013-11-04 21:41:34 +01:00
=== Layout dello schermo
2009-12-04 12:11:12 +01:00
Esempio di terminale con WeeChat:
2013-10-20 11:39:11 +02:00
// TRANSLATION MISSING
2013-11-04 21:41:34 +01:00
....
2013-10-20 11:39:11 +02:00
▼ bar "title"
┌───────────────────────────────────────────────────────────────────────────┐
│Welcome to #test, this is a test channel │
│12:52:27 --> | Flashy (flashcode@weechat.org) has joined #test │@Flashy│
│12:52:27 -- | Nicks #test: [@Flashy @joe +weebot] │@joe │
│12:52:27 -- | Channel #test: 4 nicks (2 ops, 1 voice, 1 normal) │+weebot│
│12:52:27 -- | Channel created on Tue Jan 27 06:30:17 2009 │peter │
│12:54:15 peter | hey! │ │
│12:55:01 @joe | hello │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
2013-10-23 19:37:51 +02:00
│[12:55] [6] [irc/freenode] 3:#test(+n){4}* [H: 4:#abc(2,5), 6] │
2013-10-20 11:39:11 +02:00
│[@Flashy(i)] hi peter!█ │
└───────────────────────────────────────────────────────────────────────────┘
▲ bars "status" and "input" bar "nicklist" ▲
2013-11-04 21:41:34 +01:00
....
2009-12-04 12:11:12 +01:00
Lo schermo è composto dalle seguenti aree:
* area di chat (centro dello schermo) con le righe di chat, e per ogni riga:
** ora
** prefisso (prima di "|")
** messaggio (dopo di "|")
* barre che circondano l'area di chat, quelle predefinite sono:
** barra 'titolo', in alto rispetto all'area di chat
** barra 'stato', in basso rispetto all'area di chat
** barra 'input', in basso rispetto alla barra di stato
** barra 'nicklist', sulla destra
La barra 'stato' ha i seguenti elementi predefiniti:
2013-10-20 11:39:11 +02:00
[width="100%",cols="^3,^3,10",options="header"]
2013-11-04 21:41:34 +01:00
|===
2012-07-07 12:44:55 +02:00
| Elemento | Esempio | Descrizione
2013-10-20 11:39:11 +02:00
| time | `[12:55]` | Ora
| buffer_count | `[6]` | Numero di buffer aperti
| buffer_plugin | `[irc/freenode]` | Plugin del buffer attivo (il plugin irc può aggiungere il nome del server irc usato dal buffer)
| buffer_number | `3` | Numero del buffer corrente
| buffer_name | `#test` | Nome del buffer attivo
| buffer_modes | `+n` | Modalità canale IRC
| buffer_nicklist_count | `{4}` | Numero di nick nella lista nick
2013-11-09 13:31:41 +01:00
// TRANSLATION MISSING
| buffer_zoom | ! | `!` means the merged buffer is zoomed (only this one is displayed), empty value means all merged buffers are displayed
2013-10-20 11:39:11 +02:00
| buffer_filter | `*` | Indicatore filtraggio: `*` significa che alcune righe sono filtrate (nascoste), valori vuoti indicano che tutte le righe sono visualizzate
| lag | `[Ritardo: 2.5]` | Indicatore ritardo, in secondi (nascosto se il ritardo è basso)
| hotlist | `[H: 4:#abc(2,5), 6]` | Elenco dei buffer con attività (messaggi non letti) (nell'esempio, 2 notifiche e 5 messaggi non letti su #abc, un messaggio non letto sul buffer #6)
| completion | `abc(2) def(5)` | Elenco di parole per il completamento, con il numero di completamenti possibili per ogni parola
| scroll | `-ANCORA(50)-` | Indicatore di scorrimento, con il numero di righe sotto l'ultima riga visualizzata
2013-11-04 21:41:34 +01:00
|===
2009-12-04 12:11:12 +01:00
La barra 'input' ha i seguenti elementi predefiniti:
2013-10-20 11:39:11 +02:00
[width="100%",cols="^3,^6,8",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-10-20 11:39:11 +02:00
| Elemento | Esempio | Descrizione
| input_paste | `[Incollare 7 righe ? [ctrl-Y] Sì [ctrl-N] No]` | Chiede all'utente se incollare le righe
2013-10-13 09:05:39 +02:00
// TRANSLATION MISSING
2013-10-20 11:39:11 +02:00
| input_prompt | `[@Flashy(i)]` | Prompt per l'input, for irc: nick and modes (mode "+i" means invisible on freenode)
| away | `(assente)` | Indicatore di assenza
2013-08-17 11:51:50 +02:00
// TRANSLATION MISSING
2013-10-20 11:39:11 +02:00
| input_search | `[Search (~ str,msg)]` | Search indicator ("`~`": case insensitive, "`==`": case sensitive, "`str`": search string, "`regex`": search regular expression, "`msg`": search in messages, "`pre`": search in prefixes, "`pre\|msg`": search in prefixes and messages)
| input_text | `ciao peter!` | Testo in input
2013-11-04 21:41:34 +01:00
|===
2009-12-04 12:11:12 +01:00
2012-06-10 17:15:28 +02:00
[[buffers_and_windows]]
2013-11-04 21:41:34 +01:00
=== Buffer e finestre
2012-06-10 17:15:28 +02:00
Un 'buffer' è composto da un numero, un nome, delle righe visualizzate (e
2012-07-30 16:50:15 +02:00
altri dati).
2012-06-10 17:15:28 +02:00
2012-07-30 16:50:15 +02:00
Esempi di buffer:
2012-06-10 17:15:28 +02:00
2012-07-30 16:50:15 +02:00
* buffer core (creato by WeeChat all'avvio, non può essere chiuso)
* server irc (mostra i messaggi dal server)
* canale irc
* query irc
2012-06-10 17:15:28 +02:00
2012-07-30 16:50:15 +02:00
Una 'finestra' (o window) è un'area dello schermo in cui viene visualizzato
2012-06-10 17:15:28 +02:00
un buffer. È possibile dividere lo schermo in più finestre.
Ogni finestra visualizza un buffer. Un buffer può essere nascosto (non visualizzato
da una finestra) o visualizzato da una o più finestre.
2012-07-30 16:50:15 +02:00
Esempio di split orizzontale (`/window splith`):
2012-06-10 17:15:28 +02:00
2013-10-20 11:39:11 +02:00
// TRANSLATION MISSING
2013-11-04 21:41:34 +01:00
....
2013-10-20 11:39:11 +02:00
▼ window #2 (buffer #4)
┌───────────────────────────────────────────────────────────────────────────┐
│Welcome to #abc │
│12:55:12 Max | hi │@Flashy│
│12:55:20 @Flashy | hi Max! │Max │
│12:55:32 Max | how are you? │ │
│ │ │
│ │ │
│ │ │
│ │ │
│ │ │
│[12:55] [6] [irc/freenode] 4:#abc(+n){2} │
│[@Flashy] │
│───────────────────────────────────────────────────────────────────────────│
│Welcome to #test │
│12:54:15 peter | hey! │@Flashy│
│12:55:01 @joe | hello │@joe │
│ │+weebot│
│ │peter │
│ │ │
│ │ │
│ │ │
│ │ │
│[12:55] [6] [irc/freenode] 3:#test(+n){4} │
│[@Flashy] hi peter!█ │
└───────────────────────────────────────────────────────────────────────────┘
▲ window #1 (buffer #3)
2013-11-04 21:41:34 +01:00
....
2012-06-10 17:15:28 +02:00
2012-07-30 16:50:15 +02:00
Esempio di split verticale (`/window splitv`):
2012-06-10 17:15:28 +02:00
2013-10-20 11:39:11 +02:00
// TRANSLATION MISSING
2013-11-04 21:41:34 +01:00
....
2013-10-20 11:39:11 +02:00
┌───────────────────────────────────────────────────────────────────────────┐
│Welcome to #test │Welcome to #abc │
│12:54:15 peter | hey! │@Flashy│12:55:12 Max | hi │@Flashy│
│12:55:01 @joe | hello │@joe │12:55:20 @Flashy | hi Max! │Max │
│ │+weebot│ │ │
│ │peter │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│[12:55] [irc/oftc] 3:#test(+n){4} │[12:55] [irc/oftc] 4:#abc(+n){2} │
│[@Flashy] hi peter!█ │[@Flashy] │
└───────────────────────────────────────────────────────────────────────────┘
▲ window #1 (buffer #3) ▲ window #2 (buffer #4)
2013-11-04 21:41:34 +01:00
....
2012-06-10 17:15:28 +02:00
2012-07-30 16:50:15 +02:00
Esempio di split orizzontale + verticale:
2012-06-10 17:15:28 +02:00
2013-10-20 11:39:11 +02:00
// TRANSLATION MISSING
2013-11-04 21:41:34 +01:00
....
2013-10-20 11:39:11 +02:00
▼ window #3 (buffer #5)
┌───────────────────────────────────────────────────────────────────────────┐
│Welcome to #test │Welcome to #def │
│12:54:15 peter | hey! │@Flashy│12:55:42 @Flashy | hi │@Flashy│
│12:55:01 @joe | hello │@joe │12:55:56 alex | hi Flashy │alex │
│ │+weebot│ │ │
│ │peter │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │[12:55] [irc/oftc] 5:#def(+n){2} │
│ │ │[@Flashy] │
│ │ │─────────────────────────────────────│
│ │ │Welcome to #abc │
│ │ │12:55:12 Max | hi │@Flashy│
│ │ │12:55:20 @Flashy | hi Max! │Max │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│[12:55] [irc/oftc] 3:#test(+n){4} │[12:55] [irc/oftc] 4:#abc(+n){2} │
│[@Flashy] hi peter!█ │[@Flashy] │
└───────────────────────────────────────────────────────────────────────────┘
▲ window #1 (buffer #3) ▲ window #2 (buffer #4)
2013-11-04 21:41:34 +01:00
....
2012-06-10 17:15:28 +02:00
2012-11-02 09:37:15 +01:00
// TRANSLATION MISSING
[[bars]]
2013-11-04 21:41:34 +01:00
=== Bars
2012-11-02 09:37:15 +01:00
A 'bar' is an area beside the chat that can contain any type of text.
The bar options can be set with options `weechat.bar.name.option` where `name`
is the name of the bar and `option` the option for this bar.
List of bar options:
[width="100%",cols="2m,2,10",options="header"]
2013-11-04 21:41:34 +01:00
|===
2012-11-02 09:37:15 +01:00
| Option | Values | Description
| type | `root`, `window` |
A bar with type `root` is displayed exactly one time on screen, outside all
windows. There is no root bar by default, but an example is the bar 'buffers'
created by script 'buffers.pl' (sidebar with list of buffers). +
A bar with type `window` is displayed in each window, for example if you
split one time the screen (with `/window splith` or `/window splitv`), you
will have one bar in each window. The four default bars ('title', 'status',
'input', 'nicklist') have type `window`.
| position | `top`, `bottom`, `left`, `right` |
Position of the bar: above/below chat, on the left/right.
| priority | integer ≥ 0 |
Priority for display of bar: this is used for ordering the bars on screen when
many bars have same type and position. +
The bars are displayed from the edge of the screen to the center. A higher
priority will display bar at the beginning, so closer to the edge. +
Example: 'input' bar has priority 1000, so it is displayed before the 'status'
bar, which has priority 500.
| size | integer ≥ 0 |
The size of the bar: number of columns for position left/right, number
2013-01-07 10:31:32 +01:00
of lines for position top/bottom. A size of `0` means automatic, so the size
2012-11-02 09:37:15 +01:00
will be computed according to content displayed in bar.
| size_max | integer ≥ 0 |
The maximum size for a bar, `0` = no limit (this option is used only if
`size` = `0`).
| color_bg | color |
The default background color for the bar.
| color_fg | color |
The default text color for the bar.
| color_delim | color |
The color for delimiters in bar.
| hidden | `on`, `off` |
When option is `on`, the bar is hidden. +
Note: instead of changing this option, the command `/bar` is preferred, for
example: `/bar toggle nicklist` (see command <<command_weechat_bar,/bar>>).
| separator | `on`, `off` |
When option is `on`, a separator (line) is displayed between this bar and
other bars (or chat).
| items | string |
A list of 'items' (see <<bar_items,items>> for more info).
| filling_left_right | `horizontal`, `vertical`, `columns_horizontal`, `columns_vertical` |
Type of filling for a bar which has position `left` or `right` (see
<<bar_filling,filling>> for more info).
| filling_top_bottom | `horizontal`, `vertical`, `columns_horizontal`, `columns_vertical` |
Type of filling for a bar which has position `top` or `bottom` (see
<<bar_filling,filling>> for more info).
| conditions | string |
The conditions to display the bar (see <<bar_conditions,conditions>> for more
info).
2013-11-04 21:41:34 +01:00
|===
2012-11-02 09:37:15 +01:00
[[bar_items]]
2013-11-04 21:41:34 +01:00
==== Items
2012-11-02 09:37:15 +01:00
The option 'items' is a string with a list of bar items, separated by a comma
(space between items on screen) or "+" (glued items).
The list of bar items is displayed with command `/bar listitems`.
2013-08-19 21:22:10 +02:00
// TRANSLATION MISSING
Before or after item name, you can use chars (that are not alphanumeric, "-" or
"_"). They will be displayed before/after item with the delimiters color
defined in bar (option 'color_delim').
2012-11-02 09:37:15 +01:00
Example of bar with items "[time],buffer_number+:+buffer_plugin+.+buffer_name":
2013-11-04 21:41:34 +01:00
....
2013-10-20 11:39:11 +02:00
┌───────────────────────────────────────────────────────────────────────────┐
│[12:55] 3:irc/freenode.#weechat │
└───────────────────────────────────────────────────────────────────────────┘
2013-11-04 21:41:34 +01:00
....
2012-11-02 09:37:15 +01:00
2013-08-19 21:22:10 +02:00
// TRANSLATION MISSING
A special syntax can be used to force the buffer used when displaying the bar
item: "@buffer:item" (where "buffer" is the full name of buffer and "item" is
the name of a bar item).
// TRANSLATION MISSING
This is useful in root bars, to display item for a specific buffer which is
not displayed in the current window (or even not displayed at all).
// TRANSLATION MISSING
Example: nicklist of bitlbee in a root bar (if the bar is called
'bitlist' and if bitlbee server is called 'bitlbee'):
2013-11-04 21:41:34 +01:00
----
2013-08-19 21:22:10 +02:00
/set weechat.bar.bitlist.items "@irc.bitlbee.&bitlbee:buffer_nicklist"
2013-11-04 21:41:34 +01:00
----
2013-08-19 21:22:10 +02:00
2012-11-02 09:37:15 +01:00
[[bar_filling]]
2013-11-04 21:41:34 +01:00
==== Filling
2012-11-02 09:37:15 +01:00
There are four types of filling:
* `horizontal`: the items are displayed horizontally, from left to right. If
there are new lines in items, a space is used to separate lines.
* `vertical`: the items are displayed from top to bottom. If there are new
lines in items, a new line is used to separate lines.
* `columns_horizontal`: items are displayed using columns, where text is
aligned on the left. The first item is on top left, the second is on same
line, on the right.
* `columns_vertical`: items are displayed using columns, where text is aligned
on the left. The first item is on top left, the second is one line below.
Default bars 'title', 'status' and 'input' have 'horizontal' filling, and
default bar 'nicklist' has 'vertical' filling.
Some examples of filling for bar 'nicklist':
2013-11-04 21:41:34 +01:00
....
2012-11-02 09:37:15 +01:00
┌──────────────────────────────────────────────────┐
│Welcome to #test, this is a test channel │
│12:54:15 peter | hey! │@carl │
│12:55:01 +Max | hello │@jessika│
│ │@maddy │
│ │%Diego │
│ │%Melody │
│ │+Max │
│ │ celia │
│ │ Eva │
│ │ freddy │
│ │ Harold^│
│ │ henry4 │
│ │ jimmy17│
│ │ jodie ▼│
│[12:55] [6] [irc/freenode] 3:#test(+n){24} │
└──────────────────────────────────────────────────┘
filling_left_right = vertical ▲
┌──────────────────────────────────────────────────┐
│Welcome to #test, this is a test channel │
│12:54:15 peter | hey! │@carl lee │
│12:55:01 +Max | hello │@jessika louise │
│ │@maddy mario │
│ │%Diego mark │
│ │%Melody peter │
│ │+Max Rachel │
│ │ celia richard│
│ │ Eva sheryl │
│ │ freddy Vince │
│ │ Harold^ warren │
│ │ henry4 zack │
│ │ jimmy17 │
│ │ jodie │
│[12:55] [6] [irc/freenode] 3:#test(+n){24} │
└──────────────────────────────────────────────────┘
filling_left_right = columns_vertical ▲
┌───────────────────────────────────────────────────────────────────────┐
│@carl %Diego celia Harold^ jodie mario Rachel Vince │
│@jessika %Melody Eva henry4 lee mark richard warren │
│@maddy +Max freddy jimmy17 louise peter sheryl zack │
│───────────────────────────────────────────────────────────────────────│
│ │
filling_top_bottom = columns_vertical ▲
┌───────────────────────────────────────────────────────────────────────┐
│@carl @jessika @maddy %Diego %Melody +Max celia Eva │
│ freddy Harold^ henry4 jimmy17 jodie lee louise mario │
│ mark peter Rachel richard sheryl Vince warren zack │
│───────────────────────────────────────────────────────────────────────│
│ │
filling_top_bottom = columns_horizontal ▲
2013-11-04 21:41:34 +01:00
....
2012-11-02 09:37:15 +01:00
[[bar_conditions]]
2013-11-04 21:41:34 +01:00
==== Conditions
2012-11-02 09:37:15 +01:00
The option 'conditions' is a string evaluated to know if the bar is displayed
or not in the window (it is used only for bars with type 'window').
The string can be:
* 'active': the window must be active
* 'inactive': the window must be inactive
* 'nicklist': the buffer displayed in window must have a nicklist
* an expression: it is evaluated as boolean (see command
<<command_weechat_eval,/eval>>)
For the expression, following variables are available:
* `${active}`: true if window is active
* `${inactive}`: true if window is inactive
2013-05-09 20:02:55 +02:00
* `${nicklist}`: true if buffer displayed in window has a nicklist
2012-11-02 09:37:15 +01:00
Following pointers are available:
* `${window}`: the window where condition is evaluated
* `${buffer}`: the buffer of window where condition is evaluated
2012-11-04 15:53:02 +01:00
Example to display nicklist bar in all buffers with a nicklist, and only if
2012-11-02 09:37:15 +01:00
width of window is > 100 :
2013-11-04 21:41:34 +01:00
----
2012-11-02 09:37:15 +01:00
/set weechat.bar.nicklist.conditions "${nicklist} && ${window.win_width} > 100"
2013-11-04 21:41:34 +01:00
----
2012-11-02 09:37:15 +01:00
Same condition, but always display nicklist on buffer '&bitlbee' (even if window
is small):
2013-11-04 21:41:34 +01:00
----
2012-11-02 09:37:15 +01:00
/set weechat.bar.nicklist.conditions "${nicklist} && (${window.win_width} > 100 || ${buffer.full_name} == irc.bitlbee.&bitlbee)"
2013-11-04 21:41:34 +01:00
----
2012-11-02 09:37:15 +01:00
2012-06-10 17:15:28 +02:00
[[notify_levels]]
2013-11-04 21:41:34 +01:00
=== Livelli di notifica
2012-06-10 17:15:28 +02:00
2012-07-30 16:50:15 +02:00
Sono possibili quattro livelli per i messaggi mostrati nei buffer, dal più basso
al più alto:
2012-06-10 17:15:28 +02:00
2012-07-30 16:50:15 +02:00
* 'low': messaggio di bassa importanza (ad esempio entrata/uscita/disconnessione
di irc)
* 'message': messaggio da un utente
* 'private': messaggio in un buffer privato
* 'highlight': messaggio con notifica
2012-06-10 17:15:28 +02:00
2012-07-30 16:50:15 +02:00
Ogni buffer ha un livello di notifica, che viene usato per decidere quale
messaggio il buffer andrà ad aggiungere nella hotlist.
2012-06-10 17:15:28 +02:00
2012-07-30 16:50:15 +02:00
Il livello predefinito di notifica può essere impostato usando l'opzione
2012-06-10 17:15:28 +02:00
<<option_weechat.look.buffer_notify_default,weechat.look.buffer_notify_default>>,
2012-07-30 16:50:15 +02:00
il valore predefinito è 'all'.
2012-06-10 17:15:28 +02:00
[width="50%",cols="3m,10",options="header"]
2013-11-04 21:41:34 +01:00
|===
2012-07-30 16:50:15 +02:00
| Livello di notifica | Livello del messaggio aggiunto alla hotlist
| none | (nessuno)
| highlight | 'highlight' + 'private'
| message | 'highlight' + 'private' + 'message'
| all | 'highlight' + 'private' + 'message' + 'low'
2013-11-04 21:41:34 +01:00
|===
2012-06-10 17:15:28 +02:00
2012-07-30 16:50:15 +02:00
Il livello di notifica può essere definito per un set di buffer, ad esempio
tutti i buffer per il server irc "freenode":
2012-06-10 17:15:28 +02:00
2013-11-04 21:41:34 +01:00
----
2012-06-10 17:15:28 +02:00
/set weechat.notify.irc.freenode message
2013-11-04 21:41:34 +01:00
----
2012-06-10 17:15:28 +02:00
2012-07-30 16:50:15 +02:00
Imposta il livello di notifica 'highlight' solo sul canale '#weechat':
2012-06-10 17:15:28 +02:00
2013-11-04 21:41:34 +01:00
----
2012-06-10 17:15:28 +02:00
/set weechat.notify.irc.freenode.#weechat highlight
2013-11-04 21:41:34 +01:00
----
2012-06-10 17:15:28 +02:00
2012-07-30 16:50:15 +02:00
Il livello di notifica per un buffer può essere impostato con il comando `/buffer`:
2012-06-13 22:42:46 +02:00
2013-11-04 21:41:34 +01:00
----
2012-06-13 22:42:46 +02:00
/buffer notify highlight
2013-11-04 21:41:34 +01:00
----
2012-06-13 22:42:46 +02:00
2009-12-04 12:11:12 +01:00
[[key_bindings]]
2013-11-04 21:41:34 +01:00
=== Associazione tasti predefinita
2009-12-04 12:11:12 +01:00
2010-01-22 18:24:07 +01:00
[[key_bindings_command_line]]
2013-11-04 21:41:34 +01:00
==== Tasti per la riga di comando
2009-12-04 12:11:12 +01:00
2013-10-20 11:39:11 +02:00
[width="100%",cols="^.^3,.^10,.^5",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-12-02 19:10:08 +01:00
| Tasti | Descrizione | Comando
| key[←] .2+| Passa al carattere precedente nella riga di comando .2+| `/input move_previous_char`
| key[ctrl-b]
| key[→] .2+| Passa al carattere successivo nella riga di comando .2+| `/input move_next_char`
| key[ctrl-f]
| key[ctrl-←] .2+| Passa alla parola precedente nella riga di comando .2+| `/input move_previous_word`
| key[alt-b]
| key[ctrl-→] .2+| Passa alla parola successiva nella riga di comando .2+| `/input move_next_word`
| key[alt-f]
| key[Home] .2+| Si sposta all'inizio della riga di comando .2+| `/input move_beginning_of_line`
| key[ctrl-a]
| key[End] .2+| Si sposta alla fine della riga di comando .2+| `/input move_end_of_line`
| key[ctrl-e]
| key[ctrl-c,b] | Inserisce il codice per il testo in grassetto | `/input insert \x02`
| key[ctrl-c,c] | Inserisce il codice per il testo colorato | `/input insert \x03`
| key[ctrl-c,i] | Inserisce il codice per il testo in corsivo | `/input insert \x1D`
| key[ctrl-c,o] | Inserisce il codice per il reset dei colori | `/input insert \x0F`
| key[ctrl-c,v] | Inserisce il codice per l'inversione dei colori | `/input insert \x16`
| key[ctrl-c,_] | Inserisce il codice per il testo sottolineato | `/input insert \x1F`
| key[Del] .2+| Elimina il carattere successivo nella riga di comando .2+| `/input delete_next_char`
| key[ctrl-d]
| key[Backsp.] .2+| Elimina il carattere precedente nella riga di comando .2+| `/input delete_previous_char`
| key[ctrl-h]
| key[ctrl-k] | Elimina dal cursore fino alla fine della riga di comando (la stringa eliminata viene copiata negli appunti) | `/input delete_end_of_line`
| key[ctrl-r] | Cerca del testo nella cronologia del buffer (consultare <<key_bindings_search_context,tasti per il contesto search>>) | `/input search_text`
| key[ctrl-t] | Inverti caratteri | `/input transpose_chars`
| key[ctrl-u] | Elimina dal cursore fino all'inizio della riga di comando (la stringa eliminata viene copiata negli appunti) | `/input delete_beginning_of_line`
| key[ctrl-w] | Elimina la parola precedente nella riga di comando (la stringa eliminata viene copiata negli appunti) | `/input delete_previous_word`
| key[ctrl-y] | Incolla il contenuto degli appunti | `/input clipboard_paste`
| key[ctrl-_] | Annulla l'ultima azione sulla riga di comando | `/input undo`
| key[alt-_] | Ripete l'ultima azione sulla riga di comando | `/input redo`
| key[Tab] | Completa comando o nick (key[Tab] di nuovo: trova prossimo completamento) | `/input complete_next`
| key[shift-Tab] | Senza completamento: effettua un completamento parziale, con completamento in sospeso: completa con il completamento precedente | `/input complete_previous`
| key[Invio] .3+| Esegue comando o invia messaggio (in modalità ricerca: ferma ricerca) .3+| `/input return`
| key[ctrl-j]
| key[ctrl-m]
| key[↑] | Chiama comando/messaggio precedente (in modalità ricerca: cerca in alto) | `/input history_previous`
| key[↓] | Chiama comando/messaggio precedente (in modalità ricerca: cerca in basso) | `/input history_next`
| key[ctrl-↑] | Chiama il comando/messaggio precedente nella cronologia globale (identico per tutti i buffer) | `/input history_global_previous`
| key[ctrl-↓] | Chiama il comando/messaggio successivo nella cronologia globale (identico per tutti i buffer) | `/input history_global_next`
| key[alt-d] | Elimina la parola successiva nella riga di comando (la stringa eliminata viene copiata negli appunti) | `/input delete_next_word`
| key[alt-k] | Cattura un tasto ed inserisce il suo codice (e il comando associato se il tasto esiste) nella riga di comando | `/input grab_key_command`
| key[alt-r] | Elimina l'intera riga di comando | `/input delete_line`
| key[alt-s] | Abilita/disabilita aspell | `/mute aspell toggle`
2013-11-04 21:41:34 +01:00
|===
2009-12-04 12:11:12 +01:00
2010-01-22 18:24:07 +01:00
[[key_bindings_buffers_windows]]
2013-11-04 21:41:34 +01:00
==== Tasti per buffer / finestre
2009-12-04 12:11:12 +01:00
2013-10-20 11:39:11 +02:00
[width="100%",cols="^.^3,.^10,.^5",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-12-02 19:10:08 +01:00
| Tasti | Descrizione | Comando
| key[ctrl-l] | Ridisegna l'intera finestra | `/window refresh`
| key[ctrl-s,ctrl-u] | Imposta l'evidenziatore dei messaggi non letti su tutti i buffer | `/input set_unread`
| key[ctrl-x] | Passa al buffer attivo se i buffer sono collegati con lo stesso numero | `/input switch_active_buffer`
2012-08-30 10:46:42 +02:00
// TRANSLATION MISSING
2013-12-02 19:10:08 +01:00
| key[alt-x] | Zoom on merged buffer (key[alt-x] again: display all merged buffers) | `/input zoom_merged_buffer`
| key[PgUp] | Scorre in alto di una pagina nella cronologia del buffer | `/window page_up`
| key[PgDn] | Scorre di una pagina in basso nella cronologia del buffer | `/window page_down`
| key[alt-PgUp] | Scorre di qualche riga in alto nella cronologia del buffer | `/window scroll_up`
| key[alt-PgDn] | Scorre di qualche riga in basso nella cronologia del buffer | `/window scroll_down`
| key[alt-Home] | Scorre in cima al buffer | `/window scroll_top`
| key[alt-End] | Scorre alla fine del del buffer | `/window scroll_bottom`
| key[alt-←] .4+| Passa al buffer precedente .4+| `/buffer -1`
| key[alt-↑]
| key[ctrl-p]
| key[F5]
| key[alt-→] .4+| Passa al buffer successivo .4+| `/buffer +1`
| key[alt-↓]
| key[ctrl-n]
| key[F6]
| key[F7] | Passa alla finestra precedente | `/window -1`
| key[F8] | Passa alla finestra successiva | `/window +1`
| key[F9] | Scorre il titolo del buffer sulla sinistra | `/bar scroll title * -30%`
| key[F10] | Scorre il titolo del buffer sulla destra | `/bar scroll title * +30%`
| key[F11] | Scorre di una pagina in alto nella lista nick | `/bar scroll nicklist * -100%`
| key[F12] | Scorre di una pagina in basso nella lista nick | `/bar scroll nicklist * +100%`
| key[alt-F11] | Sposta all'inizio della lista nick | `/bar scroll nicklist * b`
| key[alt-F12] | Sposta alla fine della lista nick | `/bar scroll nicklist * e`
| key[alt-a] | Passa al buffer successivo con attività (con priorità: highligh, messagge, altro) | `/input jump_smart`
| key[alt-h] | Pulisce hotlist (notifica di attività su altri buffer) | `/input hotlist_clear`
| key[alt-j,alt-l] | Passa all'ultimo buffer | `/input jump_last_buffer`
| key[alt-j,alt-r] | Passa al buffer raw IRC | `/server raw`
| key[alt-j,alt-s] | Passa al buffer server IRC | `/server jump`
| key[alt-0...9] | Passa al buffer numero (0 = 10) | `/buffer *N`
| key[alt-j,01...99] | Passa al buffer numero | `/buffer NN`
| key[alt-m] | Abilita/disabilita | `/mouse toggle`
| key[alt-n] | Scorre fino alla notifica successiva | `/window scroll_next_highlight`
| key[alt-p] | Scorre fino alla notifica precedente | `/window scroll_previous_highlight`
| key[alt-u] | Scorre fino alla prima riga non letta nel buffer | `/window scroll_unread`
| key[alt-w,alt-↑] | Passa alla finestra in alto | `/window up`
| key[alt-w,alt-↓] | Passa alla finestra in basso | `/window down`
| key[alt-w,alt-←] | Passa alla finestra sulla sinistra | `/window left`
| key[alt-w,alt-→] | Passa alla finestrs sulla destra | `/window right`
| key[alt-w,alt-b] | Bilancia le dimensioni di tutte le finestre | `/window balance`
| key[alt-w,alt-s] | Scambia i buffer di due finestra | `/window swap`
| key[alt-z] | Ingrandimento sulla finestra attiva (key[alt-z] di nuovo: ripristina lo stato iniziale della finestra, prima dell'ingrandimento) | `/window zoom`
| key[alt-]key[<] | Passa al buffer precedente nella lista dei buffer visitati | `/input jump_previously_visited_buffer`
| key[alt-]key[>] | Passa al buffer successivo nella lista dei buffer visitati | `/input jump_next_visited_buffer`
| key[alt-/] | Passa all'ultimo buffer mostrato (prima dell'ultimo passaggio ad un buffer) | `/input jump_last_buffer_displayed`
| key[alt-=] | Attiva/disattiva filtri | `/filter toggle`
2014-02-16 11:29:03 +01:00
// TRANSLATION MISSING
| key[alt-!] | Toggle bare display on/off | `/window bare`
2013-11-04 21:41:34 +01:00
|===
2009-12-04 12:11:12 +01:00
2011-07-05 15:36:42 +02:00
[[key_bindings_search_context]]
2013-11-04 21:41:34 +01:00
==== Tasti per il contesto "search"
2011-07-05 15:36:42 +02:00
2011-07-20 10:38:39 +02:00
Questi tasti sono usati nel contesto "search" (quando viene digitato
2013-12-02 19:10:08 +01:00
key[ctrl-r] per cercare del testo nel buffer).
2011-07-05 15:36:42 +02:00
2013-10-20 11:39:11 +02:00
[width="100%",cols="^.^3,.^10,.^5",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-12-02 19:10:08 +01:00
| Key | Descrizione | Comando
2013-08-17 11:51:50 +02:00
// TRANSLATION MISSING
2013-12-02 19:10:08 +01:00
| key[ctrl-r] | Switch search type: string (default), regular expression | `/input search_switch_regex`
| key[alt-c] | Passa alla ricerca esatta | `/input search_switch_case`
2013-08-17 11:51:50 +02:00
// TRANSLATION MISSING
2013-12-02 19:10:08 +01:00
| key[Tab] | Switch search in: messages (default), prefixes, prefixes + messages | `/input search_switch_where`
| key[↑] | Cerca riga precedente | `/input search_previous`
| key[↓] | Cerca riga successiva | `/input search_next`
| key[Invio] .3+| Ferma ricerca .3+| `/input search_stop`
| key[ctrl-j]
| key[ctrl-m]
2013-11-04 21:41:34 +01:00
|===
2011-07-05 15:36:42 +02:00
2011-07-26 18:50:29 +02:00
[[key_bindings_cursor_context]]
2013-11-04 21:41:34 +01:00
==== Tasti per il contesto "cursor"
2009-12-04 12:11:12 +01:00
2011-08-15 18:08:43 +02:00
Questi tasti sono usati nel contesto "cursor" (movimento libero del cursore
sullo schermo.
2011-07-26 18:50:29 +02:00
2013-10-20 11:39:11 +02:00
[width="100%",cols="^.^3,^.^3,.^10,.^8",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-12-02 19:10:08 +01:00
| Tasto | Zona | Descrizione | Comando
| key[↑] | - | Sposta il cursore di una riga in alto | `/cursor move up`
| key[↓] | - | Sposta il cursore di una riga in basso | `/cursor move down`
| key[←] | - | Sposta il cursore di una colonna a sinistra | `/cursor move left`
| key[→] | - | Sposta il cursore di una colonna a destra | `/cursor move right`
| key[alt-↑] | - | Sposta il cursore nell'area in alto | `/cursor move area_up`
| key[alt-↓] | - | Sposta il cursore nell'area in basso | `/cursor move area_down`
| key[alt-←] | - | Sposta il cursore nell'area a sinistra | `/cursor move area_left`
| key[alt-→] | - | Sposta il cursore nell'area a destra | `/cursor move area_right`
| key[m] | chat | Cita messaggio | `hsignal:chat_quote_message;/cursor stop`
| key[q] | chat | Cita prefisso + messaggio | `hsignal:chat_quote_prefix_message;/cursor stop`
| key[Q] | chat | Cita ora + prefisso + messaggio | `hsignal:chat_quote_time_prefix_message;/cursor stop`
| key[b] | lista nick | Ban di un nick | `/window ${_window_number};/ban ${nick}`
| key[k] | lista nick | Kick di un nick | `/window ${_window_number};/kick ${nick}`
| key[K] | lista nick | Kick e ban di un nick | `/window ${_window_number};/kickban ${nick}`
| key[q] | lista nick | Apri query con il nick | `/window ${_window_number};/query ${nick};/cursor stop`
| key[w] | lista nick | Effettua un whois sul nick | `/window ${_window_number};/whois ${nick}`
| key[Enter] .3+| - .3+| Ferma la modalità cursore .3+| `/cursor stop`
| key[ctrl-j]
| key[ctrl-m]
2013-11-04 21:41:34 +01:00
|===
2011-07-26 18:50:29 +02:00
[[key_bindings_mouse_context]]
2013-11-04 21:41:34 +01:00
==== Tasti per il contesto "mouse"
2011-07-26 18:50:29 +02:00
2011-08-15 18:08:43 +02:00
Questi tasti sono usati nel contesto "mouse", ovvero quando si verifica un
evento del mouse.
2011-07-26 18:50:29 +02:00
2012-08-20 13:36:29 +02:00
// TRANSLATION MISSING (6)
2013-10-20 11:39:11 +02:00
[width="100%",cols="^.^3,^.^3,^.^3,.^10,.^8",options="header"]
2013-11-04 21:41:34 +01:00
|===
2012-08-17 09:53:49 +02:00
| Tasto ^(1)^ | Azione | Zona | Descrizione | Comando
2013-12-02 19:10:08 +01:00
| ◾◽◽ | - | chat | Passa alla finestra | `/window ${_window_number}`
| ◾◽◽ | sinistra | chat | Passa al buffer precedente | `/window ${_window_number};/buffer +1`
| ◾◽◽ | destra | chat | Passa al buffer successivo | `/window ${_window_number};/buffer +1`
| ◾◽◽ | sinistra (lungo) | chat | Switch to first buffer | `/window ${_window_number};/buffer 1`
| ◾◽◽ | destra (lungo) | chat | Passa all'ultimo buffer | `/window ${_window_number};/input jump_last_buffer`
| ◾◽◽ | - | chat (script buffer) | Select line in script buffer | `/script go ${_chat_line_y}`
| ◽◽◾ | - | chat (script buffer) | Install/remove script | `/script go ${_chat_line_y};/script installremove -q ${script_name_with_extension}`
| ⇑ | - | chat | Scorre di qualche riga in alto nella cronologia del buffer | `/window scroll_up -window ${_window_number}`
| ⇓ | - | chat | Scorre di qualche riga in basso nella cronologia del buffer | `/window scroll_down -window ${_window_number}`
| ⇑ | - | chat (script buffer) | Move 5 lines up in script buffer | `/script up 5`
| ⇓ | - | chat (script buffer) | Move 5 lines down in script buffer | `/script down 5`
| key[ctrl-]⇑ | - | chat | Scroll horizontally to the left | `/window scroll_horiz -window ${_window_number} -10%`
| key[ctrl-]⇓ | - | chat | Scroll horizontally to the right | `/window scroll_horiz -window ${_window_number} +10%`
| ◾◽◽ | su | lista nick | Scorre di una pagina in alto nella lista nick | `/bar scroll nicklist ${_window_number} -100%`
| ◾◽◽ | giù | lista nick | Scorre di una pagina in basso nella lista nick | `/bar scroll nicklist ${_window_number} +100%`
| ◾◽◽ | up (lungo) | lista nick | Sposta all'inizio della lista nick | `/bar scroll nicklist ${_window_number} b`
| ◾◽◽ | giù (lungo) | lista nick | Sposta alla fine della lista nick | `/bar scroll nicklist ${_window_number} e`
| ◾◽◽ | - | lista nick | Apre una query con un nick | `/window ${_window_number};/query ${nick}`
| ◽◽◾ | - | lista nick | Effettua un whois su un nick | `/window ${_window_number};/whois ${nick}`
| ◾◽◽ | sinistra | lista nick | Kick di un nick | `/window ${_window_number};/kick ${nick}`
| ◾◽◽ | sinistra (lungo) | lista nick | Kick e ban di un nick | `/window ${_window_number};/kickban ${nick}`
| ◽◽◾ | sinistra | lista nick | Ban di un nick | `/window ${_window_number};/ban ${nick}`
| ◽◽◾ | - | input | Cattura un evento del mouse e inserisce il codice nella riga di comando | `/input grab_mouse_area`
| ⇑ | - | ogni barra | Scorre la barra del -20% | `/bar scroll ${_bar_name} ${_window_number} -20%`
| ⇓ | - | ogni barra | Scorre la barra del +20% | `/bar scroll ${_bar_name} ${_window_number} +20%`
| ◽◾◽ | - | ovunque | Avvia la modalità cursore in questo punto | `/cursor go ${_x},${_y}`
2013-11-04 21:41:34 +01:00
|===
2009-12-04 12:11:12 +01:00
2012-08-17 09:53:49 +02:00
// TRANSLATION MISSING
[NOTE]
^(1)^ "⇑" and "⇓" are wheel up and down.
2011-08-03 20:10:11 +02:00
[[mouse]]
2013-11-04 21:41:34 +01:00
=== Supporto del mouse
2011-08-03 20:10:11 +02:00
2011-08-15 18:08:43 +02:00
WeeChat supporta i click e le azioni del mouse. Funziona con il terminale
locale, e da remoto via connessione ssh con o senza screen/tmux.
2011-08-03 20:10:11 +02:00
[[mouse_enable]]
2013-11-04 21:41:34 +01:00
==== Abilitare il mouse
2011-08-03 20:10:11 +02:00
2011-08-15 18:08:43 +02:00
Per abilitare il mouse all'avvio:
2011-08-03 20:10:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-08-03 20:10:11 +02:00
/set weechat.look.mouse on
2013-11-04 21:41:34 +01:00
----
2011-08-03 20:10:11 +02:00
2013-12-02 19:10:08 +01:00
Per abilitarlo subito, digitare key[alt-m] oppure eseguire il seguente comando:
2011-08-03 20:10:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-08-03 20:10:11 +02:00
/mouse enable
2013-11-04 21:41:34 +01:00
----
2011-08-03 20:10:11 +02:00
2011-08-15 18:08:43 +02:00
È possibile disabilitarlo temporaneamente, e associare il comando ad un
2013-12-02 19:10:08 +01:00
tasto. Ad esempio il tasto key[alt-x] per disabilitare il mouse per 10 secondi:
2011-08-03 20:10:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-08-03 20:10:11 +02:00
/key bind meta-x /mouse toggle 10
2013-11-04 21:41:34 +01:00
----
2011-08-03 20:10:11 +02:00
2011-08-15 18:08:43 +02:00
Quando il mouse è abilitato in WeeChat, è possibile usare il modificatore
2013-12-02 19:10:08 +01:00
key[shift] per selezionare o cliccare nel terminale, come se il mouse fosse
disabilitato (in alcuni terminali come iTerm, bisogna usare key[alt] invece di
key[shift]).
2011-08-03 20:10:11 +02:00
[NOTE]
2011-08-15 18:08:43 +02:00
Per qualunque problema con il mouse, consultare 'FAQ di WeeChat'.
2011-08-03 20:10:11 +02:00
[[mouse_bind_events]]
2013-11-04 21:41:34 +01:00
==== Associare gli eventi del mouse a comandi
2011-08-03 20:10:11 +02:00
2011-08-15 18:08:43 +02:00
Molti eventi del mouse predefiniti sono già definiti da WeeChat (consultare
<<key_bindings_mouse_context,tasti per il contesto "mouse">>).
2011-08-03 20:10:11 +02:00
2011-08-15 18:08:43 +02:00
È possibile cambiare o aggiungere combinazioni con il comando `/key` usando il
contesto "mouse" (per la sintassi, consultare <<command_weechat_key,comando /key>>).
2011-08-03 20:10:11 +02:00
2011-10-06 13:11:44 +02:00
Il nome dell'evento consiste di un modificatore (opzionale), il nome di un
pulsante/rotellina e un'azione (opzionale). Elementi diversi sono separati da "-".
2011-08-03 20:10:11 +02:00
2011-10-06 13:11:44 +02:00
Elenco di modificatori
2011-10-05 18:15:28 +02:00
[width="50%",cols="3m,4",options="header"]
2013-11-04 21:41:34 +01:00
|===
2011-10-06 13:11:44 +02:00
| Modificatore | Descrizione
2013-12-02 19:10:08 +01:00
| ctrl | Tasto key[ctrl]
| alt | Tasto key[alt]
| ctrl-alt | Tasto key[ctrl-]key[alt]
2013-11-04 21:41:34 +01:00
|===
2011-08-03 20:10:11 +02:00
2011-10-06 13:11:44 +02:00
Elenco di pulsanti/rotellina:
2011-10-05 18:15:28 +02:00
[width="50%",cols="3m,4",options="header"]
2013-11-04 21:41:34 +01:00
|===
2011-10-06 13:11:44 +02:00
| Pulsante/rotellina | Descrizione
2013-08-17 16:38:28 +02:00
| button1 | Click sul tasto sinistro
| button2 | Click sul tasto destro
| button3 | Click sul tasto centrale (spesso click sulla rotellina)
| button4 ... button9 | Click sui pulsanti extra
| wheelup | Rotellina (su)
| wheeldown | Rotellina (giù)
2013-11-04 21:41:34 +01:00
|===
2011-10-05 18:15:28 +02:00
2011-10-06 13:11:44 +02:00
Elenco di azioni (solo per i pulsanti, non la rotellina):
2011-10-05 18:15:28 +02:00
[width="50%",cols="3m,4",options="header"]
2013-11-04 21:41:34 +01:00
|===
2011-10-06 13:11:44 +02:00
| Azione | Distanza
2011-10-05 18:15:28 +02:00
| gesture-up | 3 ... 19
| gesture-up-long | ≥ 20
| gesture-down | 3 ... 19
| gesture-down-long | ≥ 20
| gesture-left | 3 ... 39
| gesture-left-long | ≥ 40
| gesture-right | 3 ... 39
| gesture-right-long | ≥ 40
2013-11-04 21:41:34 +01:00
|===
2011-10-05 18:15:28 +02:00
2012-11-02 17:26:52 +01:00
// TRANSLATION MISSING
List of incomplete events (only for buttons, useful for plugins/scripts):
[width="50%",cols="3m,4",options="header"]
2013-11-04 21:41:34 +01:00
|===
2012-11-02 17:26:52 +01:00
| Event | Description
2013-08-17 16:38:28 +02:00
| event-down | Button was pressed but not released yet
| event-drag | Mouse was moved with button pressed down
2013-11-04 21:41:34 +01:00
|===
2012-11-02 17:26:52 +01:00
2011-10-06 13:11:44 +02:00
Esempio di eventi:
2011-10-05 18:15:28 +02:00
* `button1`
* `ctrl-button1`
* `button1-gesture-right`
2012-11-02 17:26:52 +01:00
* `button1-event-down`
* `button1-event-drag`
2011-10-05 18:15:28 +02:00
* `alt-button2-gesture-down-long`
* `wheelup`
* `ctrl-alt-wheeldown`
* ...
2011-08-03 20:10:11 +02:00
[TIP]
2011-08-15 18:08:43 +02:00
Quando si associa un tasto nel contesto "mouse", è possibile far corrispondere
2011-10-15 13:54:53 +02:00
più eventi usando `*` all'inizio o alla fine del nome, ad esempio
2011-08-15 18:08:43 +02:00
`button1-gesture-*` corrisponderà ad ogni azione compiuta col tasto sinistro.
2011-08-03 20:10:11 +02:00
2011-10-05 18:15:28 +02:00
[TIP]
2011-10-06 13:11:44 +02:00
È possibile trovare il nome di un evento con il comando `/input grab_mouse`
poi eseguire l'evento col mouse. Il comando inserisce il nome dell'evento
nella riga di comando.
2011-10-05 18:15:28 +02:00
2009-12-04 12:11:12 +01:00
[[command_line]]
2013-11-04 21:41:34 +01:00
=== Riga di comando
2009-12-04 12:11:12 +01:00
La riga di comando di WeeChat (nella parte inferiore della finestra) consente di
inserire i comandi o di inviare del testo sul buffer.
2010-01-22 18:24:07 +01:00
[[command_line_syntax]]
2013-11-04 21:41:34 +01:00
==== Sintassi
2009-12-04 12:11:12 +01:00
I comandi iniziano con il carattere "/", seguito dal nome del comando. Ad esempio,
per consultare un elenco di opzioni:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/set
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
Il testo inviato ad un buffer è qualsiasi testo che non comincia con
il carattere "/". Per esempio, per inviare il testo 'ciao' sul buffer
attivo:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
ciao
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
Ad ogni modo, è possibile iniziare con il carattere "/", aggiungendone
poi un altro. Ad esempio, per inviare il testo '/set' sul buffer attivo:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
//set
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
2010-01-22 18:24:07 +01:00
[[command_line_colors]]
2013-11-04 21:41:34 +01:00
==== Codici colore
2009-12-04 12:11:12 +01:00
Per alcuni plugin come IRC, è possibile usare codici colori ed attributi,
2013-12-02 19:10:08 +01:00
come segue (digitare key[ctrl-c] poi la lettera che segue, con il valore
2009-12-04 12:11:12 +01:00
opzionale):
2013-12-02 19:10:08 +01:00
key[ctrl-c,b]::
2009-12-04 12:11:12 +01:00
testo in grassetto
2013-12-02 19:10:08 +01:00
key[ctrl-c,c], key[xx]::
2009-12-04 12:11:12 +01:00
colore del testo `xx` (consultare la lista di colori che segue)
2013-12-02 19:10:08 +01:00
key[ctrl-c,c], key[xx]key[,]key[yy]::
2009-12-04 12:11:12 +01:00
colore del testo `xx` e di sfondo `yy` (consultare la lista di colori
che segue)
2013-11-02 10:58:38 +01:00
// TRANSLATION MISSING
2013-12-02 19:10:08 +01:00
key[ctrl-c,i]::
2013-11-02 10:58:38 +01:00
italic text
2013-12-02 19:10:08 +01:00
key[ctrl-c,o]::
2009-12-04 12:11:12 +01:00
disabilita colori ed attributi
2013-12-02 19:10:08 +01:00
key[ctrl-c,v]::
2013-12-01 11:30:52 +01:00
video inverso (inverte il colore del testo con quello di sfondo)
2013-12-02 19:10:08 +01:00
key[ctrl-c,_]::
2013-12-01 18:39:05 +01:00
testo sottolineato
2009-12-04 12:11:12 +01:00
[NOTE]
2013-12-02 19:10:08 +01:00
Lo stesso codice (senza numero per key[ctrl-c,c]) può essere usato per
2009-12-04 12:11:12 +01:00
terminare l'attributo.
2013-12-02 19:10:08 +01:00
I codici colore per key[ctrl-c,c] sono:
2009-12-04 12:11:12 +01:00
2011-03-13 08:59:09 +01:00
[width="50%",cols="^1m,3,3",options="header"]
2013-11-04 21:41:34 +01:00
|===
2010-02-23 18:02:00 +01:00
| Codice | IRC | WeeChat (curses)
2010-02-23 17:19:50 +01:00
| 00 | bianco | white
| 01 | nero | black
| 02 | blu scuro | blue
| 03 | verde scuro | green
| 04 | rosso chiaro | lightred
| 05 | rosso scuro | red
| 06 | rosa scuro | magenta
| 07 | arancione | brown
| 08 | giallo | yellow
| 09 | verde chiaro | lightgreen
| 10 | azzurro scuro | cyan
| 11 | azzurro chiaro | lightcyan
| 12 | blu chiaro | lightblue
| 13 | rosa chiaro | lightmagenta
2011-02-05 13:12:41 +01:00
| 14 | grigio | gray
2010-02-23 17:19:50 +01:00
| 15 | grigio chiaro | white
2013-11-04 21:41:34 +01:00
|===
2009-12-04 12:11:12 +01:00
Esempio: visualizza "ciao a tutti!" con "ciao" scritto in blu chiaro grassetto
e "a tutti" in rosso chiaro sottolineato:
2013-11-04 21:41:34 +01:00
----
2011-03-13 08:59:09 +01:00
^Cc12^Cbciao ^Cb^Cc04^Cua tutti^Cu^Cc !
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
2011-11-12 11:31:26 +01:00
[NOTE]
2011-11-17 13:32:28 +01:00
Nel plugin irc, si possono riorganizzare i colori usando l'opzione
2011-11-12 11:31:26 +01:00
<<option_irc.color.mirc_remap,irc.color.mirc_remap>>.
2011-01-04 14:48:02 +01:00
[[colors]]
2013-11-04 21:41:34 +01:00
=== Colori
2011-01-04 14:48:02 +01:00
2011-01-10 18:14:48 +01:00
WeeChat può usare fino a 256 coppie di colore per visualizzare il testo nelle barre e
nell'area di chat(il terminale deve supportare 256 colori per essere utilizzati in WeeChat).
2011-01-04 14:48:02 +01:00
2011-01-10 18:14:48 +01:00
In base al valore della variabile di ambiente 'TERM', potrebbero verificarsi i
seguenti limiti per i colori in WeeChat:
2011-01-04 14:48:02 +01:00
2011-01-18 14:23:06 +01:00
[width="50%",cols="8,>2,>2",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-12-23 23:43:44 +01:00
| $TERM | Colori | Coppie ^(1)^
| "rxvt-unicode", "xterm", ... | 88 | 256
| "rxvt-256color", "xterm-256color", ... | 256 | 32767
| "screen" | 8 | 64
| "screen-256color" | 256 | 32767
2013-11-04 21:41:34 +01:00
|===
2011-01-04 14:48:02 +01:00
[NOTE]
2011-01-10 18:14:48 +01:00
^(1)^ Anche se il terminale supporta più di 256 coppie, possono essere utilizzate
solo 256 coppie in WeeChat, a causa di una limitazione di ncurses.
2011-01-04 14:48:02 +01:00
2013-08-02 08:54:16 +02:00
È possibile eseguire `weechat --colors` o utilizzare il comando `/color` in
2011-01-10 18:14:48 +01:00
WeeChat per visualizzare i limiti del proprio ambiente.
2011-01-04 14:48:02 +01:00
2011-01-10 18:14:48 +01:00
Alcuni valori raccomandati per 'TERM' se si desiderano 256 colori:
2011-01-04 14:48:02 +01:00
2011-01-10 18:14:48 +01:00
* con screen: 'screen-256color'
2013-12-23 23:43:44 +01:00
* al di fuori di screen: 'xterm-256color', 'rxvt-256color', 'putty-256color', ...
2011-01-04 14:48:02 +01:00
2011-02-02 23:41:36 +01:00
[NOTE]
2011-03-21 16:39:13 +01:00
Potrebbe essere necessario installare il pacchetto "ncurses-term" per usare
questi valori nella variabile 'TERM'.
2011-02-02 23:41:36 +01:00
2011-01-10 18:14:48 +01:00
Se si sta utilizzando screen, è possibile aggiungere questa riga al
proprio '~/.screenrc':
2011-01-04 15:05:30 +01:00
2013-11-04 21:41:34 +01:00
----
2011-01-04 15:05:30 +01:00
term screen-256color
2013-11-04 21:41:34 +01:00
----
2011-01-04 15:05:30 +01:00
2011-01-10 18:14:48 +01:00
Se la variabile 'TERM' contiene un valore errato e WeeChat è già in esecuzione,
niente panico! È possibile cambiarla senza riavviare, grazie allo script 'shell.py':
2011-01-04 14:48:02 +01:00
2013-11-04 21:41:34 +01:00
----
2011-01-04 14:48:02 +01:00
/shell setenv TERM=screen-256color
/upgrade
2013-11-04 21:41:34 +01:00
----
2011-01-04 14:48:02 +01:00
[[colors_basic]]
2013-11-04 21:41:34 +01:00
==== Colori base
2011-01-04 14:48:02 +01:00
2011-01-10 18:14:48 +01:00
I colori base in WeeChat sono:
2009-12-04 12:11:12 +01:00
2011-01-04 14:48:02 +01:00
[width="50%",cols="^3m,8",options="header"]
2013-11-04 21:41:34 +01:00
|===
2011-01-10 18:14:48 +01:00
| Nome | Colore
2013-08-17 16:38:28 +02:00
| default | Colore predefinito del terminale (trasparente per lo sfondo)
| black | Nero
| darkgray | Grigio scuro
| red | Rosso scuro
| lightred | Rosso chiaro
| green | Verde scuro
| lightgreen | Verde chiaro
| brown | Marrone
| yellow | Giallo
| blue | Blu scuro
| lightblue | Blu chiaro
| magenta | Rosa scuro
| lightmagenta | Rosa chiaro
| cyan | Azzurro scuro
| lightcyan | Azzurro chiaro
| gray | Grigio
| white | Bianco
2013-11-04 21:41:34 +01:00
|===
2009-12-04 12:11:12 +01:00
2011-01-31 19:03:30 +01:00
[[colors_extended]]
2013-11-04 21:41:34 +01:00
==== Colori estesi
2011-01-04 14:48:02 +01:00
2011-03-21 16:39:13 +01:00
WeeChat alloca dinamicamente le coppie colore quando vengono usati i colori
sullo schermo (per mostrare buffer e barre).
2011-01-04 14:48:02 +01:00
2011-03-21 16:39:13 +01:00
In aggiunta ai colori di base, si può usare un numero per il colore compreso
tra 1 e il limite del proprio terminale.
2011-01-04 14:48:02 +01:00
2013-12-02 19:10:08 +01:00
Il comando '/color' mostra i colori attivi ed i limiti. Com key[alt-c] si può
2011-03-21 16:39:13 +01:00
passare temporaneamente ai colori del terminale per sceglierne uno.
2011-01-04 14:48:02 +01:00
2011-05-14 19:15:42 +02:00
Se ad esempio si desidera visualizzare l'ora in arancione nel buffer:
2011-01-04 14:48:02 +01:00
2013-11-04 21:41:34 +01:00
----
2011-01-31 19:03:30 +01:00
/set weechat.color.chat_time 214
2013-11-04 21:41:34 +01:00
----
2011-01-04 14:48:02 +01:00
2011-03-21 16:39:13 +01:00
O se si desidera uno sfondo verde scuro per la barra di stato:
2011-01-04 14:48:02 +01:00
2013-11-04 21:41:34 +01:00
----
2011-01-31 19:03:30 +01:00
/set weechat.bar.status.color_bg 22
2013-11-04 21:41:34 +01:00
----
2011-01-04 14:48:02 +01:00
2011-01-31 19:03:30 +01:00
[[colors_aliases]]
2013-11-04 21:41:34 +01:00
==== Alias
2011-01-31 19:03:30 +01:00
2011-03-21 16:39:13 +01:00
Si possono aggiungere degli alias ai colori con il comando '/color alias' e
usarli in ogni opzione relativa al colore.
2011-01-31 19:03:30 +01:00
2011-03-21 16:39:13 +01:00
Ad esempio:
2011-01-31 19:03:30 +01:00
2013-11-04 21:41:34 +01:00
----
2011-02-02 23:01:55 +01:00
/color alias 214 orange
2011-01-31 19:03:30 +01:00
/set weechat.color.chat_delimiters orange
2013-11-04 21:41:34 +01:00
----
2011-01-04 14:48:02 +01:00
2011-02-17 14:51:21 +01:00
[[colors_attributes]]
2013-11-04 21:41:34 +01:00
==== Attributi
2011-02-17 14:51:21 +01:00
2011-03-21 16:39:13 +01:00
Esistono alcuni attributi per i colori. Uno o più attributi vanno aggiunti prima
del nome o del numero del colore:
2011-02-17 14:51:21 +01:00
2011-10-15 13:54:53 +02:00
* `*` : testo in grassetto
* `!` : video inverso
2013-11-02 10:58:38 +01:00
* `/` : testo in corsivo
2011-10-15 13:54:53 +02:00
* `_` : testo sottolineato
2011-10-17 17:52:26 +02:00
* `|` : mantiene attributi: non ripristina grassetto/inverso/sottolineato
al cambio di colore
2011-02-17 14:51:21 +01:00
2011-03-21 16:39:13 +01:00
Ad esempio se si vuole il proprio nick bianco e sottolineato:
2011-02-17 14:51:21 +01:00
2013-11-04 21:41:34 +01:00
----
2011-02-17 14:51:21 +01:00
/set weechat.color.chat_nick_self _white
2013-11-04 21:41:34 +01:00
----
2011-02-17 14:51:21 +01:00
2011-03-21 16:39:13 +01:00
O se si desidera l'ora nella barra di stato arancione sottolineata
e in grassetto:
2011-02-17 14:51:21 +01:00
2013-11-04 21:41:34 +01:00
----
2011-02-17 14:51:21 +01:00
/set weechat.color.status_time *_214
2013-11-04 21:41:34 +01:00
----
2011-02-17 14:51:21 +01:00
2011-03-21 16:39:13 +01:00
Per usare un attributo con il colore predefinito del terminale (-1), bisogna
usare un numero maggiore dell'ultimo colore del terminale, ad esempio il
numero massimo in WeeChat: 99999.
2011-02-17 14:51:21 +01:00
2011-03-21 16:39:13 +01:00
Esempio di grassetto con il colore di primo piano del terminale:
2011-02-17 14:51:21 +01:00
2013-11-04 21:41:34 +01:00
----
2011-02-17 14:51:21 +01:00
/set weechat.color.status_time *99999
2013-11-04 21:41:34 +01:00
----
2011-02-17 14:51:21 +01:00
2014-02-18 19:26:55 +01:00
// TRANSLATION MISSING
[[secured_data]]
=== Secured data
[[secured_data_storage]]
==== Storage
WeeChat can encrypt passwords or private data using secured data, stored in file
'sec.conf'.
This configuration file is read before any other file, and the values stored
inside can be used in various WeeChat or plugins/scripts options.
You can set a passphrase to encrypt data in 'sec.conf'. This is not mandatory
but highly recommended, otherwise data is stored as plain text in file.
----
/secure passphrase this is my passphrase
----
When a passphrase is set, WeeChat will ask you to enter it on startup (but not
on `/upgrade`).
You can change this behavior and use a file with the passphrase (see option
<<option_sec.crypt.passphrase_file,sec.crypt.passphrase_file>>).
[[secured_data_encryption]]
===== Encryption
The encryption of data is made in 3 steps:
. Derive a key from the passphrase (with optional salt).
. Compute hash of data to encrypt.
. Encrypt the hash + data (output is: salt + encrypted hash/data).
[NOTE]
The cipher block mode is 'CFB'.
The result is put as hexadecimal string in file 'sec.conf', for example:
----
[data]
__passphrase__ = on
freenode = "53B1C86FCDA28FC122A95B0456ABD79B5AB74654F21C3D099A6CCA8173239EEA59533A1D83011251F96778AC3F5166A394"
----
[[secured_data_decryption]]
===== Decryption
The decryption of data is made in 3 steps:
. Derive a key using salt and passphrase.
. Decrypt hash + data.
. Check that decrypted hash == hash of data.
[[secured_data_manage]]
==== Manage secured data
To add secured data, use `/secure set`, for example a password for 'freenode'
IRC server:
----
/secure set freenode mypassword
----
For comfort, secured data can be displayed in a dedicated buffer (key[alt-v] on
buffer to see values), just do:
----
/secure
----
Secured data can be used in some options that can contain private data like
password, using this format: "${sec.data.xxx}" where "xxx" is the name of
secured data (used with `/secure set xxx ...`). +
For a complete list of supported options, see `/help secure`.
To use the 'freenode' password, for example with
<<irc_sasl_authentication,SASL authentication>>:
----
/set irc.server.freenode.sasl_password "${sec.data.freenode}"
----
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
[[options_and_commands]]
2013-11-04 21:41:34 +01:00
=== Options and commands
2013-08-07 22:04:32 +02:00
2013-08-02 20:16:47 +02:00
// TRANSLATION MISSING
[[sec_options]]
2013-11-04 21:41:34 +01:00
==== Secured data options (sec.conf)
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Sections:
// TRANSLATION MISSING
[width="100%",cols="3m,6m,16",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
| Section | Control command | Description
| crypt | /set sec.crypt.* | Options for encryption
| data | <<command_weechat_secure,/secure>> | Secured data
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Options:
2013-08-02 20:16:47 +02:00
include::autogen/user/sec_options.txt[]
2011-08-03 20:10:11 +02:00
[[weechat_options]]
2013-11-04 21:41:34 +01:00
==== Opzioni di WeeChat (weechat.conf)
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Sections:
// TRANSLATION MISSING
[width="100%",cols="3m,6m,16",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
| Section | Control command | Description
| debug | <<command_weechat_debug,/debug set>> +
/set weechat.debug.* | Debug level, for core and plugins (options can be added/removed in section)
| startup | /set weechat.startup.* | Startup options
| look | /set weechat.look.* | Look and feel
| palette | <<command_weechat_color,/color alias>> +
/set weechat.palette.* | Color aliases (options can be added/removed in section)
| color | /set weechat.color.* | Colors
| completion | /set weechat.completion.* | Completion options
| history | /set weechat.history.* | History options (commands and buffers)
| proxy | <<command_weechat_proxy,/proxy>> +
/set weechat.proxy.* | Proxy options
| network | /set weechat.network.* | Network/SSL options
| bar | <<command_weechat_bar,/bar>> +
/set weechat.bar.* | Bar options
| layout | <<command_weechat_layout,/layout>> | Layouts
| notify | <<command_weechat_buffer,/buffer notify>> | Notify levels for buffers (options can be added/removed in section)
| filter | <<command_weechat_filter,/filter>> | Filters
| key | <<command_weechat_key,/key>> | Keys in default context
| key_search | <<command_weechat_key,/key>> | Keys in search context
| key_cursor | <<command_weechat_key,/key>> | Keys in cursor context
| key_mouse | <<command_weechat_key,/key>> | Keys in mouse context
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Options:
2011-08-03 20:10:11 +02:00
include::autogen/user/weechat_options.txt[]
[[weechat_commands]]
2013-11-04 21:41:34 +01:00
==== Comandi di WeeChat
2011-08-03 20:10:11 +02:00
include::autogen/user/weechat_commands.txt[]
2009-12-04 12:11:12 +01:00
[[plugins]]
2013-11-04 21:41:34 +01:00
== Plugin
2009-12-04 12:11:12 +01:00
Un plugin è una libreria dinamica, scritta in C e compilata, che viene caricata
da WeeChat.
In GNU/Linux, il file ha estensione ".so", ".dll" in Windows.
I plugin trovati vengono caricati automaticamente all'avvio di WeeChat, ed
2011-10-21 12:18:48 +02:00
è possibile caricare o scaricare i plugin durante l'esecuzione del programma.
2009-12-04 12:11:12 +01:00
È importante evidenziare la differenza tra un 'plugin' ed uno 'script': un
'plugin' è un file binario compilato e caricato con il comando `/plugin`,
2011-10-26 19:25:51 +02:00
mentre uno 'script' è un file di testo caricato con un plugin come 'python'
con il comando `/python`.
2009-12-04 12:11:12 +01:00
2011-10-21 12:18:48 +02:00
È possibile utilizzare il comando `/plugin` per caricare/scaricare un plugin,
oppure elencare tutti i plugin caricati.
Quando un plugin viene scaricato, tutti i buffer creati da questo plugin
2009-12-04 12:11:12 +01:00
sono chiusi automaticamente.
2011-10-21 12:18:48 +02:00
Esempi per caricare, scaricare oppure elencare i plugin:
2009-12-04 12:11:12 +01:00
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/plugin load irc
/plugin unload irc
/plugin list
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
I plugin predefiniti sono:
2010-02-23 18:02:00 +01:00
[width="50%",cols="^1,5",options="header"]
2013-11-04 21:41:34 +01:00
|===
2010-08-11 15:43:20 +02:00
| Plugin | Descrizione
| alias | Definisce gli alias per i comandi
| aspell | Controllo ortografico per la riga di comando
| charset | Set di caratteri per la codifica/decodifica nei buffer
| fifo | pipe FIFO utilizzata per inviare comandi da remoto su WeeChat
| irc | protocollo chat per IRC
| logger | Registra i buffer su file
2013-08-07 22:04:32 +02:00
| relay | Relay dei dati via rete
2010-09-22 21:44:07 +02:00
| rmodifier | Cambia le stringhe del modificatore con espressioni regolari
2013-09-20 15:34:24 +02:00
| script | Gestore script
2010-08-11 15:43:20 +02:00
| python | API per lo scripting in Python
2011-10-26 19:25:51 +02:00
| perl | API per lo scripting in Perl
2010-08-11 15:43:20 +02:00
| ruby | API per lo scripting in Ruby
| lua | API per lo scripting in Lua
| tcl | API per lo scripting in TCL
2011-10-26 19:25:51 +02:00
| guile | API per lo scripting in Guile (scheme)
2010-08-11 15:43:20 +02:00
| xfer | Trasferimento file e chat diretta
2013-11-04 21:41:34 +01:00
|===
2009-12-04 12:11:12 +01:00
2013-08-07 22:04:32 +02:00
Per saperne di più riguardo lo sviluppo di plugin o script (tramite le API), per
favore consultare 'Riferimento API dei Plugin per WeeChat' oppure
'Guida allo Scripting di WeeChat'.
2009-12-04 12:11:12 +01:00
[[alias_plugin]]
2013-11-04 21:41:34 +01:00
=== Plugin Alias
2009-12-04 12:11:12 +01:00
Il plugin Alias consente di creare alias per i comandi (da WeeChat o altri
plugin).
2010-01-22 18:24:07 +01:00
[[alias_commands]]
2013-11-04 21:41:34 +01:00
==== Comandi
2009-12-04 12:11:12 +01:00
include::autogen/user/alias_commands.txt[]
[[aspell_plugin]]
2013-11-04 21:41:34 +01:00
=== Plugin Aspell
2009-12-04 12:11:12 +01:00
Il plugin Aspell consente di verificare l'ortografia nella riga di comando.
È possibile utilizzare più lingue per buffer.
2010-01-22 18:24:07 +01:00
[[aspell_options]]
2013-11-04 21:41:34 +01:00
==== Opzioni (aspell.conf)
2009-12-04 12:11:12 +01:00
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Sections:
// TRANSLATION MISSING
[width="100%",cols="3m,6m,16",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
| Section | Control command | Description
| color | /set aspell.color.* | Colors
| check | /set aspell.check.* | Options to control spell checking
| dict | <<command_aspell_aspell,/aspell setdict>> +
/set aspell.dict.* | Dictionaries used by buffer (options can be added/removed in section)
| option | /set aspell.option.* | <<aspell_speller_options,Opzioni ortografiche>> (options can be added/removed in section)
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Options:
2009-12-04 12:11:12 +01:00
include::autogen/user/aspell_options.txt[]
2010-01-22 18:24:07 +01:00
[[aspell_commands]]
2013-11-04 21:41:34 +01:00
==== Comandi
2009-12-04 12:11:12 +01:00
include::autogen/user/aspell_commands.txt[]
2011-04-15 18:45:17 +02:00
[[aspell_speller_options]]
2013-11-04 21:41:34 +01:00
==== Opzioni ortografiche
2011-04-15 18:45:17 +02:00
2011-05-03 08:44:10 +02:00
Le opzioni ortografiche possono essere definite aggiungendo opzioni nella
sezione "opzioni" della configurazione di aspell.
2011-04-15 18:45:17 +02:00
2011-05-03 08:44:10 +02:00
Il nome dell'opzione è un parametro di configurazione per aspell. L'elenco
delle opzioni disponibili può essere trovato nel terminale col seguente comando:
2011-04-15 18:45:17 +02:00
2013-11-04 21:41:34 +01:00
----
2011-04-15 18:45:17 +02:00
$ aspell config
2013-11-04 21:41:34 +01:00
----
2011-04-15 18:45:17 +02:00
2011-05-03 08:44:10 +02:00
Ad esempio, per abilitare l'opzione "ignore-case":
2011-04-15 18:45:17 +02:00
2013-11-04 21:41:34 +01:00
----
2011-04-15 18:45:17 +02:00
/set aspell.option.ignore-case "true"
2013-11-04 21:41:34 +01:00
----
2011-04-15 18:45:17 +02:00
2012-11-04 11:50:15 +01:00
// TRANSLATION MISSING
[[aspell_suggestions]]
2013-11-04 21:41:34 +01:00
==== Suggestions
2012-11-04 11:50:15 +01:00
Suggestions are displayed in a bar item called "aspell_suggest". The number of
suggestions is set in option 'aspell.check.suggestions'.
To enable suggestions you must set option 'aspell.check.suggestions' to an
integer ≥ 0 and add the bar item "aspell_suggest" to a bar, like 'status'.
2013-01-07 10:31:32 +01:00
Example of suggestions with English dictionary (`en`):
2012-11-04 11:50:15 +01:00
2013-11-04 21:41:34 +01:00
....
2012-11-04 11:50:15 +01:00
│[12:55] [6] [irc/freenode] 3:#test(+n){4} [print,prone,prune] │
│[@Flashy] prinr █ │
└─────────────────────────────────────────────────────────────────────────────────┘
2013-11-04 21:41:34 +01:00
....
2012-11-04 11:50:15 +01:00
2013-01-07 10:31:32 +01:00
Example of suggestions with English and French dictionaries (`en,fr`):
2012-11-04 11:50:15 +01:00
2013-11-04 21:41:34 +01:00
....
2012-11-04 11:50:15 +01:00
│[12:55] [6] [irc/freenode] 3:#test(+n){4} [print,prone,prune/prime,primer,primé] │
│[@Flashy] prinr █ │
└─────────────────────────────────────────────────────────────────────────────────┘
2013-11-04 21:41:34 +01:00
....
2012-11-04 11:50:15 +01:00
2009-12-04 12:11:12 +01:00
[[charset_plugin]]
2013-11-04 21:41:34 +01:00
=== Plugin Charset
2009-12-04 12:11:12 +01:00
Il plugin Charset consente di decodificare o codificare dati utilizzando
i set caratteri.
Esiste un set caratteri predefinito per la codifica/decodifica, e set caratteri
specifici per i buffer (o gruppi di buffer).
2011-10-21 12:18:48 +02:00
Questo plugin è opzionale, ma raccomandato: se non caricato, WeeChat
2009-12-04 12:11:12 +01:00
può leggere/scrivere soltanto dati UTF-8.
Il plugin Charset dovrebbe essere caricato automaticamente da WeeChat.
Per essere sicuri che sia caricato, provare con:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/charset
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
Se non trovato, allora si deve caricare il plugin con il comando:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/plugin load charset
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
Se il plugin non viene trovato, allora è necessario ricompilare WeeChat
con il supporto ai plugin e a Charset.
Quando viene avviato il plugin Charset, mostra i set caratteri del
terminale e quello interno. Il set caratteri dipende dal proprio
locale, mentre quello interno è UTF-8.
Per esempio:
2013-11-04 21:41:34 +01:00
....
2009-12-04 12:11:12 +01:00
set caratteri: terminale: ISO-8859-15, interno: UTF-8
2013-11-04 21:41:34 +01:00
....
2009-12-04 12:11:12 +01:00
2010-01-22 18:24:07 +01:00
[[charset_options]]
2013-11-04 21:41:34 +01:00
==== Opzioni (charset.conf)
2009-12-04 12:11:12 +01:00
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Sections:
// TRANSLATION MISSING
[width="100%",cols="3m,6m,16",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
| Section | Control command | Description
| default | /set charset.default.* | Default decoding/encoding charset
| decode | <<command_charset_charset,/charset decode>> +
/set charset.decode.* | Decoding charset by buffer (options can be added/removed in section)
| encode | <<command_charset_charset,/charset encode>> +
/set charset.encode.* | Encoding charset by buffer (options can be added/removed in section)
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Options:
2009-12-04 12:11:12 +01:00
include::autogen/user/charset_options.txt[]
2010-01-22 18:24:07 +01:00
[[charset_commands]]
2013-11-04 21:41:34 +01:00
==== Comandi
2009-12-04 12:11:12 +01:00
include::autogen/user/charset_commands.txt[]
2010-01-22 18:24:07 +01:00
[[charset_set]]
2013-11-04 21:41:34 +01:00
==== Impostare il set caratteri
2009-12-04 12:11:12 +01:00
Per impostare il set caratteri globale per la codifica e la decodifica,
utilizzare il comando `/set`.
Per esempio:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/set charset.default.decode ISO-8859-15
/set charset.default.encode ISO-8859-15
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
Se il set caratteri globale per la decodifica non è impostato (ad
esempio durante il primo caricamento del plugin Charset), verrà
impostato automaticamente sul set caratteri del terminale (se
diverso da UTF-8), oppure su 'ISO-8859-1'.
Il valore di codifica predefinito è vuoto, perciò il testo viene
inviato per default con il set caratteri interno (UTF-8).
Per impostare il set caratteri del server IRC, utilizzare il comando `charset`
sul buffer del server. Se viene immesso solo il set caratteri, allora i valori
di codifica e decodifica saranno gli stessi.
Ad esempio:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/charset ISO-8859-15
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
È l'equivalente di:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/charset decode ISO-8859-15
/charset encode ISO-8859-15
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
Per impostare il set caratteri per il canale IRC (o il privato), utilizzare gli
stessi comandi per il server, ma sul buffer del canale (o quello privato).
Per visualizzare tutti i set caratteri utilizzati, utilizzare il comando seguente:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/set charset.*
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
2010-01-22 18:24:07 +01:00
[[charset_troubleshooting]]
2013-11-04 21:41:34 +01:00
==== Risoluzione problemi
2009-12-04 12:11:12 +01:00
Per qualunque problema con i set caratteri, per favore consultare
le 'Domande Frequenti di WeeChat'.
[[fifo_plugin]]
2013-11-04 21:41:34 +01:00
=== Plugin Fifo
2009-12-04 12:11:12 +01:00
È possibile controllare da remoto WeeChat, inviando comandi o del testo ad una
pipe FIFO (se l'opzione "plugins.var.fifo.fifo" è abilitata, e lo è per default).
La pipe FIFO si trova in '~/.weechat/' ed è chiamata 'weechat_fifo_xxxx'
(dove 'xxxx' è l'ID del processo (PID) dell'istanza di WeeChat in esecuzione).
La sintassi per i comandi/testo della pipe FIFO è una delle seguenti:
2013-11-04 21:41:34 +01:00
....
2009-12-04 12:11:12 +01:00
plugin.buffer *testo o comando qui
*testo o comando qui
2013-11-04 21:41:34 +01:00
....
2009-12-04 12:11:12 +01:00
Alcuni esempi:
* cambiare il nick sul server IRC freenode in "nuovonick":
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
$ echo 'irc.server.freenode */nick nuovonick' >~/.weechat/weechat_fifo_12345
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
* visualizazre del testo sul canale IRC #weechat:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
$ echo 'irc.freenode.#weechat *hello!' >~/.weechat/weechat_fifo_12345
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
* visualizzare del testo sul buffer attivo:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
$ echo '*hello!' >~/.weechat/weechat_fifo_12345
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
2011-10-26 19:25:51 +02:00
* inviare due comandi per scaricare/caricare gli script Python (è necessario
2009-12-04 12:11:12 +01:00
separarli con "\n"):
2013-11-04 21:41:34 +01:00
----
2011-10-26 19:25:51 +02:00
$ echo -e '*/python unload\n*/python autoload' >~/.weechat/weechat_fifo_12345
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
È possibile realizzare uno script per inviare un comando a tutte le istanze di
WeeChat in esecuzione, per esempio:
[source,shell]
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
#!/bin/sh
if [ $# -eq 1 ]; then
for fifo in ~/.weechat/weechat_fifo_*
do
echo -e "$1" >$fifo
done
fi
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
Se lo script viene chiamato "auto_weechat_command", può essere
eseguito con:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
$ ./auto_weechat_command 'irc.freenode.#weechat *ciao'
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
[[irc_plugin]]
2013-11-04 21:41:34 +01:00
=== Plugin IRC
2009-12-04 12:11:12 +01:00
Il plugin IRC è realizzato per chattare tramite protocollo IRC con altre persone.
È multi-server, ed offre tutti i comandi IRC supportati inclusi la chat DCC ed il
2010-03-13 14:22:24 +01:00
trasferimento file (tramite plugin xfer, consultare <<xfer_plugin,plugin Xfer>>).
2009-12-04 12:11:12 +01:00
2010-01-22 18:24:07 +01:00
[[irc_command_line_options]]
2013-11-04 21:41:34 +01:00
==== Opzioni a riga di comando
2009-12-04 12:11:12 +01:00
È possibile fornire un URL per uno o più server IRC, come segue:
2013-11-04 21:41:34 +01:00
----
2011-09-15 17:33:45 +02:00
irc[6][s]://[nick[:password]@]irc.esempio.org[:porta][/#canale][,#canale[...]]
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
Esempio per entrare in '#weechat' e '#tizio' sul server 'irc.freenode.net',
porta predefinita (6667), con il nick 'caio':
2013-11-04 21:41:34 +01:00
----
2013-08-02 08:54:16 +02:00
$ weechat irc://caio@irc.freenode.net/#weechat,#tizio
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
2010-01-22 18:24:07 +01:00
[[irc_options]]
2013-11-04 21:41:34 +01:00
==== Opzioni (irc.conf)
2009-12-04 12:11:12 +01:00
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Sections:
// TRANSLATION MISSING
[width="100%",cols="3m,6m,16",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
| Section | Control command | Description
| look | /set irc.look.* | Look and feel
| color | /set irc.color.* | Colors
| network | /set irc.network.* | Network options
| msgbuffer | /set irc.msgbuffer.* | <<irc_target_buffer,Buffer di destinazione per i messaggi IRC>> (options can be added/removed in section)
| ctcp | /set irc.ctcp.* | <<irc_ctcp_replies,Risposte CTCP>> (options can be added/removed in section)
| ignore | <<command_irc_ignore,/ignore>> | Ignore people
| server_default | /set irc.server_default.* | Default values for servers (used when options in server are not defined)
| server | <<command_irc_server,/server>> +
/set irc.server.* | Servers
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Options:
2009-12-04 12:11:12 +01:00
include::autogen/user/irc_options.txt[]
2010-01-22 18:24:07 +01:00
[[irc_commands]]
2013-11-04 21:41:34 +01:00
==== Comandi
2009-12-04 12:11:12 +01:00
include::autogen/user/irc_commands.txt[]
2010-01-24 16:07:30 +01:00
[[irc_ssl_certificates]]
2013-11-04 21:41:34 +01:00
==== Certificati SSL
2010-01-24 16:07:30 +01:00
2010-01-26 18:17:09 +01:00
Al momento della connessione al server IRC con SSL, WeeChat verifica in
maniera predefinita che la connessione sia completamente fidata.
2010-01-24 16:07:30 +01:00
2010-01-26 18:17:09 +01:00
Esistono alcune opzioni per controllare la connessione SSL:
2010-01-24 16:07:30 +01:00
weechat.network.gnutls_ca_file::
2012-07-30 16:50:15 +02:00
path del file con il certificato delle autorità (predefinito: "%h/ssl/CAs.pem")
2010-01-24 16:07:30 +01:00
irc.server.xxx.ssl_cert::
2010-01-26 18:17:09 +01:00
file del certificato SSL usato per identificare automaticamente il proprio
nick ad esempio CertFP su oftc (a seguire)
2010-01-24 16:07:30 +01:00
irc.server.xxx.ssl_dhkey_size::
2010-01-26 18:17:09 +01:00
dimensione della chiave usata durante lo Scambio Chiavi Diffie-Hellman
(predefinita; 2048)
2010-01-24 16:07:30 +01:00
irc.server.xxx.ssl_verify::
2010-01-26 18:17:09 +01:00
verifica che la connessione SSL sia totalmente fidata (opzione attivata
in maniera predefinita)
2010-01-24 16:07:30 +01:00
[NOTE]
2010-01-26 18:17:09 +01:00
L'opzione "ssl_verify" è attivata per default, in questo modo la verifica è rigorosa
e potrebbe fallire, anche se funziona senza problemi con versioni precedenti
la 0.3.1.
2010-01-24 16:07:30 +01:00
[[irc_connect_oftc_with_certificate]]
2013-11-04 21:41:34 +01:00
===== Primo esempio: connessione a otfc e verifica del certificato
2010-01-24 16:07:30 +01:00
2010-01-26 18:17:09 +01:00
* Importare certificati nella shell:
2010-01-24 16:07:30 +01:00
2013-11-04 21:41:34 +01:00
----
2012-07-27 17:54:08 +02:00
$ mkdir -p ~/.weechat/ssl
2011-11-07 23:40:15 +01:00
$ wget -O ~/.weechat/ssl/CAs.pem http://www.spi-inc.org/ca/spi-cacert.crt
2013-11-04 21:41:34 +01:00
----
2010-01-24 16:07:30 +01:00
2010-01-26 18:17:09 +01:00
Nota: è possibile concatenare più certificati nel file CAs.pem.
2010-01-24 16:07:30 +01:00
2010-01-26 18:17:09 +01:00
* In WeeChat, con il server "otfc" già creato:
2010-01-24 16:07:30 +01:00
2013-11-04 21:41:34 +01:00
----
2010-01-24 16:07:30 +01:00
/connect oftc
2013-11-04 21:41:34 +01:00
----
2010-01-24 16:07:30 +01:00
[[irc_connect_oftc_with_certfp]]
2013-11-04 21:41:34 +01:00
===== Secondo esempio: connessione a otfc con CertFP
2010-01-24 16:07:30 +01:00
2010-01-26 18:17:09 +01:00
* Creare un certificato nella shell:
2010-01-24 16:07:30 +01:00
2013-11-04 21:41:34 +01:00
----
2012-07-27 17:54:08 +02:00
$ mkdir -p ~/.weechat/ssl
$ cd ~/.weechat/ssl
$ openssl req -nodes -newkey rsa:2048 -keyout nick.pem -x509 -days 365 -out nick.pem
2013-11-04 21:41:34 +01:00
----
2010-01-24 16:07:30 +01:00
2010-01-26 18:17:09 +01:00
* In WeeChat, con il server "otfc" già creato:
2010-01-24 16:07:30 +01:00
2013-11-04 21:41:34 +01:00
----
2010-02-03 20:49:30 +01:00
/set irc.server.oftc.ssl_cert "%h/ssl/nick.pem"
2010-01-24 16:07:30 +01:00
/connect oftc
/msg nickserv cert add
2013-11-04 21:41:34 +01:00
----
2010-01-24 16:07:30 +01:00
2010-01-26 18:17:09 +01:00
Per maggiori informazioni consultare http://www.oftc.net/oftc/NickServ/CertFP
2010-01-24 16:07:30 +01:00
2011-08-03 12:30:43 +02:00
[[irc_sasl_authentication]]
2013-11-04 21:41:34 +01:00
==== Autenticazione SASL
2011-08-03 12:30:43 +02:00
2013-05-01 10:02:11 +02:00
// TRANSLATION MISSING
WeeChat supports SASL authentication, using different mechanisms:
* 'plain': password in chiaro
// TRANSLATION MISSING
* 'dh-blowfish': blowfish encrypted password
// TRANSLATION MISSING
* 'dh-aes': AES encrypted password
* 'external': certificato SSL da lato client
2011-08-03 12:30:43 +02:00
2011-08-15 18:08:43 +02:00
Le opzioni nel server sono:
2011-08-03 12:30:43 +02:00
2013-05-01 10:02:11 +02:00
// TRANSLATION MISSING
* 'sasl_mechanism': meccanismo da usare (see above)
2011-08-15 18:08:43 +02:00
* 'sasl_timeout': timeout (in secondi) per l'autenticazione
2011-10-05 09:46:51 +02:00
* 'sasl_username': nome utente (nick)
2011-08-03 12:30:43 +02:00
* 'sasl_password': password
2011-08-15 18:08:43 +02:00
Se si desidera usare "dh-blowfish" in tutti i server:
2011-08-03 12:30:43 +02:00
2013-11-04 21:41:34 +01:00
----
2011-08-03 12:30:43 +02:00
/set irc.server_default.sasl_mechanism dh-blowfish
2013-11-04 21:41:34 +01:00
----
2011-08-03 12:30:43 +02:00
[NOTE]
2011-08-15 18:08:43 +02:00
La libreria "gcrypt" è richiesta per compilare WeeChat al fine di usare il
meccanismo "dh-blowfish" (consultare <<dependencies,dipendenze>>).
2011-08-03 12:30:43 +02:00
2011-07-14 13:42:26 +02:00
[[irc_tor_freenode]]
2013-11-04 21:41:34 +01:00
==== Connessione a Freenode con TOR/SASL
2011-07-14 13:42:26 +02:00
2011-07-20 10:38:39 +02:00
Oltre ad SSL, i server Freenode supportano connessioni con TOR
(https://www.torproject.org), una rete di tunnel virtuali che consente ad
utenti e gruppi di migliorare la propria privacy e la sicurezza su Internet.
2011-07-14 13:42:26 +02:00
2011-07-20 10:38:39 +02:00
Per prima cosa, assicurarsi che WeeChat sia compilato con
<<dependencies,libgcrypt11-dev>> (se compilato da sorgenti); non è
2011-08-03 12:30:43 +02:00
obbligatorio, ma "dh-blowfish" assicura una maggiore sicurezza rispetto al
2012-03-12 20:45:23 +01:00
sistema di autenticazione "plain" (in chiaro) con SASL.
2011-07-14 13:42:26 +02:00
2011-07-20 10:38:39 +02:00
Il primo passo consiste nell'installare TOR. Per Debian (e derivate):
2011-07-14 13:42:26 +02:00
2013-11-04 21:41:34 +01:00
----
2011-07-14 13:42:26 +02:00
$ sudo apt-get install tor
2013-11-04 21:41:34 +01:00
----
2011-07-14 13:42:26 +02:00
2011-07-20 10:38:39 +02:00
In WeeChat è necessario creare un proxy socks5 per il servizio TOR (nome
host/IP e porta dipendono dalla propria configurazione di TOR):
2011-07-14 13:42:26 +02:00
2013-11-04 21:41:34 +01:00
----
2011-07-14 13:42:26 +02:00
/proxy add tor socks5 127.0.0.1 9050
2013-11-04 21:41:34 +01:00
----
2011-07-14 13:42:26 +02:00
2011-07-20 10:38:39 +02:00
Ora, bisogna creare un nuovo server, ad esempio:
2011-07-14 13:42:26 +02:00
2013-11-04 21:41:34 +01:00
----
2011-07-14 13:42:26 +02:00
/server add freenode-tor p4fsi4ockecnea7l.onion
2013-11-04 21:41:34 +01:00
----
2011-07-14 13:42:26 +02:00
2011-07-20 10:38:39 +02:00
Impostare il proxy per TOR:
2011-07-14 13:42:26 +02:00
2013-11-04 21:41:34 +01:00
----
2011-07-14 13:42:26 +02:00
/set irc.server.freenode-tor.proxy "tor"
2013-11-04 21:41:34 +01:00
----
2011-07-14 13:42:26 +02:00
2011-07-20 10:38:39 +02:00
Impostare l'autenticazione SASL:
2011-07-14 13:42:26 +02:00
2013-11-04 21:41:34 +01:00
----
2011-07-14 13:42:26 +02:00
/set irc.server.freenode-tor.sasl_mechanism dh-blowfish
/set irc.server.freenode-tor.sasl_username "your_nickname"
/set irc.server.freenode-tor.sasl_password "your_password"
2013-11-04 21:41:34 +01:00
----
2011-07-14 13:42:26 +02:00
2011-07-20 10:38:39 +02:00
E alla fine, connettersi al server:
2011-07-14 13:42:26 +02:00
2013-11-04 21:41:34 +01:00
----
2011-07-14 13:42:26 +02:00
/connect freenode-tor
2013-11-04 21:41:34 +01:00
----
2011-07-14 13:42:26 +02:00
2011-07-20 10:38:39 +02:00
Per maggiori informazioni su Freenode e TOR:
http://freenode.net/irc_servers.shtml#tor
2011-07-14 13:42:26 +02:00
2010-01-24 16:07:30 +01:00
[[irc_smart_filter_join_part_quit]]
2013-11-04 21:41:34 +01:00
==== Filtro smart per i messaggi di entrata/uscita/disconnessione
2010-01-24 16:07:30 +01:00
2010-01-26 18:17:09 +01:00
Un filtro smart è disponibile per filtrare i messaggi di
entrata/uscita/disconnessione quando il nick non ha detto nulla durante
gli ultimi X minuti sul canale
2010-01-24 16:07:30 +01:00
2010-01-26 18:17:09 +01:00
Il filtro smart è abilitato per default, ma è necessario aggiungere un filtro
per nascondere le righe sul buffer, per esempio:
2010-01-24 16:07:30 +01:00
2013-11-04 21:41:34 +01:00
----
2010-01-24 16:07:30 +01:00
/filter add irc_smart * irc_smart_filter *
2013-11-04 21:41:34 +01:00
----
2010-01-24 16:07:30 +01:00
2010-01-26 18:17:09 +01:00
È possibile creare il filtro solo per un canale o per i canali che iniziano con
lo stesso nome (consultare `/help filter`):
2010-01-24 16:07:30 +01:00
2013-11-04 21:41:34 +01:00
----
2010-01-24 16:07:30 +01:00
/filter add irc_smart_weechat irc.freenode.#weechat irc_smart_filter *
/filter add irc_smart_weechats irc.freenode.#weechat* irc_smart_filter *
2013-11-04 21:41:34 +01:00
----
2010-01-24 16:07:30 +01:00
2010-01-26 18:17:09 +01:00
È possibile nascondere solo i messaggi di entrata o di
uscita/disconnessione con le seguenti opzioni:
2010-01-24 16:07:30 +01:00
2013-11-04 21:41:34 +01:00
----
2010-01-24 16:07:30 +01:00
/set irc.look.smart_filter_join on
/set irc.look.smart_filter_quit on
2013-11-04 21:41:34 +01:00
----
2010-01-24 16:07:30 +01:00
2010-01-26 18:17:09 +01:00
È possibile impostare un ritardo (in minuti):
2010-01-24 16:07:30 +01:00
2013-11-04 21:41:34 +01:00
----
2010-01-24 16:07:30 +01:00
/set irc.look.smart_filter_delay 5
2013-11-04 21:41:34 +01:00
----
2010-01-24 16:07:30 +01:00
2010-01-26 18:17:09 +01:00
Se un nick non ha parlato durante gli ultimi 5 minuti, i suoi ingressi e/o
uscite/disconnessioni verranno nascosti sul canale.
2010-01-24 16:07:30 +01:00
2010-01-11 18:29:59 +01:00
[[irc_ctcp_replies]]
2013-11-04 21:41:34 +01:00
==== Risposte CTCP
2009-12-04 12:11:12 +01:00
È possibile personalizzare le risposte CTCP, o bloccare alcune richieste CTCP
(non rispondere).
Ad esempio, per personalizzare la richiesta CTCP "VERSIONE", utilizzare il
seguente comando:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/set irc.ctcp.version "Uso WeeChat $version, fico!"
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
Se si desidera bloccare CTCP "VERSIONE" (non rispondere ad una query),
allora basta impostare una stringa vuota:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/set irc.ctcp.version ""
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
Anche un CTCP sconosciuto può essere personalizzato, per esempio si
può rispondere "BLABLA":
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/set irc.ctcp.blabla "Questa è la mia risposta a CTCP BLABLA"
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
È possibile personalizzare CTCP per un solo server, utilizzando il suo nome
interno prima del nome CTCP:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/set irc.ctcp.freenode.version "WeeChat $version (per freenode)"
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
Se si desidera ripristinare la risposta CTCP standard, allora disabilitare
l'opzione:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/unset irc.ctcp.version
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
I codici seguenti possono essere utilizzati nelle stringhe e vengono estese
automaticamente da WeeChat quando si risponde alle CTCP
2012-12-16 23:11:02 +01:00
// TRANSLATION MISSING ($versiongit + $git + $username (name))
2013-10-20 11:39:11 +02:00
[width="100%",cols="^2l,4,8",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-07-01 22:08:14 +02:00
| Codice | Descrizione | Valore/esempio
2013-10-20 11:39:11 +02:00
| $clientinfo | Elenco di CTCP supportate | `ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION`
| $version | Versione di WeeChat | `0.4.0-dev`
| $versiongit | Versione di WeeChat + git version ^(1)^ | `0.4.0-dev (git: v0.3.9-104-g7eb5cc4)`
| $git | Git version ^(1)^ | `v0.3.9-104-g7eb5cc4`
| $compilation | Data di compilazione di WeeChat | `Dec 16 2012`
| $osinfo | Informazioni sull'OS | `Linux 2.6.32-5-amd64 / x86_64`
| $site | Sito di WeeChat | `http://www.weechat.org/`
| $download | Sito di WeeChat, pagina di download | `http://www.weechat.org/download`
| $time | Data/ora correnti | `Sun, 16 Dec 2012 10:40:48 +0100`
| $username | Nome utente sul server IRC | `name`
| $realname | Nome reale sul server IRC | `John Doe`
2013-11-04 21:41:34 +01:00
|===
2009-12-04 12:11:12 +01:00
2012-12-16 23:11:02 +01:00
// TRANSLATION MISSING
[NOTE]
2013-07-01 22:08:14 +02:00
^(1)^ The git version is the output of command `git describe`. It is known only
if WeeChat has been compiled inside the git repository and if git was installed.
2012-12-16 23:11:02 +01:00
2009-12-04 12:11:12 +01:00
Se le opzioni CTCP non sono definite (comportamento predefinito),
le risposte CTCP sono:
2012-12-16 23:11:02 +01:00
// TRANSLATION MISSING ($username (name))
2013-10-20 11:39:11 +02:00
[width="100%",cols="^2,4,8",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-10-20 11:39:11 +02:00
| CTCP | Formato risposta | Esempio
| CLIENTINFO | `$clientinfo` | `ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION`
| FINGER | `WeeChat $versiongit` | `WeeChat 0.4.0-dev (git: v0.3.9-104-g7eb5cc4)`
| SOURCE | `$download` | `http://www.weechat.org/download`
| TIME | `$time` | `Sun, 16 Dec 2012 10:40:48 +0100`
| USERINFO | `$username ($realname)` | `name (John Doe)`
| VERSION | `WeeChat $versiongit ($compilation)` | `WeeChat 0.4.0-dev (git: v0.3.9-104-g7eb5cc4) (Dec 16 2012)`
2013-11-04 21:41:34 +01:00
|===
2009-12-04 12:11:12 +01:00
2010-01-11 18:29:59 +01:00
[[irc_target_buffer]]
2013-11-04 21:41:34 +01:00
==== Buffer di destinazione per i messaggi IRC
2009-12-31 19:29:26 +01:00
2010-01-10 21:22:08 +01:00
È possibile personalizzare il buffer di destinazione per i messaggi IRC
(buffer usato per visualizzare messaggi) con l'opzione `irc.msgbuffer.*`.
2009-12-31 19:29:26 +01:00
2010-01-10 21:22:08 +01:00
Per alcuni messaggi IRC (elenco in basso), si possono usare i seguenti
valori:
2009-12-31 19:29:26 +01:00
current::
2010-01-10 21:22:08 +01:00
buffer attivo (se è il buffer IRC, oppure sul buffer del server, come
predefinito)
2009-12-31 19:29:26 +01:00
private::
2010-01-10 21:22:08 +01:00
buffer privato per il nick, o il buffer corrente se non trovato
(in base all'opzione 'irc.look.msgbuffer_fallback')
2009-12-31 19:29:26 +01:00
2011-02-01 19:00:09 +01:00
server::
2011-03-21 16:39:13 +01:00
buffer del server
2011-02-01 19:00:09 +01:00
2009-12-31 19:29:26 +01:00
weechat::
2010-01-10 21:22:08 +01:00
Il buffer "core" di WeeChat
2009-12-31 19:29:26 +01:00
2011-03-21 16:39:13 +01:00
Quando l'opzione non è impostata (default), WeeChat sceglie il buffer
appropriato, di solito quello del server o del canale.
2009-12-31 19:29:26 +01:00
2010-01-10 21:22:08 +01:00
Ecco una lista incompleta dei messaggi IRC o degli alias che è possibile
personalizzare:
2009-12-31 19:29:26 +01:00
2011-02-01 19:00:09 +01:00
[width="60%",cols="^1m,^3m,8",options="header"]
2013-11-04 21:41:34 +01:00
|===
2011-02-01 19:00:09 +01:00
| messaggio | alias | descrizione
2011-03-21 16:39:13 +01:00
| error | | errore
2011-02-01 19:00:09 +01:00
| invite | | invitato su un canale
2012-02-10 08:25:52 +01:00
| join | | ingresso nel canale
2011-02-01 19:00:09 +01:00
| kick | | kick
| kill | | kill
| mode | | mode
| notice | | notifica
| part | | part
| quit | | quit
| topic | | topic
| wallops | | wallops
2012-02-10 08:25:52 +01:00
| | ctcp | ctcp (inviato o ricevuto, in un messaggio privato o di notifica)
2011-02-01 19:00:09 +01:00
| 221 | | stringa modalità utente
| 275 | whois | whois (connessione sicura)
| 301 | whois | whois (assente)
| 303 | | ison
| 305 | unaway | presente
| 306 | away | assente
| 307 | whois | whois (nick registrato)
| 310 | whois | whois (modalità aiuto)
| 311 | whois | whois (utente)
| 312 | whois | whois (server)
| 313 | whois | whois (operatore)
| 314 | whowas | whowas
| 315 | who | who (fine)
| 317 | whois | whois (inattività)
| 318 | whois | whois (fine)
| 319 | whois | whois (canali)
| 320 | whois | whois (utente identificato)
| 321 | list | list (inizio)
| 322 | list | list (canale)
| 323 | list | list (fine)
| 326 | whois | whois (con privilegi di operatore)
| 327 | whois | whois (host)
2011-03-21 16:39:13 +01:00
| 328 | | URL del canale
| 329 | | data di creazione del canale
2011-02-01 19:00:09 +01:00
| 330 | whois | whois (loggato come)
2011-03-21 16:39:13 +01:00
| 331 | | nessun argomento per il canale
| 332 | | argomento del canale
| 333 | | informazioni sull'argomento
2011-02-01 19:00:09 +01:00
| 335 | whois | whois (è un bot su)
| 338 | whois | whois (host)
| 341 | | invito
2011-10-06 13:11:44 +02:00
| 343 | whois | whois (è opered come)
2011-02-01 19:00:09 +01:00
| 344 | reop | reop sul canale
| 345 | reop | reop sul canale (fine)
2011-03-21 16:39:13 +01:00
| 346 | invitelist | lista di inviti
| 347 | invitelist | lista di inviti (fine)
| 348 | exceptionlist | lista di eccezioni
| 349 | exceptionlist | lista di eccezioni (fine)
2011-02-01 19:00:09 +01:00
| 351 | | versione del server
| 352 | who | who
2011-03-21 16:39:13 +01:00
| 353 | names | elenco di utenti su un canale
| 366 | names | fine dell'elenco /names
| 367 | banlist | elenco dei ban
| 368 | banlist | fine della lista dei ban
2011-02-01 19:00:09 +01:00
| 369 | whowas | whowas (fine)
| 378 | whois | whois (connesso da)
| 379 | whois | whois (usa le modalità)
| 432 | | nick errato
| 433 | | nick già utilizzato
| 438 | | non autorizzato a cambiare nick
| 671 | whois | whois (connessione sicura)
2012-11-02 18:15:24 +01:00
// TRANSLATION MISSING
| 728 | quietlist | quiet list
// TRANSLATION MISSING
| 729 | quietlist | end of quiet list
2014-01-23 11:31:57 +01:00
// TRANSLATION MISSING
| 732 | monitor | list of monitored nicks
// TRANSLATION MISSING
| 733 | monitor | list of monitored nicks (end)
2011-02-01 19:00:09 +01:00
| 901 | | ora si è loggati
2013-11-04 21:41:34 +01:00
|===
2009-12-31 19:29:26 +01:00
2010-01-10 21:22:08 +01:00
Anche altri comandi numerici possono essere personalizzati.
2009-12-31 19:29:26 +01:00
2010-01-10 21:22:08 +01:00
Il messaggio può essere preceduto dal nome del server per essere più
precisi (ad esempio: `freenode.whois`).
2009-12-31 19:29:26 +01:00
2010-01-10 21:22:08 +01:00
Alcuni esempi:
2009-12-31 19:29:26 +01:00
2010-01-10 21:22:08 +01:00
* visualizza il risultato di `/whois` su un buffer privato:
2009-12-31 19:29:26 +01:00
2013-11-04 21:41:34 +01:00
----
2009-12-31 19:29:26 +01:00
/set irc.msgbuffer.whois private
2013-11-04 21:41:34 +01:00
----
2009-12-31 19:29:26 +01:00
2010-01-10 21:22:08 +01:00
* ripristina il buffer predefinito per il whois (buffer del server):
2009-12-31 19:29:26 +01:00
2013-11-04 21:41:34 +01:00
----
2009-12-31 19:29:26 +01:00
/unset irc.msgbuffer.whois
2013-11-04 21:41:34 +01:00
----
2009-12-31 19:29:26 +01:00
2010-01-10 21:22:08 +01:00
* visualizza inviti sul buffer corrente, solo per il server "freenode":
2009-12-31 19:29:26 +01:00
2013-11-04 21:41:34 +01:00
----
2009-12-31 19:29:26 +01:00
/set irc.msgbuffer.freenode.invite current
2013-11-04 21:41:34 +01:00
----
2009-12-31 19:29:26 +01:00
2010-01-10 21:22:08 +01:00
* visualizza messaggio "303" (ison) sul buffer "core" di WeeChat:
2009-12-31 19:29:26 +01:00
2013-11-04 21:41:34 +01:00
----
2009-12-31 19:29:26 +01:00
/set irc.msgbuffer.303 weechat
2013-11-04 21:41:34 +01:00
----
2009-12-31 19:29:26 +01:00
2009-12-04 12:11:12 +01:00
[[logger_plugin]]
2013-11-04 21:41:34 +01:00
=== Plugin Logger
2009-12-04 12:11:12 +01:00
Il plugin Logger consente di salvare il contenuto dei buffer su file, con
opzioni a proposito su cosa e come viene salvato.
2010-01-22 18:24:07 +01:00
[[logger_options]]
2013-11-04 21:41:34 +01:00
==== Opzioni (logger.conf)
2009-12-04 12:11:12 +01:00
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Sections:
// TRANSLATION MISSING
[width="100%",cols="3m,6m,16",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
| Section | Control command | Description
| look | /set logger.look.* | Look and feel
| color | /set logger.color.* | Colors
| file | /set logger.file.* | Options for log files
| level | /set logger.level.* | Log level by buffer (options can be added/removed in section)
| mask | /set logger.mask.* | Filename mask by buffer (options can be added/removed in section)
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Options:
2009-12-04 12:11:12 +01:00
include::autogen/user/logger_options.txt[]
2010-01-22 18:24:07 +01:00
[[logger_commands]]
2013-11-04 21:41:34 +01:00
==== Comandi
2009-12-04 12:11:12 +01:00
include::autogen/user/logger_commands.txt[]
2010-01-22 18:24:07 +01:00
[[logger_log_levels]]
2013-11-04 21:41:34 +01:00
==== Livelli di log
2009-12-04 12:11:12 +01:00
Il logging viene effettuato con un livello per ogni buffer. Il livello
predefinito è il 9 (registra tutti i messaggi visualizzati sul buffer).
È possibile cambiare il livello per un buffer, oppure per un gruppo di buffer.
I livelli possibili sono da 0 a 9. Zero vuol dire "non registrare nulla" mentre
9 "registra tutto".
I plugin utilizzano livelli diversi per i messaggi visualizzati.
Il plugin IRC usa i seguenti livelli:
* livello 1: messaggio da un utente (su canale o privato)
* livello 2: cambio nick (proprio o di qualcun altro)
* livello 3: ogni messaggio del server (esclui entrata/uscita/disconnessione)
* livello 4: messaggio del server entrata/uscita/disconnessione
Se viene impostato il livello 3 per un canale IRC, WeeChat registrerà
tutti i messaggi, ma non quelli di entrata/uscita/disconnessione.
Alcuni esempi:
* imposta il livello 3 per il canale IRC #weechat:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/set logger.level.irc.freenode.#weechat 3
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
* set level 3 for freenode server buffer:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/set logger.level.irc.server.freenode 3
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
* imposta il livello 3 per tutti i canali sul server freenode:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/set logger.level.irc.freenode 3
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
* imposta il livello 2 per tutti i buffer IRC:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/set logger.level.irc 2
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
2010-01-22 18:24:07 +01:00
[[logger_filenames_masks]]
2013-11-04 21:41:34 +01:00
==== Mask per il nome file
2009-12-04 12:11:12 +01:00
È possibile definire un mask per il nome del file di ogni buffer, ed utilizzare
le variabili buffer locali per costruire il nome del file. Per visualizzare le
variabili locali per il buffer corrente:
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/buffer localvar
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
2010-12-12 09:57:28 +01:00
Ad esempio, sul buffer "irc.freenode.#weechat", WeeChat cercherà un mask con il
nome dell'opzione, in quest'ordine:
2010-12-11 22:03:21 +01:00
2013-11-04 21:41:34 +01:00
----
2010-12-11 22:03:21 +01:00
logger.mask.irc.freenode.#weechat
logger.mask.irc.freenode
logger.mask.irc
logger.file.mask
2013-11-04 21:41:34 +01:00
----
2010-12-11 22:03:21 +01:00
2010-12-12 09:57:28 +01:00
Ciò vuol dire che si hanno dei mask specifici per alcuni server
IRC ("logger.mask.irc.freenode") o per un plugin ("logger.mask.irc").
2010-12-11 22:03:21 +01:00
[[logger_files_by_date]]
2013-11-04 21:41:34 +01:00
===== File di log per data
2010-12-11 22:03:21 +01:00
2010-12-12 09:57:28 +01:00
Per avere file di log per data, è possibile usare specificatori data/ora
nei mask (consultare `man stfrtime` per i formati), ad esempio:
2010-12-11 22:03:21 +01:00
2013-11-04 21:41:34 +01:00
----
2010-12-11 22:03:21 +01:00
/set logger.file.mask "%Y/%m/$plugin.$name.weechatlog"
2013-11-04 21:41:34 +01:00
----
2010-12-11 22:03:21 +01:00
2010-12-12 09:57:28 +01:00
Si avranno i seguenti file:
2010-12-11 22:03:21 +01:00
2013-11-04 21:41:34 +01:00
....
2010-12-11 22:03:21 +01:00
~/.weechat/
|--- logs/
|--- 2010/
|--- 11/
| irc.server.freenode.weechatlog
| irc.freenode.#weechat.weechatlog
|--- 2010/
|--- 12/
| irc.server.freenode.weechatlog
| irc.freenode.#weechat.weechatlog
2013-11-04 21:41:34 +01:00
....
2010-12-11 22:03:21 +01:00
[[logger_irc_files_by_server_channel]]
2013-11-04 21:41:34 +01:00
===== File di log IRC per server e canale
2010-12-11 22:03:21 +01:00
2012-07-30 16:50:15 +02:00
Se si desidera avere una directory per il server IRC ed una per il canale
2010-12-12 09:57:28 +01:00
al suo interno:
2009-12-04 12:11:12 +01:00
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
/set logger.mask.irc "irc/$server/$channel.weechatlog"
2013-11-04 21:41:34 +01:00
----
2009-12-04 12:11:12 +01:00
2010-12-12 09:57:28 +01:00
Si avranno i seguenti file:
2009-12-04 12:11:12 +01:00
2013-11-04 21:41:34 +01:00
....
2009-12-04 12:11:12 +01:00
~/.weechat/
|--- logs/
|--- irc/
|--- freenode/
| freenode.weechatlog
| #weechat.weechatlog
2010-12-11 22:03:21 +01:00
| #mychan.weechatlog
2009-12-04 12:11:12 +01:00
|--- oftc/
| oftc.weechatlog
2010-12-11 22:03:21 +01:00
| #chan1.weechatlog
| #chan2.weechatlog
2013-11-04 21:41:34 +01:00
....
2009-12-04 12:11:12 +01:00
2010-12-06 12:00:32 +01:00
[[relay_plugin]]
2013-11-04 21:41:34 +01:00
=== Plugin Relay
2010-12-06 12:00:32 +01:00
2010-12-12 09:57:28 +01:00
Il plugin Relay viene utilizzato per inoltrare i dati via rete, facendo uso di
2011-12-27 18:50:31 +01:00
protocolli differenti:
2010-12-06 12:00:32 +01:00
2012-01-16 20:10:37 +01:00
* 'irc': proxy IRC: usato per condividere le connessioni ai server IRC con uno
o più client IRC
* 'weechat': protocollo usato dalle interfacce remote per mostrare ed interagire
con WeeChat (ad esempio QWeeChat)
2010-12-06 12:00:32 +01:00
[[relay_options]]
2013-11-04 21:41:34 +01:00
==== Opzioni (relay.conf)
2010-12-06 12:00:32 +01:00
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Sections:
// TRANSLATION MISSING
[width="100%",cols="3m,6m,16",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
| Section | Control command | Description
| look | /set relay.look.* | Look and feel
| color | /set relay.color.* | Colors
| network | /set relay.network.* | Network options
| irc | /set relay.irc.* | Options specific to irc protocol (irc proxy)
| port | <<command_relay_relay,/relay add>> +
/set relay.port.* | Ports used for relay (irc and weechat protocols) (options can be added/removed in section)
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Options:
2010-12-06 12:00:32 +01:00
include::autogen/user/relay_options.txt[]
[[relay_commands]]
2013-11-04 21:41:34 +01:00
==== Comandi
2010-12-06 12:00:32 +01:00
include::autogen/user/relay_commands.txt[]
2013-02-23 08:33:38 +01:00
// TRANSLATION MISSING
[[relay_password]]
2013-11-04 21:41:34 +01:00
==== Password
2011-12-27 18:50:31 +01:00
2013-02-23 08:33:38 +01:00
It is highly recommended to set a password for relay, with command:
2011-12-27 18:50:31 +01:00
2013-11-04 21:41:34 +01:00
----
2012-01-16 20:10:37 +01:00
/set relay.network.password "miapass"
2013-11-04 21:41:34 +01:00
----
2011-12-27 18:50:31 +01:00
2013-02-23 08:33:38 +01:00
This password is used for 'irc' and 'weechat' protocols.
2011-12-27 18:50:31 +01:00
2012-07-27 17:54:08 +02:00
[[relay_ssl]]
2013-11-04 21:41:34 +01:00
==== SSL
2012-07-27 17:54:08 +02:00
2012-07-30 16:50:15 +02:00
È possibile usare SSL creando un certificato e una chiave privata, e usando il
prefisso "ssl." nel nome del protocollo.
2012-07-27 17:54:08 +02:00
2012-07-30 16:50:15 +02:00
Il file predefinito per il certificato/chiave è '~/.weechat/ssl/relay.pem'
(opzione <<option_relay.network.ssl_cert_key,relay.network.ssl_cert_key>>).
2012-07-27 17:54:08 +02:00
2012-07-30 16:50:15 +02:00
È possibile creare un certificato e una chiave privata con i seguenti comandi:
2012-07-27 17:54:08 +02:00
2013-11-04 21:41:34 +01:00
----
2012-07-27 17:54:08 +02:00
$ mkdir -p ~/.weechat/ssl
$ cd ~/.weechat/ssl
$ openssl req -nodes -newkey rsa:2048 -keyout relay.pem -x509 -days 365 -out relay.pem
2013-11-04 21:41:34 +01:00
----
2012-07-27 17:54:08 +02:00
2012-07-30 16:50:15 +02:00
Se WeeChat è già in esecuzione, è possibile ricaricare il certificato e la
chiave privata con il comando:
2012-07-27 17:54:08 +02:00
2013-11-04 21:41:34 +01:00
----
2012-07-27 17:54:08 +02:00
/relay sslcertkey
2013-11-04 21:41:34 +01:00
----
2012-07-27 17:54:08 +02:00
2013-02-23 08:33:38 +01:00
// TRANSLATION MISSING
[[relay_irc_proxy]]
2013-11-04 21:41:34 +01:00
==== Proxy IRC
2013-02-23 08:33:38 +01:00
The Relay plugin can act as an IRC proxy: it will simulate an IRC server, and
you can connect to WeeChat with any other IRC client (including WeeChat itself).
You can define one port by IRC server, or one generic port for all servers.
2012-07-27 17:54:08 +02:00
2013-02-23 08:33:38 +01:00
When using one port for all servers, the client must send the internal name of
server in the IRC "PASS" command, with this format:
2013-11-04 21:41:34 +01:00
----
2013-02-23 08:33:38 +01:00
PASS server:miapass
2013-11-04 21:41:34 +01:00
----
2013-02-23 08:33:38 +01:00
Example: IRC proxy with SSL for any server (client will choose):
2013-11-04 21:41:34 +01:00
----
2013-02-23 08:33:38 +01:00
/relay add ssl.irc 8000
2013-11-04 21:41:34 +01:00
----
2013-02-23 08:33:38 +01:00
Example: IRC proxy without SSL only for server "freenode":
2013-11-04 21:41:34 +01:00
----
2013-02-23 08:33:38 +01:00
/relay add irc.freenode 8000
2013-11-04 21:41:34 +01:00
----
2013-02-23 08:33:38 +01:00
Now you can connect on port 8000 with any IRC client using server password
"miapass" (or "freenode:miapass" if no server was specified in the relay).
[[relay_weechat_protocol]]
2013-11-04 21:41:34 +01:00
==== Protocollo WeeChat
2013-02-23 08:33:38 +01:00
Il plugin Relay può inviare dati alle interfacce remote usando il protocollo
WeeChat.
2013-11-07 20:51:27 +01:00
// TRANSLATION MISSING
You can connect with a remote interface, see the list on download page:
http://weechat.org/download
[IMPORTANT]
// TRANSLATION MISSING
WeeChat itself can NOT connect to another WeeChat with this protocol.
2013-02-23 08:33:38 +01:00
Ad esempio:
2013-11-04 21:41:34 +01:00
----
2013-02-23 08:33:38 +01:00
/relay add weechat 9000
2013-11-04 21:41:34 +01:00
----
2013-02-23 08:33:38 +01:00
Ora è possibile connettersi sulla porta 9000 con un'interfaccia remota usando la
password "miapass".
2012-07-27 17:54:08 +02:00
2013-02-10 20:22:13 +01:00
// TRANSLATION MISSING
[[relay_websocket]]
2013-11-04 21:41:34 +01:00
==== WebSocket
2013-02-10 20:22:13 +01:00
WebSocket protocol (http://tools.ietf.org/html/rfc6455[RFC 6455]) is supported
in Relay plugin for all protocols.
The WebSocket handshake is automatically detected and socket becomes ready for
WebSocket if required headers are found in handshake and if origin is allowed
(see option
<<option_relay.network.websocket_allowed_origins,relay.network.websocket_allowed_origins>>).
A WebSocket can be opened in a HTML5 with a single line of JavaScript:
[source,js]
2013-11-04 21:41:34 +01:00
----
2013-02-23 08:33:38 +01:00
websocket = new WebSocket("ws://server.com:9000/weechat");
2013-11-04 21:41:34 +01:00
----
2013-02-10 20:22:13 +01:00
2013-02-23 08:33:38 +01:00
The port (9000 in example) is the port defined in Relay plugin.
The URI must always end with "/weechat" (for 'irc' and 'weechat' protocols).
2013-02-10 20:22:13 +01:00
2010-08-11 15:43:20 +02:00
[[rmodifier_plugin]]
2013-11-04 21:41:34 +01:00
=== Plugin Rmodifier
2010-08-11 15:43:20 +02:00
2010-09-22 21:44:07 +02:00
Il plugin Rmodifier consente di cambiare le stringhe del modificatore
utilizzando le espressioni regolari. Si usa tipicamente per nascondere la
password quando viene digitata, o quando WeeChat la salva nella cronologia dei
comandi. Ad esempio, è possibile sostituire ogni carattere in questa password
2011-08-03 20:10:11 +02:00
con `*`.
2010-08-11 15:43:20 +02:00
[[rmodifier_options]]
2013-11-04 21:41:34 +01:00
==== Opzioni (rmodifier.conf)
2010-08-11 15:43:20 +02:00
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Sections:
// TRANSLATION MISSING
[width="100%",cols="3m,6m,16",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
| Section | Control command | Description
| look | /set rmodifier.look.* | Look and feel
| modifier | <<command_rmodifier_rmodifier,/rmodifier add>> +
/set rmodifier.modifier.* | Rmodifiers
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Options:
2010-08-11 15:43:20 +02:00
include::autogen/user/rmodifier_options.txt[]
[[rmodifier_commands]]
2013-11-04 21:41:34 +01:00
==== Comandi
2010-08-11 15:43:20 +02:00
include::autogen/user/rmodifier_commands.txt[]
[[rmodifier_creation]]
2013-11-04 21:41:34 +01:00
==== Creazione di Rmodifier
2010-08-11 15:43:20 +02:00
2010-09-22 21:44:07 +02:00
Un rmodifier è costituito da tre elementi:
2010-08-11 15:43:20 +02:00
2010-09-22 21:44:07 +02:00
. uno o più "modificatori"
. un'espressione regolare per catturare i "gruppi"
. una stringa che descriva l'output facendo uso di "gruppi" catturati nelle
espressioni regolari
2010-08-11 15:43:20 +02:00
2010-09-22 21:44:07 +02:00
Per un elenco di modificatori usati da WeeChat o dai plugin, consultare
2010-08-14 12:04:58 +02:00
'WeeChat Plugin API Reference', function 'weechat_hook_modifier'.
2010-08-11 15:43:20 +02:00
2010-09-22 21:44:07 +02:00
Per ogni gruppo catturato, sono consentite le seguenti azioni:
2010-08-11 15:43:20 +02:00
2010-09-22 21:44:07 +02:00
* mantenere il gruppo così com'è (usando un numero per gruppo)
* sostituire tutti i caratteri nel gruppo per nascondere il contenuto (numero
2011-08-03 20:10:11 +02:00
del gruppo + `*`)
2010-09-22 21:44:07 +02:00
* rimuovere il gruppo (se il gruppo non viene utilizzato nella stringa)
2010-08-11 15:43:20 +02:00
2010-09-22 21:44:07 +02:00
Esempio di rmodifier predefinito per il comando `/oper`:
2010-08-11 15:43:20 +02:00
2010-09-22 21:44:07 +02:00
* modifier: `history_add,input_text_display`
** `history_add`: chiamato quando WeeChat conserva il comando nella cronologia
** `input_text_display`: chiamato quando la riga di comando è cambiata
(valida solo a video, non per il contenuto della riga di comando)
* espressione regolare: `^(/oper +\S+ +)(.*)`
* gruppi: `1,2*`
2010-08-11 15:43:20 +02:00
2010-09-22 21:44:07 +02:00
Ad ogni chiamata dei modificatori "history_add" o "input_text_display", viene
verificata l'espressione regolare. Se la stringa coincide, viene sostituita
dai gruppi catturati, come definito nella stringa con i gruppi.
2010-08-11 15:43:20 +02:00
2010-09-22 21:44:07 +02:00
In questo esempio, il numero 1 resta così com'è, e sostituiamo tutti i
caratteri del gruppo 2 con il carattere di sostituzione definito nella
configurazione (opzione 'rmodifier.look.hide_char').
2010-08-11 15:43:20 +02:00
2011-07-20 10:38:39 +02:00
Se la riga di comando contiene: `/oper nick password` allora sullo schermo diventa:
2010-08-11 15:43:20 +02:00
`/oper nick ********`.
2009-12-04 12:11:12 +01:00
[[scripts_plugins]]
2013-11-04 21:41:34 +01:00
=== Plugin per gli script
2009-12-04 12:11:12 +01:00
2011-10-26 19:25:51 +02:00
WeeChat fornisce 6 plugin per lo scripting: Python, Perl, Ruby, Lua, Tcl, Guile
(scheme).
2011-10-21 12:18:48 +02:00
Questi plugin possono caricare, eseguire e scaricare gli script per questi
2009-12-04 12:11:12 +01:00
linguaggi.
2012-08-14 18:29:32 +02:00
// TRANSLATION MISSING
Another plugin called "script" is a scripts manager and is used to load/unload
scripts of any language, and install/remove scripts of WeeChat scripts
2013-05-23 15:21:41 +02:00
repository, which are visible at this URL: http://weechat.org/scripts
2012-08-14 18:29:32 +02:00
2009-12-04 12:11:12 +01:00
Per maggiori informazioni su come scrivere gli script, o le API WeeChat
per gli script, consultare la 'Guida allo Scripting di WeeChat'.
2012-08-14 18:29:32 +02:00
// TRANSLATION MISSING
[[script_options]]
2013-11-04 21:41:34 +01:00
==== Script options (script.conf)
2012-08-14 18:29:32 +02:00
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Sections:
// TRANSLATION MISSING
[width="100%",cols="3m,6m,16",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
| Section | Control command | Description
| look | /set script.look.* | Look and feel
| color | /set script.color.* | Colors
| scripts | /set script.scripts.* | Options for download of scripts
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Options:
2012-08-14 18:29:32 +02:00
include::autogen/user/script_options.txt[]
[[script_commands]]
2013-11-04 21:41:34 +01:00
==== Comandi Script
2012-08-14 18:29:32 +02:00
include::autogen/user/script_commands.txt[]
2009-12-04 12:11:12 +01:00
2010-01-22 18:24:07 +01:00
[[python_commands]]
2013-11-04 21:41:34 +01:00
==== Comandi Python
2009-12-04 12:11:12 +01:00
include::autogen/user/python_commands.txt[]
2011-10-26 19:25:51 +02:00
[[perl_commands]]
2013-11-04 21:41:34 +01:00
==== Comandi Perl
2011-10-26 19:25:51 +02:00
include::autogen/user/perl_commands.txt[]
2010-01-22 18:24:07 +01:00
[[ruby_commands]]
2013-11-04 21:41:34 +01:00
==== Comandi Ruby
2009-12-04 12:11:12 +01:00
include::autogen/user/ruby_commands.txt[]
2010-01-22 18:24:07 +01:00
[[lua_commands]]
2013-11-04 21:41:34 +01:00
==== Comandi Lua
2009-12-04 12:11:12 +01:00
include::autogen/user/lua_commands.txt[]
2010-01-22 18:24:07 +01:00
[[tcl_commands]]
2013-11-04 21:41:34 +01:00
==== Comandi Tcl
2009-12-04 12:11:12 +01:00
include::autogen/user/tcl_commands.txt[]
2011-10-26 19:25:51 +02:00
[[guile_commands]]
2013-11-04 21:41:34 +01:00
==== Comandi Guile
2011-10-26 19:25:51 +02:00
include::autogen/user/guile_commands.txt[]
2009-12-04 12:11:12 +01:00
[[xfer_plugin]]
2013-11-04 21:41:34 +01:00
=== Plugin Xfer
2009-12-04 12:11:12 +01:00
2010-03-13 14:22:24 +01:00
Il plugin Xfer fornisce:
2009-12-04 12:11:12 +01:00
* chat diretta (tra due host, senza server): per esempio "DCC Chat"
tramite plugin IRC
* trasferimento file, per esempio "DCC" tramite il plugin IRC
2010-01-22 18:24:07 +01:00
[[xfer_options]]
2013-11-04 21:41:34 +01:00
==== Opzioni (xfer.conf)
2009-12-04 12:11:12 +01:00
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Sections:
// TRANSLATION MISSING
[width="100%",cols="3m,6m,16",options="header"]
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
| Section | Control command | Description
| look | /set xfer.look.* | Look and feel
| color | /set xfer.color.* | Colors
| network | /set xfer.network.* | Network options
| file | /set xfer.file.* | Options for files sent/received
2013-11-04 21:41:34 +01:00
|===
2013-08-07 22:04:32 +02:00
// TRANSLATION MISSING
Options:
2009-12-04 12:11:12 +01:00
include::autogen/user/xfer_options.txt[]
2010-01-22 18:24:07 +01:00
[[xfer_commands]]
2013-11-04 21:41:34 +01:00
==== Comandi
2009-12-04 12:11:12 +01:00
include::autogen/user/xfer_commands.txt[]
[[support]]
2013-11-04 21:41:34 +01:00
== Supporto
2009-12-04 12:11:12 +01:00
2011-07-20 10:38:39 +02:00
Prima di chiedere supporto, assicurarsi di aver letto la documentazione e le FAQ
2009-12-04 12:11:12 +01:00
fornite con WeeChat (la documentazione è questo documento, se non sono state
lette tutte le righe prima di questa frase, è possibile ricominciare!).
Per ricevere supporto:
* IRC: server 'irc.freenode.net', canali '#weechat' (inglese) e
'#weechat-fr' (francese)
* Mailing list:
** sottoscrizione: http://mail.nongnu.org/mailman/listinfo/weechat-support
** inviare una mail a weechat-support@nongnu.org
** archivi: http://mail.nongnu.org/archive/html/weechat-support