Questo manuale documenta il client di chat WeeChat, ed è parte del programma stesso.

È possibile trovare l’ultima versione di questo documento qui: http://weechat.org/doc

1. Introduzione

WeeChat (Wee Enhanced Environment for Chat) è un client di chat libero, veloce e leggero, realizzato per diversi sistemi operativi.

1.1. Caratteristiche

Le principali caratteristiche:

  • multi-protocollo: IRC and Jabber (with script jabber.py or bitlbee/minbif)

  • connessione a server multipli (con SSL, IPv6, proxy)

  • piccolo, veloce e leggero

  • personalizzabile ed estensibile con plugin e script

  • conforme alle RFC di IRC 1459, 2810, 2811, 2812 e 2813

  • multi-piattaforma (GNU/Linux, *BSD, MacOS X, Windows ed altre)

  • 100% GPL, software libero

La home page di WeeChat si trova qui: http://weechat.org/

1.2. Requisiti

Per poter installare WeeChat, è necessario:

  • un sistema GNU/Linux in esecuzione (con gli strumenti di compilazione per i sorgenti), oppure OS compatibile

  • privilegi di root (per installare WeeChat in una directory di sistema)

  • librerie ncurses

2. Installazione

2.1. Pacchetti binari

I pacchetti binari sono disponibili per molte distribuzioni, incluse:

  • Debian (o qualunque distribuzione compatibile): apt-get install weechat-curses

  • Mandriva/RedHat (o qualunque distribuzione compatibile con RPM): rpm -i /path/per/weechat-x.y.z-1.i386.rpm

  • Gentoo: emerge weechat

  • Arch Linux: pacman -S weechat

  • Fedora Core: yum install weechat

  • Sourcemage: cast weechat

Potrebbero risultare utili alcuni pacchetti addizionali, come weechat-plugins.

Per altre distribuzioni, consultare il manuale per le istruzioni di installazione.

2.2. Sorgenti

WeeChat può essere compilato con cmake oppure autotools (tuttavia si raccomanda cmake).

2.2.1. Dipendenze

La seguente tabella mostra l’elenco di pacchetti richiesti o opzionali per compilare WeeChat.

Pacchetto (1) Versione Richiesto Caratteristica

cmake

Compilazione (ancora possibile con autotools, ma si raccomanda cmake)

libncursesw5-dev (2)

Interfaccia ncurses

libcurl4-gnutls-dev

Trasferimento URL

zlib1g-dev

Compression of packets in relay plugin (weechat protocol), script plugin

libgcrypt11-dev

Secured data, IRC SASL authentication (DH-BLOWFISH/DH-AES), script plugin

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)

asciidoc

≥ 8.5.0

Build man page and documentation

source-highlight

Evidenziazione della sintassi per i sorgenti nella documentazione

xsltproc, docbook-xml, docbook-xsl

Build of man page

libcpputest-dev

≥ 3.4

Run tests

C++ compiler

Nota
(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 (potrebbero verificarsi bug di visualizzazione).
(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).

2.2.2. Compilazione con cmake

  • Installazione nelle directory di sistema (richiede privilegi di root):

$ mkdir build
$ cd build
$ cmake ..
$ make
% make install    (come root)
  • Installazione in una directory personalizzata:

$ mkdir build
$ cd build
$ cmake .. -DPREFIX=/path/della/directory
$ make
$ make install

Options can be used for cmake, with format: "-DOPTION=VALUE".

List of commonly used options:

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.

CA_FILE

file

/etc/ssl/certs/ca-certificates.crt

File containing the certificate authorities. This is the default value of option weechat.network.gnutls_ca_file.

ENABLE_ALIAS

ON, OFF

ON

Compile Alias plugin.

ENABLE_ASPELL

ON, OFF

ON

Compile Aspell plugin.

ENABLE_CHARSET

ON, OFF

ON

Compile Charset plugin.

ENABLE_MAN

ON, OFF

OFF

Compile man page.

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).

ENABLE_ENCHANT

ON, OFF

OFF

Compile Aspell plugin with Enchant.

ENABLE_EXEC

ON, OFF

ON

Compile Exec plugin.

ENABLE_FIFO

ON, OFF

ON

Compile Fifo plugin.

ENABLE_GNUTLS

ON, OFF

ON

Enable Gnutls (for SSL).

ENABLE_GUILE

ON, OFF

ON

Compile Guile plugin (Scheme).

ENABLE_IRC

ON, OFF

ON

Compile IRC plugin.

ENABLE_LARGEFILE

ON, OFF

ON

Support of large files.

ENABLE_LOGGER

ON, OFF

ON

Compile Logger plugin.

ENABLE_LUA

ON, OFF

ON

Compile Lua plugin.

ENABLE_NCURSES

ON, OFF

ON

Compile Ncurses interface.

ENABLE_NLS

ON, OFF

ON

Enable NLS (translations).

ENABLE_PERL

ON, OFF

ON

Compile Perl plugin.

ENABLE_PYTHON

ON, OFF

ON

Compile Python plugin.

ENABLE_PYTHON3

ON, OFF

OFF

Compile Python plugin using Python 3 (NOT recommended because many scripts are not compatible with Python 3).

ENABLE_RELAY

ON, OFF

ON

Compile Relay plugin.

ENABLE_RUBY

ON, OFF

ON

Compile Ruby plugin.

ENABLE_SCRIPT

ON, OFF

ON

Compile Script plugin.

ENABLE_SCRIPTS

ON, OFF

ON

Compile script plugins (Python, Perl, Ruby, Lua, Tcl, Guile).

ENABLE_TCL

ON, OFF

ON

Compile Tcl plugin.

ENABLE_TRIGGER

ON, OFF

ON

Compile Trigger plugin.

ENABLE_XFER

ON, OFF

ON

Compile Xfer plugin.

ENABLE_TESTS

ON, OFF

OFF

Compile tests.

The other options can be displayed with this command:

$ cmake -LA

Or with Curses interface:

$ ccmake ..

2.2.3. Compilazione con autotools

Avvertenza
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.
  • Installazione nelle directory di sistema (richiede privilegi di root):

$ ./autogen.sh
$ mkdir build
$ cd build
$ ../configure
$ make
% make install    (come root)
  • Installazione in una directory personalizzata:

$ ./autogen.sh
$ mkdir build
$ cd build
$ ../configure --prefix=/path/to/directory
$ make
$ make install

Options can be used for configure script, they can be displayed with this command:

$ ./configure --help

2.3. Sorgenti git

Attenzione: i sorgenti git sono per gli utenti avanzati: potrebbero non compilare o essere instabili. Siete avvisati!

Per ottenere i sorgenti git, dare il comando:

$ git clone https://github.com/weechat/weechat.git

Poi seguire le istruzioni per i sorgenti (consultare sorgenti).

2.4. Segnalare gli errori

Nel caso in cui si verifichino errori, o si desideri segnalare qualsiasi errore futuro di WeeChat, è necessario:

  • compilarlo con informazioni di debug (o installare il pacchetto binario con le informazioni di debug)

  • abilitare i file core sul proprio sistema

  • installare gdb

2.4.1. Informazioni di debug

Se si compila con cmake:

$ cmake .. -DCMAKE_BUILD_TYPE=Debug

Se compilato con gli autotools, il debug è attivato automaticamente (--with-debug=1).

Se è stato installato il pacchetto binario, installare il pacchetto weechat-gdb.

2.4.2. File core

To enable core files, you can use option weechat.startup.sys_rlimit:

/set weechat.startup.sys_rlimit "core:-1"

For WeeChat ≤ 0.3.8 or if you want to enable core files even before WeeChat starts, you can use ulimit command.

Ad esempio su Linux con la shell bash, aggiungere questa riga al proprio ~/.bashrc:

ulimit -c unlimited

Oppure impostare una dimensione massima:

ulimit -c 200000

2.4.3. Ottenere un backtrace con gdb

In caso di errore di WeeChat, il sistema creerà un file core oppure core.12345 (12345 è l’id del processo). Questo file viene creato nella directory in cui è in esecuzione WeeChat (e non la directory dove WeeChat è installato!).

Ad esempio, se weechat è installato in /usr/bin/ ed il file core si trova in /home/xxx/, allora eseguire gdb con questo comando:

gdb /usr/bin/weechat /home/xxx/core
Nota
Se è stato installato il pacchetto binario weechat-dbg (ad esempio in Debian), è possibile usare questo path per il binario di WeeChat: /usr/lib/debug/usr/bin/weechat

All’interno di gdb, usare il comando bt full per visualizzare il backtrace. Verrà mostrato qualcosa di simile a questo:

(gdb) set logging file /tmp/crash.txt
(gdb) set logging on
Copying output to /tmp/crash.txt.
(gdb) bt full
#0  0x00007f9dfb04a465 in raise () from /lib/libc.so.6
#1  0x00007f9dfb04b8e6 in abort () from /lib/libc.so.6
#2  0x0000000000437f66 in weechat_shutdown (return_code=1, crash=1)
    at /some_path/src/core/weechat.c:351
#3  <signal handler called>
#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
        hook_process = 0x254eb90
        status = <value optimized out>
#5  0x000000000044cc7d in hook_timer_exec ()
    at /some_path/src/core/wee-hook.c:1025
        tv_time = {tv_sec = 1272693881, tv_usec = 212665}
        ptr_hook = 0x2811f40
        next_hook = 0x0
#6  0x000000000041b5b0 in gui_main_loop ()
    at /some_path/src/gui/curses/gui-curses-main.c:319
        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>

Bisogna riportare l’errore agli sviluppatori, e specificare quale azione ha causato l’errore.

Grazie per il vostro aiuto!

2.4.4. Debug di WeeChat durante l’esecuzione

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 (sostituire 12345 con il PID del processo weechat):

gdb /usr/bin/weechat 12345

Poi, come per un crash, usare il comando bt full:

(gdb) bt full

3. Utilizzo

3.1. Esecuzione di WeeChat

Argomenti a riga di comando:

-a, --no-connect

Disabilita la connessione automatica ai server all’avvio di WeeChat.

-c, --colors

Mostra i colori prefefiniti nel terminale.

-d, --dir <path>

Imposta una directory come home per WeeChat (utilizzata per i file di configurazione, log, plugin e script dell’utente), il valore predefinito è ~/.weechat (nota: directory viene creata se non trovata da WeeChat).

-h, --help

Mostra l’aiuto.

-l, --license

Mostra la licenza di WeeChat.

-p, --no-plugin

Disabilita il caricamento automatico dei plugin.

-r, --run-command <command>

Esegue un comando(i) dopo l’avvio (più comandi possono essere separati da punto e virgola).

-s, --no-script

Disabilita il caricamento automatico dei script.

--upgrade

Upgrade WeeChat using session files generated with command /upgrade -quit.

-v, --version

Mostra la versione di WeeChat.

plugin:option

Opzione per il plugin.

Per avviare WeeChat, digitare questo comando:

$ weechat

Alla prima esecuzione di WeeChat, viene creato un file di configurazione predefinito. Il file di configurazione viene creato nella directory: ~/.weechat/weechat.conf.

È possibile modificare questo file per configurare WeeChat a seconda delle proprie esigenze, oppure impostando i parametri con il comando /set all’interno di WeeChat (consultare comandi di WeeChat).

3.2. Layout dello schermo

Esempio di terminale con WeeChat:

 ▼ 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 peter]         │@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                                             │       │
│                                                                   │       │
│                                                                   │       │
│                                                                   │       │
│                                                                   │       │
│                                                                   │       │
│                                                                   │       │
│                                                                   │       │
│                                                                   │       │
│                                                                   │       │
│                                                                   │       │
│                                                                   │       │
│[12:55] [6] [irc/freenode] 3:#test(+n){4}* [H: 4:#abc(2,5), 6]             │
│[@Flashy(i)] hi peter!█                                                    │
└───────────────────────────────────────────────────────────────────────────┘
 ▲ bars "status" and "input"                               bar "nicklist" ▲

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:

Elemento Esempio Descrizione

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

buffer_zoom

!

! means the merged buffer is zoomed (only this one is displayed), empty value means all merged buffers are displayed

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

La barra input ha i seguenti elementi predefiniti:

Elemento Esempio Descrizione

input_paste

[Incollare 7 righe ? [ctrl-Y] Sì [ctrl-N] No]

Chiede all’utente se incollare le righe

input_prompt

[@Flashy(i)]

Prompt per l’input, for irc: nick and modes (mode "+i" means invisible on freenode)

away

(assente)

Indicatore di assenza

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

3.3. Buffer e finestre

Un buffer è composto da un numero, un nome, delle righe visualizzate (e altri dati).

Esempi di buffer:

  • buffer core (creato by WeeChat all’avvio, non può essere chiuso)

  • server irc (mostra i messaggi dal server)

  • canale irc

  • query irc

Una finestra (o window) è un’area dello schermo in cui viene visualizzato 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.

Esempio di split orizzontale (/window splith):

                          ▼ 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)

Esempio di split verticale (/window splitv):

┌───────────────────────────────────────────────────────────────────────────┐
│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)

Esempio di split orizzontale + verticale:

                                            ▼ 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)

3.4. Bars

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:

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 of lines for position top/bottom. A size of 0 means automatic, so the size 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 /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 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 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 filling for more info).

conditions

string

The conditions to display the bar (see conditions for more info).

3.4.1. Items

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.

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).

Example of bar with items "[time],buffer_number+:+buffer_plugin+.+buffer_name":

┌───────────────────────────────────────────────────────────────────────────┐
│[12:55] 3:irc/freenode.#weechat                                            │
└───────────────────────────────────────────────────────────────────────────┘

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).

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).

Example: nicklist of bitlbee in a root bar (if the bar is called bitlist and if bitlbee server is called bitlbee):

/set weechat.bar.bitlist.items "@irc.bitlbee.&bitlbee:buffer_nicklist"

3.4.2. Filling

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:

┌──────────────────────────────────────────────────┐
│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}        │
│[@carl] █                                         │
└──────────────────────────────────────────────────┘
                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}        │
│[@carl] █                                         │
└──────────────────────────────────────────────────┘
        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 ▲

3.4.3. Conditions

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 /eval)

For the expression, following variables are available:

  • ${active}: true if window is active

  • ${inactive}: true if window is inactive

  • ${nicklist}: true if buffer displayed in window has a nicklist

Following pointers are available:

  • ${window}: the window where condition is evaluated

  • ${buffer}: the buffer of window where condition is evaluated

Example to display nicklist bar in all buffers with a nicklist, and only if width of window is > 100 :

/set weechat.bar.nicklist.conditions "${nicklist} && ${window.win_width} > 100"

Same condition, but always display nicklist on buffer &bitlbee (even if window is small):

/set weechat.bar.nicklist.conditions "${nicklist} && (${window.win_width} > 100 || ${buffer.full_name} == irc.bitlbee.&bitlbee)"

3.5. Bare display

A special display, called "bare display" can be used for easy click on long URLs and selection of text (using the mouse).

The bare display has following features:

  • it displays only the content of current buffer: no window split neither bars (no title, nicklist, status, input, …)

  • the WeeChat mouse support is disabled (if it was enabled): you can use your mouse like you do in the terminal to click on URLs and select text

  • ncurses is not used, therefore URLs are not cut at the end of lines.

The default key to enabled bare display is alt+l, and same key to exit (or by default anything changing the input will exit the bare display, see option weechat.look.bare_display_exit_on_input).

The time format can be customized with the option weechat.look.bare_display_time_format.

The bare display can be enabled for a specific delay using the command /window.

If WeeChat looks like that:

┌───────────────────────────────────────────────────────────────────────────┐
│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 peter]         │@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 | peter: hook_process: http://weechat.org/files/doc │       │
│               | /devel/weechat_plugin_api.en.html#_weechat_hook_p │       │
│               | rocess                                            │       │
│                                                                   │       │
│                                                                   │       │
│                                                                   │       │
│                                                                   │       │
│                                                                   │       │
│                                                                   │       │
│                                                                   │       │
│                                                                   │       │
│                                                                   │       │
│[12:55] [6] [irc/freenode] 3:#test(+n){4}* [H: 4:#abc(2,5), 6]             │
│[@Flashy(i)] hi peter!█                                                    │
└───────────────────────────────────────────────────────────────────────────┘

The screen will look like that in bare display:

┌───────────────────────────────────────────────────────────────────────────┐
│                                                                           │
│                                                                           │
│                                                                           │
│                                                                           │
│                                                                           │
│                                                                           │
│                                                                           │
│                                                                           │
│                                                                           │
│                                                                           │
│                                                                           │
│                                                                           │
│                                                                           │
│12:52 --> Flashy (flashcode@weechat.org) has joined #test                  │
│12:52 -- Nicks #test: [@Flashy @joe +weebot peter]                         │
│12:52 -- Channel #test: 4 nicks (2 ops, 1 voice, 1 normal)                 │
│12:52 -- Channel created on Tue Jan 27 06:30:17 2009                       │
│12:54 <peter> hey!                                                         │
│12:55 <@joe> peter: hook_process: http://weechat.org/files/doc/devel/weecha│
│t_plugin_api.en.html#_weechat_hook_process                                 │
└───────────────────────────────────────────────────────────────────────────┘

So you can click the URL from joe without any problem in your terminal (of course this supposes that your terminal supports click on URLs).

3.6. Livelli di notifica

Sono possibili quattro livelli per i messaggi mostrati nei buffer, dal più basso al più alto:

  • 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

Ogni buffer ha un livello di notifica, che viene usato per decidere quale messaggio il buffer andrà ad aggiungere nella hotlist.

Il livello predefinito di notifica può essere impostato usando l’opzione weechat.look.buffer_notify_default, il valore predefinito è all.

Livello di notifica Livello del messaggio aggiunto alla hotlist

none

(nessuno)

highlight

highlight + private

message

highlight + private + message

all

highlight + private + message + low

Il livello di notifica può essere definito per un set di buffer, ad esempio tutti i buffer per il server irc "freenode":

/set weechat.notify.irc.freenode message

Imposta il livello di notifica highlight solo sul canale #weechat:

/set weechat.notify.irc.freenode.#weechat highlight

Il livello di notifica per un buffer può essere impostato con il comando /buffer:

/buffer notify highlight

3.7. Associazione tasti predefinita

3.7.1. Tasti per la riga di comando

Tasti Descrizione Comando

Passa al carattere precedente nella riga di comando

/input move_previous_char

ctrl+b

Passa al carattere successivo nella riga di comando

/input move_next_char

ctrl+f

ctrl+

Passa alla parola precedente nella riga di comando

/input move_previous_word

alt+b

ctrl+

Passa alla parola successiva nella riga di comando

/input move_next_word

alt+f

Home

Si sposta all’inizio della riga di comando

/input move_beginning_of_line

ctrl+a

End

Si sposta alla fine della riga di comando

/input move_end_of_line

ctrl+e

ctrl+c, b

Inserisce il codice per il testo in grassetto

/input insert \x02

ctrl+c, c

Inserisce il codice per il testo colorato

/input insert \x03

ctrl+c, i

Inserisce il codice per il testo in corsivo

/input insert \x1D

ctrl+c, o

Inserisce il codice per il reset dei colori

/input insert \x0F

ctrl+c, v

Inserisce il codice per l’inversione dei colori

/input insert \x16

ctrl+c, _

Inserisce il codice per il testo sottolineato

/input insert \x1F

Del

Elimina il carattere successivo nella riga di comando

/input delete_next_char

ctrl+d

Backsp.

Elimina il carattere precedente nella riga di comando

/input delete_previous_char

ctrl+h

ctrl+k

Elimina dal cursore fino alla fine della riga di comando (la stringa eliminata viene copiata negli appunti)

/input delete_end_of_line

ctrl+r

Cerca del testo nella cronologia del buffer (consultare tasti per il contesto search)

/input search_text

ctrl+t

Inverti caratteri

/input transpose_chars

ctrl+u

Elimina dal cursore fino all’inizio della riga di comando (la stringa eliminata viene copiata negli appunti)

/input delete_beginning_of_line

ctrl+w

Elimina la parola precedente nella riga di comando (la stringa eliminata viene copiata negli appunti)

/input delete_previous_word

ctrl+y

Incolla il contenuto degli appunti

/input clipboard_paste

ctrl+_

Annulla l’ultima azione sulla riga di comando

/input undo

alt+_

Ripete l’ultima azione sulla riga di comando

/input redo

Tab

Completa comando o nick (Tab di nuovo: trova prossimo completamento)

/input complete_next

shift+Tab

Senza completamento: effettua un completamento parziale, con completamento in sospeso: completa con il completamento precedente

/input complete_previous

Invio

Esegue comando o invia messaggio (in modalità ricerca: ferma ricerca)

/input return

ctrl+j

ctrl+m

Chiama comando/messaggio precedente (in modalità ricerca: cerca in alto)

/input history_previous

Chiama comando/messaggio precedente (in modalità ricerca: cerca in basso)

/input history_next

ctrl+

Chiama il comando/messaggio precedente nella cronologia globale (identico per tutti i buffer)

/input history_global_previous

ctrl+

Chiama il comando/messaggio successivo nella cronologia globale (identico per tutti i buffer)

/input history_global_next

alt+d

Elimina la parola successiva nella riga di comando (la stringa eliminata viene copiata negli appunti)

/input delete_next_word

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

alt+r

Elimina l’intera riga di comando

/input delete_line

alt+s

Abilita/disabilita aspell

/mute aspell toggle

3.7.2. Tasti per buffer / finestre

Tasti Descrizione Comando

ctrl+l

Ridisegna l’intera finestra

/window refresh

ctrl+s, ctrl+u

Imposta l’evidenziatore dei messaggi non letti su tutti i buffer

/input set_unread

ctrl+x

Passa al buffer attivo se i buffer sono collegati con lo stesso numero

/input switch_active_buffer

alt+x

Zoom on merged buffer (alt+x again: display all merged buffers)

/input zoom_merged_buffer

PgUp

Scorre in alto di una pagina nella cronologia del buffer

/window page_up

PgDn

Scorre di una pagina in basso nella cronologia del buffer

/window page_down

alt+PgUp

Scorre di qualche riga in alto nella cronologia del buffer

/window scroll_up

alt+PgDn

Scorre di qualche riga in basso nella cronologia del buffer

/window scroll_down

alt+Home

Scorre in cima al buffer

/window scroll_top

alt+End

Scorre alla fine del del buffer

/window scroll_bottom

alt+

Passa al buffer precedente

/buffer -1

alt+

ctrl+p

F5

alt+

Passa al buffer successivo

/buffer +1

alt+

ctrl+n

F6

F7

Passa alla finestra precedente

/window -1

F8

Passa alla finestra successiva

/window +1

F9

Scorre il titolo del buffer sulla sinistra

/bar scroll title * -30%

F10

Scorre il titolo del buffer sulla destra

/bar scroll title * +30%

F11

Scorre di una pagina in alto nella lista nick

/bar scroll nicklist * -100%

F12

Scorre di una pagina in basso nella lista nick

/bar scroll nicklist * +100%

alt+F11

Sposta all’inizio della lista nick

/bar scroll nicklist * b

alt+F12

Sposta alla fine della lista nick

/bar scroll nicklist * e

alt+a

Passa al buffer successivo con attività (con priorità: highligh, messagge, altro)

/input jump_smart

alt+h

Pulisce hotlist (notifica di attività su altri buffer)

/input hotlist_clear

alt+j, alt+f

Switch to first buffer

/buffer -

alt+j, alt+l

Passa all’ultimo buffer

/buffer +

alt+j, alt+r

Passa al buffer raw IRC

/server raw

alt+j, alt+s

Passa al buffer server IRC

/server jump

alt+0…9

Passa al buffer numero (0 = 10)

/buffer *N

alt+j, 01…99

Passa al buffer numero

/buffer NN

alt+l

Toggle bare display on/off

/window bare

alt+m

Abilita/disabilita

/mouse toggle

alt+n

Scorre fino alla notifica successiva

/window scroll_next_highlight

alt+p

Scorre fino alla notifica precedente

/window scroll_previous_highlight

alt+u

Scorre fino alla prima riga non letta nel buffer

/window scroll_unread

alt+w, alt+

Passa alla finestra in alto

/window up

alt+w, alt+

Passa alla finestra in basso

/window down

alt+w, alt+

Passa alla finestra sulla sinistra

/window left

alt+w, alt+

Passa alla finestrs sulla destra

/window right

alt+w, alt+b

Bilancia le dimensioni di tutte le finestre

/window balance

alt+w, alt+s

Scambia i buffer di due finestra

/window swap

alt+z

Ingrandimento sulla finestra attiva (alt+z di nuovo: ripristina lo stato iniziale della finestra, prima dell’ingrandimento)

/window zoom

alt+<

Passa al buffer precedente nella lista dei buffer visitati

/input jump_previously_visited_buffer

alt+>

Passa al buffer successivo nella lista dei buffer visitati

/input jump_next_visited_buffer

alt+/

Passa all’ultimo buffer mostrato (prima dell’ultimo passaggio ad un buffer)

/input jump_last_buffer_displayed

alt+=

Attiva/disattiva filtri

/filter toggle

alt+-

Toggle filters on/off in current buffer

/filter toggle @

3.7.3. Tasti per il contesto "search"

Questi tasti sono usati nel contesto "search" (quando viene digitato ctrl+r per cercare del testo nel buffer).

Key Descrizione Comando

ctrl+r

Switch search type: string (default), regular expression

/input search_switch_regex

alt+c

Passa alla ricerca esatta

/input search_switch_case

Tab

Switch search in: messages (default), prefixes, prefixes + messages

/input search_switch_where

Cerca riga precedente

/input search_previous

Cerca riga successiva

/input search_next

Invio

Ferma ricerca

/input search_stop

ctrl+j

ctrl+m

3.7.4. Tasti per il contesto "cursor"

Questi tasti sono usati nel contesto "cursor" (movimento libero del cursore sullo schermo.

Tasto Zona Descrizione Comando

-

Sposta il cursore di una riga in alto

/cursor move up

-

Sposta il cursore di una riga in basso

/cursor move down

-

Sposta il cursore di una colonna a sinistra

/cursor move left

-

Sposta il cursore di una colonna a destra

/cursor move right

alt+

-

Sposta il cursore nell’area in alto

/cursor move area_up

alt+

-

Sposta il cursore nell’area in basso

/cursor move area_down

alt+

-

Sposta il cursore nell’area a sinistra

/cursor move area_left

alt+

-

Sposta il cursore nell’area a destra

/cursor move area_right

m

chat

Cita messaggio

hsignal:chat_quote_message;/cursor stop

q

chat

Cita prefisso + messaggio

hsignal:chat_quote_prefix_message;/cursor stop

Q

chat

Cita ora + prefisso + messaggio

hsignal:chat_quote_time_prefix_message;/cursor stop

b

lista nick

Ban di un nick

/window ${_window_number};/ban ${nick}

k

lista nick

Kick di un nick

/window ${_window_number};/kick ${nick}

K

lista nick

Kick e ban di un nick

/window ${_window_number};/kickban ${nick}

q

lista nick

Apri query con il nick

/window ${_window_number};/query ${nick};/cursor stop

w

lista nick

Effettua un whois sul nick

/window ${_window_number};/whois ${nick}

Enter

-

Ferma la modalità cursore

/cursor stop

ctrl+j

ctrl+m

3.7.5. Tasti per il contesto "mouse"

Questi tasti sono usati nel contesto "mouse", ovvero quando si verifica un evento del mouse.

Tasto (1) Azione Zona Descrizione Comando

◾◽◽

-

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

ctrl+

-

chat

Scroll horizontally to the left

/window scroll_horiz -window ${_window_number} -10%

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}

Nota
(1) "⇑" and "⇓" are wheel up and down.

3.8. Supporto del mouse

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.

3.8.1. Abilitare il mouse

Per abilitare il mouse all’avvio:

/set weechat.look.mouse on

Per abilitarlo subito, digitare alt+m oppure eseguire il seguente comando:

/mouse enable

È possibile disabilitarlo temporaneamente, e associare il comando ad un tasto. Ad esempio il tasto alt+x per disabilitare il mouse per 10 secondi:

/key bind meta-x /mouse toggle 10

Quando il mouse è abilitato in WeeChat, è possibile usare il modificatore shift per selezionare o cliccare nel terminale, come se il mouse fosse disabilitato (in alcuni terminali come iTerm, bisogna usare alt invece di shift).

Nota
Per qualunque problema con il mouse, consultare FAQ di WeeChat.

3.8.2. Associare gli eventi del mouse a comandi

Molti eventi del mouse predefiniti sono già definiti da WeeChat (consultare tasti per il contesto "mouse").

È possibile cambiare o aggiungere combinazioni con il comando /key usando il contesto "mouse" (per la sintassi, consultare comando /key).

Il nome dell’evento consiste di un modificatore (opzionale), il nome di un pulsante/rotellina e un’azione (opzionale). Elementi diversi sono separati da "-".

Elenco di modificatori

Modificatore Descrizione

ctrl

Tasto ctrl

alt

Tasto alt

ctrl-alt

Tasto ctrl+alt

Elenco di pulsanti/rotellina:

Pulsante/rotellina Descrizione

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ù)

Elenco di azioni (solo per i pulsanti, non la rotellina):

Azione Distanza

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

List of incomplete events (only for buttons, useful for plugins/scripts):

Event Description

event-down

Button was pressed but not released yet

event-drag

Mouse was moved with button pressed down

Esempio di eventi:

  • button1

  • ctrl-button1

  • button1-gesture-right

  • button1-event-down

  • button1-event-drag

  • alt-button2-gesture-down-long

  • wheelup

  • ctrl-alt-wheeldown

Suggerimento
Quando si associa un tasto nel contesto "mouse", è possibile far corrispondere più eventi usando * all’inizio o alla fine del nome, ad esempio button1-gesture-* corrisponderà ad ogni azione compiuta col tasto sinistro.
Suggerimento
È 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.

3.9. Riga di comando

La riga di comando di WeeChat (nella parte inferiore della finestra) consente di inserire i comandi o di inviare del testo sul buffer.

3.9.1. Sintassi

I comandi iniziano con il carattere "/", seguito dal nome del comando. Ad esempio, per consultare un elenco di opzioni:

/set

Il testo inviato ad un buffer è qualsiasi testo che non comincia con il carattere "/". Per esempio, per inviare il testo ciao sul buffer attivo:

ciao

Ad ogni modo, è possibile iniziare con il carattere "/", aggiungendone poi un altro. Ad esempio, per inviare il testo /set sul buffer attivo:

//set

3.9.2. Codici colore

Per alcuni plugin come IRC, è possibile usare codici colori ed attributi, come segue (digitare ctrl+c poi la lettera che segue, con il valore opzionale):

ctrl+c, b

testo in grassetto

ctrl+c, c, xx

colore del testo xx (consultare la lista di colori che segue)

ctrl+c, c, xx,yy

colore del testo xx e di sfondo yy (consultare la lista di colori che segue)

ctrl+c, i

italic text

ctrl+c, o

disabilita colori ed attributi

ctrl+c, v

video inverso (inverte il colore del testo con quello di sfondo)

ctrl+c, _

testo sottolineato

Nota
Lo stesso codice (senza numero per ctrl+c, c) può essere usato per terminare l’attributo.

I codici colore per ctrl+c, c sono:

Codice IRC WeeChat (curses)

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

14

grigio

darkgray

15

grigio chiaro

gray

Esempio: visualizza "ciao a tutti!" con "ciao" scritto in blu chiaro grassetto e "a tutti" in rosso chiaro sottolineato:

^Cc12^Cbciao ^Cb^Cc04^Cua tutti^Cu^Cc !
Nota
Nel plugin irc, si possono riorganizzare i colori usando l’opzione irc.color.mirc_remap.

3.10. Colori

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).

In base al valore della variabile di ambiente TERM, potrebbero verificarsi i seguenti limiti per i colori in WeeChat:

$TERM Colori Coppie (1)

"rxvt-unicode", "xterm", …

88

256

"rxvt-256color", "xterm-256color", …

256

32767

"screen"

8

64

"screen-256color"

256

32767

Nota
(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.

È possibile eseguire weechat --colors o utilizzare il comando /color in WeeChat per visualizzare i limiti del proprio ambiente.

Alcuni valori raccomandati per TERM se si desiderano 256 colori:

  • con screen: screen-256color

  • al di fuori di screen: xterm-256color, rxvt-256color, putty-256color, …

Nota
Potrebbe essere necessario installare il pacchetto "ncurses-term" per usare questi valori nella variabile TERM.

Se si sta utilizzando screen, è possibile aggiungere questa riga al proprio ~/.screenrc:

term screen-256color

If your TERM variable has wrong value and that WeeChat is already running, you can change it with these two commands:

/set env TERM screen-256color
/upgrade

3.10.1. Colori base

I colori base in WeeChat sono:

Nome Colore

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

3.10.2. Colori estesi

WeeChat alloca dinamicamente le coppie colore quando vengono usati i colori sullo schermo (per mostrare buffer e barre).

In aggiunta ai colori di base, si può usare un numero per il colore compreso tra 1 e il limite del proprio terminale.

Il comando /color mostra i colori attivi ed i limiti. Com alt+c si può passare temporaneamente ai colori del terminale per sceglierne uno.

Se ad esempio si desidera visualizzare l’ora in arancione nel buffer:

/set weechat.color.chat_time 214

O se si desidera uno sfondo verde scuro per la barra di stato:

/set weechat.bar.status.color_bg 22

3.10.3. Alias

Si possono aggiungere degli alias ai colori con il comando /color alias e usarli in ogni opzione relativa al colore.

Ad esempio:

/color alias 214 orange
/set weechat.color.chat_delimiters orange

3.10.4. Attributi

Esistono alcuni attributi per i colori. Uno o più attributi vanno aggiunti prima del nome o del numero del colore:

  • * : testo in grassetto

  • ! : video inverso

  • / : testo in corsivo

  • _ : testo sottolineato

  • | : mantiene attributi: non ripristina grassetto/inverso/sottolineato al cambio di colore

Ad esempio se si vuole il proprio nick bianco e sottolineato:

/set weechat.color.chat_nick_self _white

O se si desidera l’ora nella barra di stato arancione sottolineata e in grassetto:

/set weechat.color.status_time *_214

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.

Esempio di grassetto con il colore di primo piano del terminale:

/set weechat.color.status_time *99999

3.11. Secured data

3.11.1. 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 sec.crypt.passphrase_file).

Encryption

The encryption of data is made in 3 steps:

  1. Derive a key from the passphrase (with optional salt).

  2. Compute hash of data to encrypt.

  3. Encrypt the hash + data (output is: salt + encrypted hash/data).

Nota
The cipher block mode is CFB.

The result is put as hexadecimal string in file sec.conf, for example:

[data]
__passphrase__ = on
freenode = "53B1C86FCDA28FC122A95B0456ABD79B5AB74654F21C3D099A6CCA8173239EEA59533A1D83011251F96778AC3F5166A394"
Decryption

The decryption of data is made in 3 steps:

  1. Derive a key using salt and passphrase.

  2. Decrypt hash + data.

  3. Check that decrypted hash == hash of data.

3.11.2. 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 (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 SASL authentication:

/set irc.server.freenode.sasl_password "${sec.data.freenode}"

3.12. Options and commands

3.12.1. Secured data options (sec.conf)

Sections:

Section Control command Description

crypt

/set sec.crypt.*

Options for encryption

data

/secure

Secured data

Options:

  • sec.crypt.cipher

    • descrizione: cipher used to crypt data (the number after algorithm is the size of the key in bits)

    • tipo: intero

    • valori: aes128, aes192, aes256 (valore predefinito: aes256)

  • sec.crypt.hash_algo

    • descrizione: hash algorithm used to check the decrypted data

    • tipo: intero

    • valori: sha224, sha256, sha384, sha512 (valore predefinito: sha256)

  • sec.crypt.passphrase_file

    • descrizione: path to a file containing the passphrase to encrypt/decrypt secured data; this option is used only when reading file sec.conf; only first line of file is used; this file is used only if the environment variable "WEECHAT_PASSPHRASE" is not set (the environment variable has higher priority); security note: it is recommended to keep this file readable only by you and store it outside WeeChat home (for example in your home); example: "~/.weechat-passphrase"

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "")

  • sec.crypt.salt

    • descrizione: use salt when generating key used in encryption (recommended for maximum security); when enabled, the content of crypted data in file sec.conf will be different on each write of the file; if you put the file sec.conf in a version control system, then you can turn off this option to have always same content in file

    • tipo: bool

    • valori: on, off (valore predefinito: on)

3.12.2. Opzioni di WeeChat (weechat.conf)

Sections:

Section Control command Description

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

/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

/proxy
/set weechat.proxy.*

Proxy options

network

/set weechat.network.*

Network/SSL options

bar

/bar
/set weechat.bar.*

Bar options

layout

/layout

Layouts

notify

/buffer notify

Notify levels for buffers (options can be added/removed in section)

filter

/filter

Filters

key

/key

Keys in default context

key_search

/key

Keys in search context

key_cursor

/key

Keys in cursor context

key_mouse

/key

Keys in mouse context

Options:

  • weechat.color.bar_more

    • descrizione: colore del testo '+' allo scorrimento delle barre

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: lightmagenta)

  • weechat.color.chat

    • descrizione: colore del testo per la chat

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: default)

  • weechat.color.chat_bg

    • descrizione: colore di sfondo per la chat

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: default)

  • weechat.color.chat_buffer

    • descrizione: colore del testo per i nomi dei buffer

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: white)

  • weechat.color.chat_channel

    • descrizione: colore del testo per i nomi dei canali

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: white)

  • weechat.color.chat_day_change

    • descrizione: colore del testo per i messaggi mostrati al cambio di data

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: cyan)

  • weechat.color.chat_delimiters

    • descrizione: colore del testo per i delimitatori

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: green)

  • weechat.color.chat_highlight

    • descrizione: colore del testo per il prefisso di notifica

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: yellow)

  • weechat.color.chat_highlight_bg

    • descrizione: colore di sfondo per il prefisso di notifica

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: magenta)

  • weechat.color.chat_host

    • descrizione: colore del testo per i nomi host

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: cyan)

  • weechat.color.chat_inactive_buffer

    • descrizione: colore del testo per la chat quando la riga è inattiva (il buffer è unito con altri buffer e non è selezionato)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: default)

  • weechat.color.chat_inactive_window

    • descrizione: colore del testo per la chat quando la finestra è inattiva (nessuna finestra attiva selezionata)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: default)

  • weechat.color.chat_nick

    • descrizione: colore del testo per i nick nella finestra di chat

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: lightcyan)

  • weechat.color.chat_nick_colors

    • descrizione: colore del testo per i nick (elenco separato da virgole di colori, quello di sfondo è consentito con il formato "fg:bg", ad esempio: "lightred:blue")

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "cyan,magenta,green,brown,lightblue,default,lightcyan,lightmagenta,lightgreen,blue")

  • weechat.color.chat_nick_offline

    • descrizione: colore del testo per i nick non in linea (non più in lista nick)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: default)

  • weechat.color.chat_nick_offline_highlight

    • descrizione: colore del testo per i nick non in linea con highlight

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: default)

  • weechat.color.chat_nick_offline_highlight_bg

    • descrizione: colore di sfondo per i nick non in linea con highlight

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: blue)

  • weechat.color.chat_nick_other

    • descrizione: colore del testo per gli altri nick nel buffer privato

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: cyan)

  • weechat.color.chat_nick_prefix

    • descrizione: colore per il prefisso del nick (stringa visualizzata prima del nick nel prefisso)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: green)

  • weechat.color.chat_nick_self

    • descrizione: colore del testo per il nick locale nella finestra di chat

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: white)

  • weechat.color.chat_nick_suffix

    • descrizione: colore per il prefisso del nick (stringa visualizzata dopo il nick nel prefisso)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: green)

  • weechat.color.chat_prefix_action

    • descrizione: colore del testo per il prefisso di azione

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: white)

  • weechat.color.chat_prefix_buffer

    • descrizione: colore del testo per il nome del buffer (prima del prefisso, quando più buffer sono uniti con lo stesso nome)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: brown)

  • weechat.color.chat_prefix_buffer_inactive_buffer

    • descrizione: colore del testo per il nome del buffer inattivo (prima del prefisso, quando più buffer sono uniti con lo stesso numero e il buffer non è selezionato)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: default)

  • weechat.color.chat_prefix_error

    • descrizione: colore del testo per il prefisso di errore

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: yellow)

  • weechat.color.chat_prefix_join

    • descrizione: colore del testo per il prefisso di entrata

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: lightgreen)

  • weechat.color.chat_prefix_more

    • descrizione: colore del testo per '+' quando il prefisso è troppo lungo

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: lightmagenta)

  • weechat.color.chat_prefix_network

    • descrizione: colore del testo per il prefisso di rete

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: magenta)

  • weechat.color.chat_prefix_quit

    • descrizione: colore del testo per il prefisso di uscita

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: lightred)

  • weechat.color.chat_prefix_suffix

    • descrizione: colore del testo per il suffisso (dopo il prefisso)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: green)

  • weechat.color.chat_read_marker

    • descrizione: colore del testo per l'evidenziatore di dati non letti

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: magenta)

  • weechat.color.chat_read_marker_bg

    • descrizione: colore di sfondo per l'evidenziatore di dati non letti

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: default)

  • weechat.color.chat_server

    • descrizione: colore del testo per i nomi dei server

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: brown)

  • weechat.color.chat_tags

    • descrizione: colore del testo per i tago dopo i messaggi (mostrati con il comando /debug tags)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: red)

  • weechat.color.chat_text_found

    • descrizione: colore del testo per l'evidenziatore sulle righe per il testo trovato

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: yellow)

  • weechat.color.chat_text_found_bg

    • descrizione: colore di sfondo per l'evidenziatore sulle righe per il testo trovato

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: lightmagenta)

  • weechat.color.chat_time

    • descrizione: colore del testo per l'orario nella finestra di chat

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: default)

  • weechat.color.chat_time_delimiters

    • descrizione: colore del testo per i delimitator dell'orario

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: brown)

  • weechat.color.chat_value

    • descrizione: colore del testo per i valori

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: cyan)

  • weechat.color.emphasized

    • descrizione: text color for emphasized text (for example when searching text); this option is used only if option weechat.look.emphasized_attributes is an empty string (default value)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: yellow)

  • weechat.color.emphasized_bg

    • descrizione: background color for emphasized text (for example when searching text); used only if option weechat.look.emphasized_attributes is an empty string (default value)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: magenta)

  • weechat.color.input_actions

    • descrizione: colore del testo per le azioni sulla riga di input

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: lightgreen)

  • weechat.color.input_text_not_found

    • descrizione: colore del testo per la ricerca del testo fallita nella riga di input

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: red)

  • weechat.color.nicklist_away

    • descrizione: colore del testo per i nick assenti

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: cyan)

  • weechat.color.nicklist_group

    • descrizione: colore del testo per i gruppi nella lista nick

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: green)

  • weechat.color.nicklist_offline

    • descrizione: colore del testo per i nick non in linea

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: blue)

  • weechat.color.separator

    • descrizione: colore per i separatori delle finestre (quando divise) e dei separatori tra le barre (come la lista nick)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: blue)

  • weechat.color.status_count_highlight

    • descrizione: colore del testo per il conteggio dei messaggi di notifica nella hotlist (barra di stato)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: magenta)

  • weechat.color.status_count_msg

    • descrizione: colore del testo per il conteggio dei messaggi nella hotlist (barra di stato)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: brown)

  • weechat.color.status_count_other

    • descrizione: colore del testo per il conteggio di altri messaggi nella hotlist (barra di stato)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: default)

  • weechat.color.status_count_private

    • descrizione: colore del testo per il conteggio dei messaggi privati nella hotlist (barra di stato)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: green)

  • weechat.color.status_data_highlight

    • descrizione: colore del testo per il buffer con notifica (barra di stato)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: lightmagenta)

  • weechat.color.status_data_msg

    • descrizione: colore del testo per il buffer con nuovi messaggi (barra di stato)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: yellow)

  • weechat.color.status_data_other

    • descrizione: colore del testo per il buffer con nuovi dati (non messaggi) (barra di stato)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: default)

  • weechat.color.status_data_private

    • descrizione: colore del testo per il buffer con un messaggio privato (barra di stato)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: lightgreen)

  • weechat.color.status_filter

    • descrizione: colore del testo per l'indicatore di filtro nella barra di stato

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: green)

  • weechat.color.status_more

    • descrizione: colore del testo per il buffer con nuovi dati (barra di stato)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: yellow)

  • weechat.color.status_name

    • descrizione: colore del testo per il nome del buffer corrente nella barra di stato

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: white)

  • weechat.color.status_name_ssl

    • descrizione: colore del testo per il nome del buffer corrente nella barra di stato, se i dati sono messi al sicuro con un protocollo come SSL

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: lightgreen)

  • weechat.color.status_nicklist_count

    • descrizione: text color for number of nicks in nicklist (status bar)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: default)

  • weechat.color.status_number

    • descrizione: colore del testo per il numero del buffer corrente nella barra di stato

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: yellow)

  • weechat.color.status_time

    • descrizione: colore del testo per l'ora (barra di stato)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: default)

  • weechat.completion.base_word_until_cursor

    • descrizione: se abilitata, la parola base da completare termina al carattere prima del cursore; altrimenti la parola base termina al primo spazio dopo il cursore

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.completion.default_template

    • descrizione: modello di completamento predefinito (per favore, consulta la documentazione per codici e valori del template: Referenze API per Plugin, funzione "weechat_hook_command")

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "%(nicks)|%(irc_channels)")

  • weechat.completion.nick_add_space

    • descrizione: aggiungi uno spazio al completamento del nick (quando non è la prima parola sulla riga di comando)

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.completion.nick_completer

    • descrizione: stringa inserita dopo il completamento del nick (quando il nick è la prima parola sulla riga di comando)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: ":")

  • weechat.completion.nick_first_only

    • descrizione: completa solo con il primo nick trovato

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.completion.nick_ignore_chars

    • descrizione: caratteri ignorati per il completamento dei nick

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "[]`_-^")

  • weechat.completion.partial_completion_alert

    • descrizione: avvisa l'utente quando si verifica un completamento parziale

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.completion.partial_completion_command

    • descrizione: completa parzialmente i nomi dei comandi (arresta quando vengono trovati più comandi con le stesse lettere)

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.completion.partial_completion_command_arg

    • descrizione: completa parzialmente gli argomenti dei comandi (arresta quando vengono trovati più argomenti con lo stesso prefisso)

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.completion.partial_completion_count

    • descrizione: mostra contatore per ogni completamento parziale nella barra degli oggetti

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.completion.partial_completion_other

    • descrizione: completa parzialmente comandi esterni (arresta quando vengono trovate più parole che iniziano con le stesse lettere)

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.history.display_default

    • descrizione: numero massimo predefinito di comandi da visualizzare nella cronologia (0 = nessun limite)

    • tipo: intero

    • valori: 0 .. 2147483647 (valore predefinito: 5)

  • weechat.history.max_buffer_lines_minutes

    • descrizione: maximum number of minutes in history per buffer (0 = unlimited); examples: 1440 = one day, 10080 = one week, 43200 = one month, 525600 = one year; use 0 ONLY if option weechat.history.max_buffer_lines_number is NOT set to 0

    • tipo: intero

    • valori: 0 .. 2147483647 (valore predefinito: 0)

  • weechat.history.max_buffer_lines_number

    • descrizione: maximum number of lines in history per buffer (0 = unlimited); use 0 ONLY if option weechat.history.max_buffer_lines_minutes is NOT set to 0

    • tipo: intero

    • valori: 0 .. 2147483647 (valore predefinito: 4096)

  • weechat.history.max_commands

    • descrizione: maximum number of user commands in history (0 = unlimited, NOT RECOMMENDED: no limit in memory usage)

    • tipo: intero

    • valori: 0 .. 2147483647 (valore predefinito: 100)

  • weechat.history.max_visited_buffers

    • descrizione: numero massimo di buffer visitati da memorizzare

    • tipo: intero

    • valori: 0 .. 1000 (valore predefinito: 50)

  • weechat.look.align_end_of_lines

    • descrizione: allineamento per la fine delle righe (tutte le righe tranne la prima): iniziano al di sotto di questi dati (data, buffer, prefissio, suffisso, messaggio (predefinito))

    • tipo: intero

    • valori: time, buffer, prefix, suffix, message (valore predefinito: message)

  • weechat.look.bar_more_down

    • descrizione: stringa visualizzata quando si può effettuare lo scroll della barra il basso (per le barre che hanno il riempimento "horizontal")

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "++")

  • weechat.look.bar_more_left

    • descrizione: stringa visualizzata quando si può effettuare lo scroll della barra verso sinistra (per le barre che hanno il riempimento "horizontal")

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "<<")

  • weechat.look.bar_more_right

    • descrizione: stringa visualizzata quando si può effettuare lo scroll della barra verso destra (per le barre che hanno il riempimento "horizontal")

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: ">>")

  • weechat.look.bar_more_up

    • descrizione: stringa visualizzata quando si può effettuare lo scroll della barra verso l'alto (per le barre che hanno il riempimento "horizontal")

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "--")

  • weechat.look.bare_display_exit_on_input

    • descrizione: exit the bare display mode on any changes in input

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.bare_display_time_format

    • descrizione: time format in bare display mode (see man strftime for date/time specifiers)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "%H:%M")

  • weechat.look.buffer_auto_renumber

    • descrizione: automatically renumber buffers to have only consecutive numbers and start with number 1; if disabled, gaps between buffer numbers are allowed and the first buffer can have a number greater than 1

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.buffer_notify_default

    • descrizione: livello predefinito di notifica per i buffer (usato per comunicare a WeeChat se il buffer deve essere visualizzato nella hotlist oppure no, a seconda dell'importanza del messaggio): all: tutti i messaggi (predefinito), message=messaggi+notifiche, highlight=solo notifiche, none=non viene mai visualizzato nella hotlist

    • tipo: intero

    • valori: none, highlight, message, all (valore predefinito: all)

  • weechat.look.buffer_position

    • descrizione: position of a new buffer: end = after the end of list (number = last number + 1) (default), first_gap = at first available number in the list (after the end of list if no number is available); this option is used only if the buffer has no layout number

    • tipo: intero

    • valori: end, first_gap (valore predefinito: end)

  • weechat.look.buffer_search_case_sensitive

    • descrizione: default text search in buffer: case sensitive or not

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.look.buffer_search_force_default

    • descrizione: force default values for text search in buffer (instead of using values from last search in buffer)

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.look.buffer_search_regex

    • descrizione: default text search in buffer: if enabled, search POSIX extended regular expression, otherwise search simple string

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.look.buffer_search_where

    • descrizione: default text search in buffer: in message, prefix, prefix and message

    • tipo: intero

    • valori: prefix, message, prefix_message (valore predefinito: prefix_message)

  • weechat.look.buffer_time_format

    • descrizione: time format for each line displayed in buffers (see man strftime for date/time specifiers) (note: content is evaluated, so you can use colors with format "${color:xxx}", see /help eval); for example time using grayscale (requires support of 256 colors): "${color:252}%H${color:245}%M${color:240}%S"

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "%H:%M:%S")

  • weechat.look.color_basic_force_bold

    • descrizione: forza l'attributo "bold" per i colori chiari e "darkgray" nei colori di base (questa opzione è disabilitata per default: il grassetto è usato solo se il terminale ha meno di 16 colori)

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.look.color_inactive_buffer

    • descrizione: usa un colore diverso per le righe nel buffer inattivo (quando la riga viene da un buffer unito non selezionato)

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.color_inactive_message

    • descrizione: usa un colore diverso per un messaggio inattivo (quando la finestra non è quella corrente, o se la riga viene da un buffer unito non selezionato)

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.color_inactive_prefix

    • descrizione: usa un colore diverso per il prefisso inattivo (quando la finestra non è quella corrente, o se la riga viene da un buffer unito non selezionato)

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.color_inactive_prefix_buffer

    • descrizione: usa un colore diverso per il nome del buffer inattivo nel prefisso (quando la finestra non è quella corrente, o se la riga viene da un buffer unito non selezionato)

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.color_inactive_time

    • descrizione: usa un colore diverso per il tempo di inattività (quando la finestra non è quella corrente, o se la riga viene da un buffer unito non selezionato)

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.look.color_inactive_window

    • descrizione: usa un colore diverso per le righe nella finestra inattiva (quando la finestra non è quella corrente)

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.color_nick_offline

    • descrizione: usa un colore diverso per i nick non in linea (non più in lista nick)

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.look.color_pairs_auto_reset

    • descrizione: ripristina automaticamente la tabella delle coppie colore quando il numero di coppie disponibili è minore o uguale a questo numero (-1 = disabilita il ripristino automatico, dunque è necessario "/color reset" quando la tabella è al completo)

    • tipo: intero

    • valori: -1 .. 256 (valore predefinito: 5)

  • weechat.look.color_real_white

    • descrizione: se impostato, usa il colore bianco reale, disabilitato sui terminali con lo sfondo bianco (se non usato, l'opzione dovrebbe essere attivata per visualizzare il bianco reale invece del colore di primo piano predefinito del terminale)

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.look.command_chars

    • descrizione: caratteri usati per determinare se la stringa in input è un comando oppure no: l'input deve iniziare con uno di questi caratteri: la barra ("/") è sempre considerata come prefisso per comando (esempio: ".$")

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "")

  • weechat.look.confirm_quit

    • descrizione: se impostata, il comando /quit deve essere confermato con l'argomento extra "-yes" (consultare /help quit)

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.look.day_change

    • descrizione: mostra un messaggio speciale al cambio di data

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.day_change_message_1date

    • descrizione: message displayed when the day has changed, with one date displayed (for example at beginning of buffer) (see man strftime for date/time specifiers) (note: content is evaluated, so you can use colors with format "${color:xxx}", see /help eval)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "-- %a, %d %b %Y --")

  • weechat.look.day_change_message_2dates

    • descrizione: message displayed when the day has changed, with two dates displayed (between two messages); the second date specifiers must start with two "%" because strftime is called two times on this string (see man strftime for date/time specifiers) (note: content is evaluated, so you can use colors with format "${color:xxx}", see /help eval)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "-- %%a, %%d %%b %%Y (%a, %d %b %Y) --")

  • weechat.look.eat_newline_glitch

    • descrizione: se attivo, eat_newline_glitch verrà impostato a 0; viene usato per non aggiungere il carattere a capo alla fine di ogni riga, al fine di non danneggiare il testo quando viene copiato/incollato da WeeChat in un'altra applicazione (l'opzione è disabilitata per default, dato che può causare seri errori di visualizzazione)

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.look.emphasized_attributes

    • descrizione: attributes for emphasized text: one or more attribute chars ("*" for bold, "!" for reverse, "/" for italic, "_" for underline); if the string is empty, the colors weechat.color.emphasized* are used

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "")

  • weechat.look.highlight

    • descrizione: elenco separato da virgole di parole da notificare; confronto non sensibile alle maiuscole (usare "(?-i)" all'inizio delle parole per renderle sensibili alle maiuscole), le parole possono iniziare o terminare con "*" per la corrispondenza parziale; ad esempio: "test,(?-i)*tizio*,flash*"

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "")

  • weechat.look.highlight_regex

    • descrizione: POSIX extended regular expression used to check if a message has highlight or not, at least one match in string must be surrounded by delimiters (chars different from: alphanumeric, "-", "_" and "|"), regular expression is case insensitive (use "(?-i)" at beginning to make it case sensitive), examples: "flashcode|flashy", "(?-i)FlashCode|flashy"

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "")

  • weechat.look.highlight_tags

    • descrizione: comma separated list of tags to highlight; case insensitive comparison; wildcard "*" is allowed in each tag; many tags can be separated by "+" to make a logical "and" between tags; examples: "nick_flashcode" for messages from nick "FlashCode", "irc_notice+nick_toto*" for notices from a nick starting with "toto"

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "")

  • weechat.look.hotlist_add_conditions

    • descrizione: conditions to add a buffer in hotlist (if notify level is OK for the buffer); you can use in these conditions: "window" (current window pointer), "buffer" (buffer pointer to add in hotlist), "priority" (0 = low, 1 = message, 2 = private, 3 = highlight); by default a buffer is added to hotlist if you are away, or if the buffer is not visible on screen (not displayed in any window)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "${away} || ${buffer.num_displayed} == 0")

  • weechat.look.hotlist_buffer_separator

    • descrizione: stringa mostrata tra i buffer nella hotlist

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: ", ")

  • weechat.look.hotlist_count_max

    • descrizione: numero massimo del conteggio di messaggi da mostrare nella hotlist per un buffer (0 = non mostrare mai il contatore messaggi)

    • tipo: intero

    • valori: 0 .. 4 (valore predefinito: 2)

  • weechat.look.hotlist_count_min_msg

    • descrizione: mostra il conteggio dei messaggi se il numero di messaggi è maggiore o uguale a questo valore

    • tipo: intero

    • valori: 1 .. 100 (valore predefinito: 2)

  • weechat.look.hotlist_names_count

    • descrizione: numero massimo di nomi nella hotlist (0 = nessun nome visualizzato, solo numeri dei buffer)

    • tipo: intero

    • valori: 0 .. 10000 (valore predefinito: 3)

  • weechat.look.hotlist_names_length

    • descrizione: lunghezza massima dei nomi nella hotlist (0 = nessun limite)

    • tipo: intero

    • valori: 0 .. 32 (valore predefinito: 0)

  • weechat.look.hotlist_names_level

    • descrizione: livello per la visualizzazione dei nomi nella hotlist (combinazione di: 1=entrata/uscita, 2=messaggio, 4=privato, 8=notifica, per esempio: 12=privato+notifica)

    • tipo: intero

    • valori: 1 .. 15 (valore predefinito: 12)

  • weechat.look.hotlist_names_merged_buffers

    • descrizione: se impostato, forza la visualizzazione dei nomi nella hotlist per i buffer uniti

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.look.hotlist_prefix

    • descrizione: testo mostrato in cima alla hotlist

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "H: ")

  • weechat.look.hotlist_remove

    • descrizione: remove buffers in hotlist: buffer = remove buffer by buffer, merged = remove all visible merged buffers at once

    • tipo: intero

    • valori: buffer, merged (valore predefinito: merged)

  • weechat.look.hotlist_short_names

    • descrizione: se impostato, usa i nomi brevi per visualizzare i nomi dei buffer nella hotlist (inizia dopo il primo '.' nel nome)

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.hotlist_sort

    • descrizione: sort of hotlist: group_time_*: group by notify level (highlights first) then sort by time, group_number_*: group by notify level (highlights first) then sort by number, number_*: sort by number; asc = ascending sort, desc = descending sort

    • tipo: intero

    • valori: group_time_asc, group_time_desc, group_number_asc, group_number_desc, number_asc, number_desc (valore predefinito: group_time_asc)

  • weechat.look.hotlist_suffix

    • descrizione: testo mostrato in fondo alla hotlist

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "")

  • weechat.look.hotlist_unique_numbers

    • descrizione: mantiene solo numeri univoci nella hotlist (vale solo per gli elementi della hotlist per cui il nome NON viene visualizzato dopo il numero)

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.input_cursor_scroll

    • descrizione: numero di caratteri mostrati dopo la fine della riga di input quando si scorre per mostrare la fine riga

    • tipo: intero

    • valori: 0 .. 100 (valore predefinito: 20)

  • weechat.look.input_share

    • descrizione: condivide comandi, testo o entrambi nell'input per tutti i buffer (resta tuttavia la cronologia locale per ogni buffer)

    • tipo: intero

    • valori: none, commands, text, all (valore predefinito: none)

  • weechat.look.input_share_overwrite

    • descrizione: se impostato e con l'input condiviso, sovrascrive sempre l'input nel buffer di destinazione

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.look.input_undo_max

    • descrizione: numero massimo di righe nella cronologia per buffer (0 = nessun limite)

    • tipo: intero

    • valori: 0 .. 65535 (valore predefinito: 32)

  • weechat.look.item_buffer_filter

    • descrizione: stringa usata per mostrare che alcune righe sono state filtrate nel buffer corrente (elemento barra "buffer_filter")

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "*")

  • weechat.look.item_buffer_zoom

    • descrizione: string used to show zoom on merged buffer (bar item "buffer_zoom")

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "!")

  • weechat.look.item_time_format

    • descrizione: formato dell'ora per l'elemento barra "time" (consultare man strftime per gli specificatori data/ora)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "%H:%M")

  • weechat.look.jump_current_to_previous_buffer

    • descrizione: passa al buffer visualizzato in precedenza al passaggio del numero di buffer corrente con /buffer *N (dove N è un numero di buffer), per passare facilmente ad un altro buffer, e poi tornare a quello attuale

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.jump_previous_buffer_when_closing

    • descrizione: passa al buffer visitato in precedenza alla chiusura di un buffer (se disabilitato, allora passa al buffer numero -1)

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.jump_smart_back_to_buffer

    • descrizione: torna al buffer iniziale dopo aver raggiunto la fine della hotlist

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.key_bind_safe

    • descrizione: consente solo l'associazione di tasti "sicuri" (che iniziano con ctrl o alt)

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.mouse

    • descrizione: abilita il supporto del mouse

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.look.mouse_timer_delay

    • descrizione: ritardo (in millisecondi) per catturare un evento del mouse: WeeChat attende questo ritardo prima di analizzare l'evento

    • tipo: intero

    • valori: 1 .. 10000 (valore predefinito: 100)

  • weechat.look.nick_prefix

    • descrizione: testo da visualizzare prima del nick nel prefisso del messaggio, esempio: "<"

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "")

  • weechat.look.nick_suffix

    • descrizione: testo da visualizzare dopo il nick nel prefisso del messaggio, esempio: ">"

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "")

  • weechat.look.paste_bracketed

    • descrizione: abilita la modalità "bracketed paste" per il terminale (non supportata da tutti i terminali/multiplexer): in questa modalità, il testo incollato viene racchiuso da sequenze di controllo in modo che WeeChat possa differenziare il testo incollato dal testo digitato ("ESC[200~", seguito dal testo incollato, seguito da "ESC[201~")

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.paste_bracketed_timer_delay

    • descrizione: forza la fine della modalità "bracketed paste" dopo questo ritardo (in secondi) se la sequenza di controllo per la fine del "bracketed paste" ("ESC[201~") non è stata ricevuta in tempo

    • tipo: intero

    • valori: 1 .. 60 (valore predefinito: 10)

  • weechat.look.paste_max_lines

    • descrizione: numero massimo di righe da incollare senza conferma dell'utente (-1 = disabilita questa caratteristica)

    • tipo: intero

    • valori: -1 .. 2147483647 (valore predefinito: 1)

  • weechat.look.prefix_action

    • descrizione: prefix for action messages (note: content is evaluated, so you can use colors with format "${color:xxx}", see /help eval)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: " *")

  • weechat.look.prefix_align

    • descrizione: allineamento prefisso (none, left, right (predefinito))

    • tipo: intero

    • valori: none, left, right (valore predefinito: right)

  • weechat.look.prefix_align_max

    • descrizione: dimensione massima prefisso (0 = nessuna dimensione massima)

    • tipo: intero

    • valori: 0 .. 128 (valore predefinito: 0)

  • weechat.look.prefix_align_min

    • descrizione: dimensione minima per il prefisso

    • tipo: intero

    • valori: 0 .. 128 (valore predefinito: 0)

  • weechat.look.prefix_align_more

    • descrizione: carattere da mostrare se il prefisso è troncato (deve essere esattamente un carattere sullo schermo)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "+")

  • weechat.look.prefix_align_more_after

    • descrizione: display the truncature char (by default "+") after the text (by replacing the space that should be displayed here); if disabled, the truncature char replaces last char of text

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.prefix_buffer_align

    • descrizione: prefisso di allineamento per il nome del buffer, quando più buffer vengono uniti con lo stesso numero (none (nessuno), left(sinistra), right(destra - predefinito)

    • tipo: intero

    • valori: none, left, right (valore predefinito: right)

  • weechat.look.prefix_buffer_align_max

    • descrizione: allineamento del prefisso per nome buffer, quando più buffer sono uniti con lo stesso numero (0 = nessuna dimensione massima)

    • tipo: intero

    • valori: 0 .. 128 (valore predefinito: 0)

  • weechat.look.prefix_buffer_align_more

    • descrizione: carattere da mostrare se il nome del buffer è troncato (quando più buffer vengono uniti con lo stesso numero) (deve essere esattamente un carattere su schermo)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "+")

  • weechat.look.prefix_buffer_align_more_after

    • descrizione: display the truncature char (by default "+") after the text (by replacing the space that should be displayed here); if disabled, the truncature char replaces last char of text

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.prefix_error

    • descrizione: prefisso per i messaggi di errore (nota: il contenuto viene valutato, per cui è possibile usare colori con il formato "${color:xxx}", consultare /help eval

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "=!=")

  • weechat.look.prefix_join

    • descrizione: prefix for join messages (note: content is evaluated, so you can use colors with format "${color:xxx}", see /help eval)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "-->")

  • weechat.look.prefix_network

    • descrizione: prefix for network messages (note: content is evaluated, so you can use colors with format "${color:xxx}", see /help eval)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "--")

  • weechat.look.prefix_quit

    • descrizione: prefix for quit messages (note: content is evaluated, so you can use colors with format "${color:xxx}", see /help eval)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "<--")

  • weechat.look.prefix_same_nick

    • descrizione: prefisso mostrato per un messaggio con lo stesso nick del messaggio precedente: usare uno spazio " " per nascondere il prefisso, un'altra stringa per mostrare la stringa invece del prefisso, o una stringa vuota per disabilitare questa funzionalità (mostra prefisso)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "")

  • weechat.look.prefix_suffix

    • descrizione: stringa visualizzata dopo il prefisso

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "|")

  • weechat.look.read_marker

    • descrizione: usa segnalibro (riga o carattere) sui buffer per mostrare la prima riga non letta

    • tipo: intero

    • valori: none, line, char (valore predefinito: line)

  • weechat.look.read_marker_always_show

    • descrizione: mostra sempre il segnalibro, anche se si trova dopo l'ultima riga del buffer

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.look.read_marker_string

    • descrizione: stringa usata per tracciare il segnalibro (la stringa viene ripetuta fino a fine riga)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "- ")

  • weechat.look.save_config_on_exit

    • descrizione: salva file di configurazione all'uscita

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.save_layout_on_exit

    • descrizione: save layout on exit (buffers, windows, or both)

    • tipo: intero

    • valori: none, buffers, windows, all (valore predefinito: none)

  • weechat.look.scroll_amount

    • descrizione: le righe da scorrere con scroll_up e scroll_down

    • tipo: intero

    • valori: 1 .. 2147483647 (valore predefinito: 3)

  • weechat.look.scroll_bottom_after_switch

    • descrizione: scorri verso il fondo della finestra dopo essere passati ad un altro buffer non ricordare la posizione di scorrimento nelle finestre); lo scorrimento viene eseguito solo per i buffer con contenuto formattato (contenuto non libero)

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.look.scroll_page_percent

    • descrizione: percentuale della schermata da scorrere in alto o in basso (per esempio 100 indica una pagina intera, 50 metà)

    • tipo: intero

    • valori: 1 .. 100 (valore predefinito: 100)

  • weechat.look.search_text_not_found_alert

    • descrizione: avvisa l'utente quando il testo cercato non viene trovato nel buffer

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.separator_horizontal

    • descrizione: char used to draw horizontal separators around bars and windows (empty value will draw a real line with ncurses, but may cause bugs with URL selection under some terminals); width on screen must be exactly one char

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "-")

  • weechat.look.separator_vertical

    • descrizione: char used to draw vertical separators around bars and windows (empty value will draw a real line with ncurses); width on screen must be exactly one char

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "")

  • weechat.look.tab_width

    • descrizione: number of spaces used to display tabs in messages

    • tipo: intero

    • valori: 1 .. 64 (valore predefinito: 1)

  • weechat.look.time_format

    • descrizione: formato dell'ora per le date convertite in stringhe e mostrate nei messaggi(consultare man strftime per i dettagli su data/ora)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "%a, %d %b %Y %T")

  • weechat.look.window_auto_zoom

    • descrizione: automatically zoom on current window if the terminal becomes too small to display all windows (use alt-z to unzoom windows when the terminal is big enough)

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.look.window_separator_horizontal

    • descrizione: mostra un separatore orizzontale tra le finestre

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.window_separator_vertical

    • descrizione: mostra un separatore verticale tra le finestre

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.look.window_title

    • descrizione: title for window (terminal for Curses GUI), set on startup; an empty string will keep title unchanged (note: content is evaluated, see /help eval)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "WeeChat ${info:version}")

  • weechat.network.connection_timeout

    • descrizione: timeout (in secondi) per la connessione ad un host remoto (eseguita in un processo figlio)

    • tipo: intero

    • valori: 1 .. 2147483647 (valore predefinito: 60)

  • weechat.network.gnutls_ca_file

    • descrizione: file contenente le autorità certificative ("%h" sarà sostituito dalla home di WeeChat, predefinita: "~/.weechat)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "/etc/ssl/certs/ca-certificates.crt")

  • weechat.network.gnutls_handshake_timeout

    • descrizione: timeout (in secondi) per l'handshake di gnutls

    • tipo: intero

    • valori: 1 .. 2147483647 (valore predefinito: 30)

  • weechat.network.proxy_curl

    • descrizione: name of proxy used for download of URLs with Curl (used to download list of scripts and in scripts calling function hook_process); the proxy must be defined with command /proxy

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "")

  • weechat.plugin.autoload

    • descrizione: comma separated list of plugins to load automatically at startup, "*" means all plugins found, a name beginning with "!" is a negative value to prevent a plugin from being loaded, wildcard "*" is allowed in names (examples: "*" or "*,!lua,!tcl")

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "*")

  • weechat.plugin.debug

    • descrizione: abilita come predefinito il debug per tutti i plugin (opzione disabilita di default, caldamente raccomandato)

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • weechat.plugin.extension

    • descrizione: elenco separato da virgole di estensioni dei nomi file per i plugin

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: ".so,.dll")

  • weechat.plugin.path

    • descrizione: path per la ricerca dei plugin ("%h" sarà sostituito dalla home di WeeChat, "~/.weechat come predefinita)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "%h/plugins")

  • weechat.plugin.save_config_on_unload

    • descrizione: salva i file di configurazione allo scaricamento dei plugin

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.startup.command_after_plugins

    • descrizione: comando eseguito all'avvio di WeeChat, dopo il caricamento dei plugin (nota: il contenuto viene valutato, consultare /help eval)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "")

  • weechat.startup.command_before_plugins

    • descrizione: comando eseguito all'avvio di WeeChat, prima del caricamento dei plugin (nota: il contenuto viene valutato, consultare /help eval)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "")

  • weechat.startup.display_logo

    • descrizione: mostra il logo di WeeChat all'avvio

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.startup.display_version

    • descrizione: mostra la versione di WeeChat all'avvio

    • tipo: bool

    • valori: on, off (valore predefinito: on)

  • weechat.startup.sys_rlimit

    • descrizione: imposta limite delle risorse per il processo WeeChat, il formato è: "res1:limit1,res2,limit2"; il nome della risorsa è il componente finale della costante (RLIMIT_XXX) in caratteri minuscoli (consultare man setrlimit per i valori); il limite -1 vuol dire "illimitato"; esempio: imposta dimensione illimitata per il file core e 1GB massimo di memoria virtuale: "core:-1,as:1000000000"

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "")

3.12.3. Comandi di WeeChat

away imposta o elimina lo stato di assenza
/away  [-all] [<messaggio>]

     -all: imposta o elimina lo stato di assenza su tutti i server connessi
messaggio: messaggio di assenza (se non specificato, lo stato di assenza viene rimosso)
bar gestione delle barre
/bar  list|listfull|listitems
      add <nome> <type>[,<condizione>] <posizione> <dimensione> <separatore> <item1>[,<item2>...]
      default [input|title|status|nicklist]
      del <nome>|-all
      set <nome> <opzione> <valore>
      hide|show|toggle <nome>
      scroll <nome> <finestra> <scroll_value>

         list: list all bars
     listfull: list all bars (verbose)
    listitems: list all bar items
          add: add a new bar
         name: name of bar (must be unique)
         type:   root: outside windows,
               window: inside windows, with optional conditions (see below)
    condition: condition(s) for displaying bar (only for type "window"):
                 active: on active window
               inactive: on inactive windows
               nicklist: on windows with nicklist
               other condition: see /help weechat.bar.xxx.conditions and /help eval
               without condition, the bar is always displayed
     position: bottom, top, left or right
         size: size of bar (in chars)
    separator: 1 for using separator (line), 0 or nothing means no separator
    item1,...: items for this bar (items can be separated by comma (space between items) or "+" (glued items))
      default: create a default bar (all default bars if no bar name is given)
          del: delete a bar (or all bars with -all)
          set: set a value for a bar property
       option: option to change (for options list, look at /set weechat.bar.<barname>.*)
        value: new value for option
         hide: hide a bar
         show: show an hidden bar
       toggle: hide/show a bar
       scroll: scroll bar
       window: window number (use '*' for current window or for root bars)
 scroll_value: value for scroll: 'x' or 'y' (optional), followed by '+', '-', 'b' (beginning) or 'e' (end), value (for +/-), and optional % (to scroll by % of width/height, otherwise value is number of chars)

Examples:
  create a bar with time, buffer number + name, and completion:
    /bar add mybar root bottom 1 0 [time],buffer_number+:+buffer_name,completion
  hide a bar:
    /bar hide mybar
  scroll nicklist 10 lines down on current buffer:
    /bar scroll nicklist * y+10
  scroll to end of nicklist on current buffer:
    /bar scroll nicklist * ye
buffer gestione dei buffer
/buffer  list
         clear [<number>|<name>|-merged|-all [<number>|<name>...]]
         move <number>|-|+
         swap <number1>|<name1> [<number2>|<name2>]
         merge <number>
         unmerge [<number>|-all]
         hide [<number>|<name>|-all [<number>|<name>...]]
         unhide [<number>|<name>|-all [<number>|<name>...]]
         renumber [<number1> [<number2> [<start>]]]
         close [<n1>[-<n2>]|<name>]
         notify <level>
         localvar
         set <property> <value>
         get <property>
         <number>|-|+|<name>

    list: list buffers (without argument, this list is displayed)
   clear: clear buffer content (number for a buffer, -merged for merged buffers, -all for all buffers, or nothing for current buffer)
    move: move buffer in the list (may be relative, for example -1); "-" = move to first buffer number, "+" = move to last buffer number + 1
    swap: swap two buffers (swap with current buffer if only one number/name given)
   merge: merge current buffer to another buffer (chat area will be mix of both buffers)
          (by default ctrl-x switches between merged buffers)
 unmerge: unmerge buffer from other buffers which have same number
    hide: hide the buffer
  unhide: unhide the buffer
renumber: renumber buffers (works only if option weechat.look.buffer_auto_renumber is off)
   close: close buffer (number/range or name is optional)
  notify: set notify level for current buffer: this level determines whether buffer will be added to hotlist or not:
               none: never
          highlight: for highlights only
            message: for messages from users + highlights
                all: all messages
              reset: reset to default value (all)
localvar: display local variables for current buffer
     set: set a property for current buffer
     get: display a property of current buffer
  number: jump to buffer by number, possible prefix:
          '+': relative jump, add number to current
          '-': relative jump, sub number to current
          '*': jump to number, using option "weechat.look.jump_current_to_previous_buffer"
       -: jump to first buffer number
       +: jump to last buffer number
    name: jump to buffer by (partial) name

Examples:
  clear current buffer:
    /buffer clear
  move buffer to number 5:
    /buffer move 5
  swap buffer 1 with 3:
    /buffer swap 1 3
  swap buffer #weechat with current buffer:
    /buffer swap #weechat
  merge with core buffer:
    /buffer merge 1
  unmerge buffer:
    /buffer unmerge
  close current buffer:
    /buffer close
  close buffers 5 to 7:
    /buffer close 5-7
  jump to #weechat:
    /buffer #weechat
  jump to next buffer:
    /buffer +1
  jump to last buffer number:
    /buffer +
color definisce gli alias dei colori e visualizza la tavolozza dei colori
/color  alias <color> <name>
        unalias <color>
        reset
        term2rgb <color>
        rgb2term <rgb> [<limit>]
        -o

   alias: add an alias for a color
 unalias: delete an alias
   color: color number (greater than or equal to 0, max depends on terminal, commonly 63 or 255)
    name: alias name for color (for example: "orange")
   reset: reset all color pairs (required when no more color pairs are available if automatic reset is disabled, see option weechat.look.color_pairs_auto_reset)
term2rgb: convert a terminal color (0-255) to RGB color
rgb2term: convert a RGB color to terminal color (0-255)
   limit: number of colors to use in terminal table (starting from 0); default is 256
      -o: send terminal/colors info to current buffer as input

Without argument, this command displays colors in a new buffer.

Examples:
  add alias "orange" for color 214:
    /color alias 214 orange
  delete color 214:
    /color unalias 214
command esegui comando o plugin di WeeChat esplicito
/command  [-buffer <name>] <plugin> <command>

-buffer: execute the command on this buffer
 plugin: execute the command from this plugin; 'core' for a WeeChat command, '*' for automatic plugin (it depends on the buffer where the command is executed)
command: command to execute (a '/' is automatically added if not found at beginning of command)
cursor movimento libero del cursore sullo schermo per eseguire azioni su aree specifiche dello schermo
/cursor  go chat|<barra>|<x>,<y>
         move up|down|left|right|area_up|area_down|area_left|area_right
         stop

  go: sposta il cursore su un'area di chat, una barra (usando il nome della barra) o le coordinate "x.y"
move: sposta il cursore con direzione
stop: interrompe la modalità cursore

Senza argomenti, il comando abilita/disabilita la modalità cursore

Quando il mouse è abilitato (consultare /help mouse), per default il click con il tasto centrale avvia la modalità cursore in questa posizione.

Esempi:
  vai alla lista nick:
    /cursor go nicklist
  vai alle coordinate x=10, y=5:
    /cursor go 10,5
debug attiva debug per core/plugin
/debug  list
        set <plugin> <livello>
        dump [<plugin>]
        buffer|color|infolists|memory|tags|term|windows
        mouse|cursor [verbose]
        hdata [free]

     list: list plugins with debug levels
      set: set debug level for plugin
   plugin: name of plugin ("core" for WeeChat core)
    level: debug level for plugin (0 = disable debug)
     dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)
   buffer: dump buffer content with hexadecimal values in log file
    color: display infos about current color pairs
   cursor: toggle debug for cursor mode
     dirs: display directories
    hdata: display infos about hdata (with free: remove all hdata in memory)
    hooks: display infos about hooks
infolists: display infos about infolists
     libs: display infos about external libraries used
   memory: display infos about memory usage
    mouse: toggle debug for mouse
     tags: display tags for lines
     term: display infos about terminal
  windows: display windows tree
eval evaluate expression
/eval  [-n] <espressione>
       [-n] -c <espressione1> <operatore> <espressione2>

        -n: display result without sending it to buffer (debug mode)
        -c: evaluate as condition: use operators and parentheses, return a boolean value ("0" or "1")
expression: expression to evaluate, variables with format ${variable} are replaced (see below); many commands can be separated by semicolons
  operator: a logical or comparison operator:
            - logical operators:
                &&  boolean "and"
                ||  boolean "or"
            - comparison operators:
                ==  equal
                !=  not equal
                <=  less or equal
                <   less
                >=  greater or equal
                >   greater
                =~  is matching POSIX extended regex
                !~  is NOT matching POSIX extended regex

An expression is considered as "true" if it is not NULL, not empty, and different from "0".
The comparison is made using integers if the two expressions are valid integers.
To force a string comparison, add double quotes around each expression, for example:
  50 > 100      ==> 0
  "50" > "100"  ==> 1

Some variables are replaced in expression, using the format ${variable}, variable can be, by order of priority:
  1. a string with escaped chars (format: "esc:xxx" or "\xxx")
  2. a color (format: "color:xxx")
  3. an info (format: "info:name,arguments", arguments are optional)
  4. an option (format: "file.section.option")
  5. a local variable in buffer
  6. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer.
Format for hdata can be one of following:
  hdata.var1.var2...: start with a hdata (pointer must be known), and ask variables one after one (other hdata can be followed)
  hdata[list].var1.var2...: start with a hdata using a list, for example:
    ${buffer[gui_buffers].full_name}: full name of first buffer in linked list of buffers
    ${plugin[weechat_plugins].name}: name of first plugin in linked list of plugins
For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get".

Examples (simple strings):
  /eval -n ${info:version}                 ==> 0.4.3
  /eval -n ${weechat.look.scroll_amount}   ==> 3
  /eval -n ${window}                       ==> 0x2549aa0
  /eval -n ${window.buffer}                ==> 0x2549320
  /eval -n ${window.buffer.full_name}      ==> core.weechat
  /eval -n ${window.buffer.number}         ==> 1
  /eval -n ${\t}                           ==> <tab>

Examples (conditions):
  /eval -n -c ${window.buffer.number} > 2  ==> 0
  /eval -n -c ${window.win_width} > 100    ==> 1
  /eval -n -c (8 > 12) || (5 > 2)          ==> 1
  /eval -n -c (8 > 12) && (5 > 2)          ==> 0
  /eval -n -c abcd =~ ^ABC                 ==> 1
  /eval -n -c abcd =~ (?-i)^ABC            ==> 0
  /eval -n -c abcd =~ (?-i)^abc            ==> 1
  /eval -n -c abcd !~ abc                  ==> 0
filter filtra messaggi nei buffer, per nascondere/mostrare in base a tag o regexp
/filter  list
         enable|disable|toggle [<name>|@]
         add <name> <buffer>[,<buffer>...] <tags> <regex>
         rename <name> <new_name>
         del <name>|-all

   list: list all filters
 enable: enable filters (filters are enabled by default)
disable: disable filters
 toggle: toggle filters
   name: filter name ("@" = enable/disable all filters in current buffer)
    add: add a filter
 rename: rename a filter
    del: delete a filter
   -all: delete all filters
 buffer: comma separated list of buffers where filter is active:
         - this is full name including plugin (example: "irc.freenode.#weechat")
         - "*" means all buffers
         - a name starting with '!' is excluded
         - wildcard "*" is allowed
   tags: comma separated list of tags, for example "irc_join,irc_part,irc_quit"
         - logical "and": use "+" between tags (for example: "nick_toto+irc_action")
         - wildcard "*" is allowed
         - if tag starts with '!', then it is excluded and must NOT be in message
  regex: POSIX extended regular expression to search in line
         - use '\t' to separate prefix from message, special chars like '|' must be escaped: '\|'
         - if regex starts with '!', then matching result is reversed (use '\!' to start with '!')
         - two regular expressions are created: one for prefix and one for message
         - regex are case insensitive, they can start by "(?-i)" to become case sensitive

The default key alt+'=' toggles filtering on/off.

Tags most commonly used:
  no_filter, no_highlight, no_log, log0..log9 (log level),
  notify_none, notify_message, notify_private, notify_highlight,
  nick_xxx (xxx is nick in message), prefix_nick_ccc (ccc is color of nick),
  host_xxx (xxx is username + host in message),
  irc_xxx (xxx is command name or number, see /server raw or /debug tags),
  irc_numeric, irc_error, irc_action, irc_ctcp, irc_ctcp_reply, irc_smart_filter, away_info.
To see tags for lines in buffers: /debug tags

Examples:
  use IRC smart filter on all buffers:
    /filter add irc_smart * irc_smart_filter *
  use IRC smart filter on all buffers except those with "#weechat" in name:
    /filter add irc_smart *,!*#weechat* irc_smart_filter *
  filter all IRC join/part/quit messages:
    /filter add joinquit * irc_join,irc_part,irc_quit *
  filter nicks displayed when joining channels or with /names:
    /filter add nicks * irc_366 *
  filter nick "toto" on IRC channel #weechat:
    /filter add toto irc.freenode.#weechat nick_toto *
  filter IRC join/action messages from nick "toto":
    /filter add toto * nick_toto+irc_join,nick_toto+irc_action *
  filter lines containing "weechat sucks" on IRC channel #weechat:
    /filter add sucks irc.freenode.#weechat * weechat sucks
help visualizza l’aiuto su comandi e opzioni
/help  -list|-listfull [<plugin> [<plugin>...]]
       <comando>
       <opzione>

    -list: elenca i comandi, per plugin (senza argomento, viene mostrata questa lista)
-listfull: elenca i comandi con la relativa descrizione, per plugin
   plugin: elenca i comandi per questo plugin
  comando: nome di un comando
  opzione: nome di un'opzione (usare /set per consultare la lista)
history mostra la cronologia dei comandi del buffer
/history  <clear
          valore>

 clear: pulisci cronologia
valore: numero delle voci nella cronologia da mostrare
input funzioni per la riga di comando
/input  <azioni> [<argomenti>]

list of actions:
  return: simulate key "enter"
  complete_next: complete word with next completion
  complete_previous: complete word with previous completion
  search_text: search text in buffer
  search_switch_case: switch exact case for search
  search_switch_regex: switch search type: string/regular expression
  search_switch_where: switch search in messages/prefixes
  search_previous: search previous line
  search_next: search next line
  search_stop: stop search
  delete_previous_char: delete previous char
  delete_next_char: delete next char
  delete_previous_word: delete previous word
  delete_next_word: delete next word
  delete_beginning_of_line: delete from beginning of line until cursor
  delete_end_of_line: delete from cursor until end of line
  delete_line: delete entire line
  clipboard_paste: paste from clipboard
  transpose_chars: transpose two chars
  undo: undo last command line action
  redo: redo last command line action
  move_beginning_of_line: move cursor to beginning of line
  move_end_of_line: move cursor to end of line
  move_previous_char: move cursor to previous char
  move_next_char: move cursor to next char
  move_previous_word: move cursor to previous word
  move_next_word: move cursor to next word
  history_previous: recall previous command in current buffer history
  history_next: recall next command in current buffer history
  history_global_previous: recall previous command in global history
  history_global_next: recall next command in global history
  jump_smart: jump to next buffer with activity
  jump_last_buffer_displayed: jump to last buffer displayed (before last jump to a buffer)
  jump_previously_visited_buffer: jump to previously visited buffer
  jump_next_visited_buffer: jump to next visited buffer
  hotlist_clear: clear hotlist
  grab_key: grab a key (optional argument: delay for end of grab, default is 500 milliseconds)
  grab_key_command: grab a key with its associated command (optional argument: delay for end of grab, default is 500 milliseconds)
  grab_mouse: grab mouse event code
  grab_mouse_area: grab mouse event code with area
  set_unread: set unread marker for all buffers
  set_unread_current_buffer: set unread marker for current buffer
  switch_active_buffer: switch to next merged buffer
  switch_active_buffer_previous: switch to previous merged buffer
  zoom_merged_buffer: zoom on merged buffer
  insert: insert text in command line (escaped chars are allowed, see /help print)
  send: send text to the buffer
  paste_start: start paste (bracketed paste mode)
  paste_stop: stop paste (bracketed paste mode)

This command is used by key bindings or plugins.
key associa/disassocia tasti
/key  list|listdefault|listdiff [<contesto>]
      bind <tasto> [<comando> [<arg>]]
      bindctxt <contesto> <tasto> [<comando> <arg>]]
      unbind <tasto>
      unbindctxt <contesto> <chiave>
      reset <tasto>
      resetctxt <contesto> <tasto>
      resetall -yes [<contesto>]
      missing [<contesto>]

       list: list all current keys (without argument, this list is displayed)
listdefault: list default keys
   listdiff: list differences between current and default keys (keys added, redefined or deleted)
    context: name of context ("default" or "search")
       bind: bind a command to a key or display command bound to key (for context "default")
   bindctxt: bind a command to a key or display command bound to key, for given context
    command: command (many commands can be separated by semicolons)
     unbind: remove a key binding (for context "default")
 unbindctxt: remove a key binding for given context
      reset: reset a key to default binding (for context "default")
  resetctxt: reset a key to default binding, for given context
   resetall: restore bindings to the default values and delete ALL personal bindings (use carefully!)
    missing: add missing keys (using default bindings), useful after installing new WeeChat version

When binding a command to a key, it is recommended to use key alt+k (or Esc then k), and then press the key to bind: this will insert key code in command line.

For context "mouse" (possible in context "cursor" too), key has format: "@area:key" or "@area1>area2:key" where area can be:
          *: any area on screen
       chat: chat area (any buffer)
  chat(xxx): char area for buffer with name "xxx" (full name including plugin)
     bar(*): any bar
   bar(xxx): bar "xxx"
    item(*): any bar item
  item(xxx): bar item "xxx"
Wildcard "*" is allowed in key to match many mouse events.
A special value for command with format "hsignal:name" can be used for context mouse, this will send the hsignal "name" with the focus hashtable as argument.
Another special value "-" can be used to disable key (it will be ignored when looking for keys).

Examples:
  key alt-x to toggle nicklist bar:
    /key bind meta-x /bar toggle nicklist
  key alt-r to jump to #weechat IRC channel:
    /key bind meta-r /buffer #weechat
  restore default binding for key alt-r:
    /key reset meta-r
  key "tab" to stop search in buffer:
    /key bindctxt search ctrl-I /input search_stop
  middle button of mouse on a nick to retrieve info on nick:
    /key bindctxt mouse @item(buffer_nicklist):button3 /msg nickserv info ${nick}
layout manage buffers/windows layouts
/layout  store [<name>] [buffers|windows]
         apply [<name>] [buffers|windows]
         leave
         del [<name>] [buffers|windows]
         rename <name> <new_name>

  store: store current buffers/windows in a layout
  apply: apply stored layout
  leave: leave current layout (does not update any layout)
    del: delete buffers and/or windows in a stored layout
         (if neither "buffers" nor "windows" is given after the name, the layout is deleted)
 rename: rename a layout
   name: name for stored layout (default is "default")
buffers: store/apply only buffers (order of buffers)
windows: store/apply only windows (buffer displayed by each window)

Without argument, this command displays stored layouts.
mouse controllo mouse
/mouse  enable|disable|toggle [<ritardo>]

 enable: abilita mouse
disable: disabilita mouse
 toggle: abilita/disabilita mouse
ritardo: ritardo (in secondi) dopo il quale viene ripristinato lo stato iniziale del mouse (utile per disattivarlo temporaneamente)

Lo stato del mouse viene salvato nell'opzione "weechat.look.mouse".

Esempi:
  abilita mouse:
    /mouse enable
  abilita/disabilita mouse per 5 secondi:
    /mouse toggle 5
mute esegue un comando in silenzio
/mute  [-core | -current | -buffer <name>] <command>

   -core: no output on WeeChat core buffer
-current: no output on current buffer
 -buffer: no output on specified buffer
    name: full buffer name (examples: "irc.server.freenode", "irc.freenode.#weechat")
 command: command to execute silently (a '/' is automatically added if not found at beginning of command)

If no target is specified (-core, -current or -buffer), then default is to mute all buffers.

Examples:
  config save:
    /mute save
  message to current IRC channel:
    /mute -current msg * hi!
  message to #weechat channel:
    /mute -buffer irc.freenode.#weechat msg #weechat hi!
plugin elenca/carica/scarica plugin
/plugin  list|listfull [<nome>]
         load <nome_file> [<argomenti>]
         autoload [<argomenti>]
         reload [<nome> [<argomenti>]]
         unload [<nome>]

     list: elenca i plugin caricati
 listfull: elenca i plugin caricati (dettagliato)
     load: carica un plugin
 autoload: carica automaticamente un plugin nella directory di sistema o utente
   reload: ricarica un plugin (se non specificato, scarica e poi ricarica tutti i plugin)
   unload: scarica un plugin (se non specificato, scarica tutti i plugin
 nomefile: plugin (file) da caricare
     nome: nome di un plugin
argomenti: argomenti passati al plugin durante il caricamento

Senza argomento, questo comando elenca i plugin caricati.
print display text on a buffer
/print  [-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-action|-error|-join|-network|-quit] [<text>]
        -stdout|-stderr [<text>]
        -beep

 -buffer: display text in this buffer (default: buffer where command is executed)
   -core: alias of "-buffer core.weechat"
-current: display text on current buffer
 -escape: interpret escaped chars (for example \a, \07, \x07)
   -date: message date, format can be:
            -n: 'n' seconds before now
            +n: 'n' seconds in the future
             n: 'n' seconds since the Epoch (see man time)
            date/time (ISO 8601): yyyy-mm-ddThh:mm:ss, example: 2014-01-19T04:32:55
            time: hh:mm:ss (example: 04:32:55)
   -tags: comma-separated list of tags (see /help filter for a list of tags most commonly used)
    text: text to display (prefix and message must be separated by "\t", if text starts with "-", then add a "\" before)
 -stdout: display text on stdout (escaped chars are interpreted)
 -stderr: display text on stderr (escaped chars are interpreted)
   -beep: alias of "-stderr \a"

The options -action ... -quit use the prefix defined in options "weechat.look.prefix_*".

Following escaped chars are supported:
  \" \\ \a \b \e \f \n \r \t \v \0ooo \xhh \uhhhh \Uhhhhhhhh

Examples:
  display a reminder on core buffer with a highlight:
    /print -core -tags notify_highlight Reminder: buy milk
  display an error on core buffer:
    /print -core -error Some error here
  display message on core buffer with prefix "abc":
    /print -core abc\tThe message
  display a message on channel #weechat:
    /print -buffer irc.freenode.#weechat Message on #weechat
  display a snowman (U+2603):
    /print -escape \u2603
  send alert (BEL):
    /print -beep
proxy gestione dei proxy
/proxy  list
        add <nome> <tipo> <indirizzo> <porta> [<nomeutente> [<password>]]
        del <nome>|-all
        set <nome> <opzione> <valore>

    list: elenca tutti i proxy
     add: aggiunge un nuovo proxy
    nome: nome del proxy (deve essere unico)
    tipo: http, socks4 o socks5
 address: IP o nome host
    port: porta
username: nome utente (opzionale)
password: password (opzionale)
     del: elimina un proxy (o tutti i proxy con -all)
     set: imposta un valore per la proprietà di un proxy
  option: opzione da modificare (per una lista di opzioni, consultare /set weechat.proxy.<nomeproxy>.*)
   value: nuovo valore per l'opzione

Esempi:
  crea un proxy http, in esecuzione sull'host locale, porta 8888:
    /proxy add local http 127.0.0.1 8888
  crea un proxy http usando il protocollo IPv6:
    /proxy add local http ::1 8888
    /proxy set local ipv6 on
  crea un proxy socks5 con nomeutente/password:
    /proxy add myproxy socks5 sample.host.org 3128 myuser mypass
  elimina un proxy:
    /proxy del mioproxy
quit esce da WeeChat
/quit  [-yes] [<argomenti>]

     -yes: richiesto se l'opzione option weechat.look.confirm_quit è abilitata
argomenti: testo inviato con il segnale "quit"
           (ad esempio il plugin irc usa questo testo per inviare il messaggio di uscita al server)
reload ricarica i file di configurazione da disco
/reload  [<file> [<file....>]]

file: file di configurazione da ricaricare (senza estensione ".conf")

Senza argomento, vengono ricaricati tutti i file (WeeChat e plugin).
repeat esegue un comando più volte
/repeat  [-interval <ritardo>] <numero> <comando>

ritardo: ritardo tra l'esecuzione dei comandi (in millisecondi)
 numero: numero di volte in cui eseguire il comando
comando: comando da eseguire (una '/' viene aggiunta automaticamente se non viene trovata all'inizio del comando)

Tutti i comandi sono eseguiti sul buffer su cui viene dato il comando.

Esempio:
  scorre due pagine in alto:
    /repeat 2 /window page_up
save salva i file di configurazione su disco
/save  [<file> [<file....>]]

file: file di configurazione da salvare (senza estensione ".conf")

Senza argomento, vengono salvati tutti i file (WeeChat e plugin).
secure gestione dei dati sensibili (password o file privati cifrati nel file sec.conf)
/secure  passphrase <chiave di cifratura>|-delete
         decrypt <chiave di cifratura|-discard
         set <nome> <valore>
         del <nome>

passphrase: change the passphrase (without passphrase, data is stored as plain text in file sec.conf)
   -delete: delete passphrase
   decrypt: decrypt data still encrypted (it happens only if passphrase was not given on startup)
  -discard: discard all data still encrypted
       set: add or change secured data
       del: delete secured data

Without argument, this command displays secured data in a new buffer.

When a passphrase is used (data encrypted), it is asked by WeeChat on startup.
It is possible to set environment variable "WEECHAT_PASSPHRASE" to prevent the prompt (this same variable is used by WeeChat on /upgrade).

Secured data with format ${sec.data.xxx} can be used in:
  - command line argument "--run-command"
  - options weechat.startup.command_{before|after}_plugins
  - proxy options: username, password
  - irc server options: autojoin, command, password, sasl_{username|password}, username, realname
  - option relay.network.password
  - command /eval.

Examples:
  set a passphrase:
    /secure passphrase this is my passphrase
  encrypt freenode SASL password:
    /secure set freenode mypassword
    /set irc.server.freenode.sasl_password "${sec.data.freenode}"
  encrypt oftc password for nickserv:
    /secure set oftc mypassword
    /set irc.server.oftc.command "/msg nickserv identify ${sec.data.oftc}"
  alias to ghost the nick "mynick":
    /alias ghost /eval /msg -server freenode nickserv ghost mynick ${sec.data.freenode}
set set config options and environment variables
/set  [<option> [<value>]]
      diff [<option> [<option>...]]
      env [<variable> [<value>]]

option: name of an option (wildcard "*" is allowed)
 value: new value for option, according to type:
          boolean: on, off or toggle
          integer: number, ++number or --number
           string: any string ("" for empty string)
            color: color name, ++number or --number
        Note: for all types, you can use null to remove option value (undefined value). This works only for some special plugin variables.
  diff: display only changed options
   env: display or set an environment variable (use value "" to unset a variable)

Examples:
  display options about highlight:
    /set *highlight*
  add a word to highlight:
    /set weechat.look.highlight "word"
  display changed options:
    /set diff
  display changed options in irc plugin:
    /set diff irc.*
  display value of environment variable LANG:
    /set env LANG
  set environment variable LANG and use it:
    /set env LANG fr_FR.UTF-8
    /upgrade
  unset environment variable ABC:
    /set env ABC ""
unset annulla/ripristina opzione
/unset  <option>
        -mask <option>

option: name of an option
 -mask: use a mask in option (wildcard "*" is allowed to mass-reset options, use carefully!)

According to option, it's reset (for standard options) or removed (for optional settings, like server values).

Examples:
  reset one option:
    /unset weechat.look.item_time_format
  reset all color options:
    /unset -mask weechat.color.*
upgrade aggiorna WeeChat senza disconnettere dai server
/upgrade  [<path_del_binario>|-quit]

path_to_binary: path to WeeChat binary (default is current binary)
        -dummy: do nothing (option used to prevent accidental completion with "-quit")
         -quit: close *ALL* connections, save session and quit WeeChat, which makes possible a delayed restoration (see below)

This command upgrades and reloads a running WeeChat session. The new WeeChat binary must have been compiled or installed with a package manager before running this command.

Note: SSL connections are lost during upgrade, because reload of SSL sessions is currently not possible with GnuTLS. There is automatic reconnection after upgrade.

Upgrade process has 4 steps:
  1. save session into files for core and plugins (buffers, history, ..)
  2. unload all plugins (configuration files (*.conf) are written on disk)
  3. save WeeChat configuration (weechat.conf)
  4. execute new WeeChat binary and reload session.

With option "-quit", the process is slightly different:
  1. close *ALL* connections (irc, xfer, relay, ...)
  2. save session into files (*.upgrade)
  3. unload all plugins
  4. save WeeChat configuration
  5. quit WeeChat
Then later you can restore session with command: weechat --upgrade
IMPORTANT: you must restore the session with exactly same configuration (files *.conf).
It is possible to restore WeeChat session on another machine if you copy the content of directory "~/.weechat".
uptime mostra l’uptime di WeeChat
/uptime  [-o | -ol]

 -o: invia l'uptime al buffer corrente come input (stringa in inglese)
-ol: invia l'uptime al buffer corrente come input (stringa tradotta)
version mostra la versione e la data di compilazione di WeeChat
/version  [-o | -ol]

 -o: invia la versione al buffer corrente come input (stringa inglese)
-ol: invia la versione al buffer corrente come input (stringa tradotta)
wait pianifica l’esecuzione di un comando
/wait  <numero>[<unità>] <comando>

 numero: tempo di attesa (numero intero)
  unità: valori opzionali sono:
           ms: millisecondi
            s: secondi (predefinito)
            m: minuti
            h: ore
comando: comando da eseguire (o testo da inviare al buffer se il comando non inizia con '/')

Nota: il comando viene eseguito sui buffer dove /wait è stato eseguito (se il buffer non viene trovato (per esempio se è stato chiuso prima dell'esecuzione), allora il comando verrà eseguito sul buffer core di WeeChat)

Esempi:
  entra nel canale tra 10 secondi:
    /wait 10 /join #test
  imposta assenza tra 15 minuti:
    /wait 15m /away -all Sono assente
  scrive 'ciao' tra 2 minuti:
    /wait 2m ciao
window gestione delle finestre
/window  list
         -1|+1|b#|up|down|left|right [-window <number>]
         <number>
         splith|splitv [-window <number>] [<pct>]
         resize [-window <number>] [+/-]<pct>
         balance
         merge [-window <number>] [all]
         page_up|page_down [-window <number>]
         refresh
         scroll [-window <number>] [+/-]<value>[s|m|h|d|M|y]
         scroll_horiz [-window <number>] [+/-]<value>[%]
         scroll_up|scroll_down|scroll_top|scroll_bottom|scroll_beyond_end|scroll_previous_highlight|scroll_next_highlight|scroll_unread [-window <number>]
         swap [-window <number>] [up|down|left|right]
         zoom[-window <number>]
         bare [<delay>]

         list: list opened windows (without argument, this list is displayed)
           -1: jump to previous window
           +1: jump to next window
           b#: jump to next window displaying buffer number #
           up: switch to window above current one
         down: switch to window below current one
         left: switch to window on the left
        right: switch to window on the right
       number: window number (see /window list)
       splith: split current window horizontally
       splitv: split current window vertically
       resize: resize window size, new size is <pct> percentage of parent window
      balance: balance the sizes of all windows
        merge: merge window with another (all = keep only one window)
      page_up: scroll one page up
    page_down: scroll one page down
      refresh: refresh screen
       scroll: scroll a number of lines (+/-N) or with time: s=seconds, m=minutes, h=hours, d=days, M=months, y=years
 scroll_horiz: scroll horizontally a number of columns (+/-N) or percentage of window size (this scrolling is possible only on buffers with free content)
    scroll_up: scroll a few lines up
  scroll_down: scroll a few lines down
   scroll_top: scroll to top of buffer
scroll_bottom: scroll to bottom of buffer
scroll_beyond_end: scroll beyond the end of buffer
scroll_previous_highlight: scroll to previous highlight
scroll_next_highlight: scroll to next highlight
scroll_unread: scroll to unread marker
         swap: swap buffers of two windows (with optional direction for target window)
         zoom: zoom on window
         bare: toggle bare display (with optional delay in seconds for automatic return to standard display mode)

For splith and splitv, pct is a percentage which represents size of new window, computed with current window as size reference. For example 25 means create a new window with size = current_size / 4

Examples:
  jump to window displaying buffer #1:
    /window b1
  scroll 2 lines up:
    /window scroll -2
  scroll 2 days up:
    /window scroll -2d
  scroll to beginning of current day:
    /window scroll -d
  zoom on window #2:
    /window zoom -window 2
  enable bare display for 2 seconds:
    /window bare 2

4. Plugin

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 è possibile caricare o scaricare i plugin durante l’esecuzione del programma.

È importante evidenziare la differenza tra un plugin ed uno script: un plugin è un file binario compilato e caricato con il comando /plugin, mentre uno script è un file di testo caricato con un plugin come python con il comando /python.

È 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 sono chiusi automaticamente.

Esempi per caricare, scaricare oppure elencare i plugin:

/plugin load irc
/plugin unload irc
/plugin list

I plugin predefiniti sono:

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

exec

Execution of external commands in WeeChat

fifo

pipe FIFO utilizzata per inviare comandi da remoto su WeeChat

irc

protocollo chat per IRC

logger

Registra i buffer su file

relay

Relay dei dati via rete

script

Gestore script

python

API per lo scripting in Python

perl

API per lo scripting in Perl

ruby

API per lo scripting in Ruby

lua

API per lo scripting in Lua

tcl

API per lo scripting in TCL

guile

API per lo scripting in Guile (scheme)

trigger

Text replacement and command execution on events triggered by WeeChat/plugins

xfer

Trasferimento file e chat diretta

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.

4.1. Plugin Alias

Il plugin Alias consente di creare alias per i comandi (da WeeChat o altri plugin).

4.1.1. Comandi

alias crea un alias per un comando
/alias  [-completion <completamento>] <alias> [<comando> [;<comando>...]]

completion: completion for alias (optional, by default completion is done with target command)
            note: you can use %%command to use completion of an existing command
     alias: name of alias (wildcard "*" is allowed)
   command: command name with arguments (many commands can be separated by semicolons)

Without argument, this command lists all defined alias.

Note: in command, special variables are replaced:
        $n: argument 'n' (between 1 and 9)
       $-m: arguments from 1 to 'm'
       $n-: arguments from 'n' to last
      $n-m: arguments from 'n' to 'm'
        $*: all arguments
        $~: last argument
      $var: where "var" is a local variable of buffer (see /buffer localvar)
            examples: $nick, $channel, $server, $plugin, $name

To remove an alias, use command /unalias.

Examples:
  alias /split to split window horizontally:
    /alias split /window splith
  alias /hello to say "hello" on all channels but not on #weechat:
    /alias hello /allchan -exclude=#weechat msg * hello
  alias /forcejoin to send IRC command "forcejoin" with completion of /sajoin:
    /alias -completion %%sajoin forcejoin /quote forcejoin

4.2. Plugin Aspell

Il plugin Aspell consente di verificare l’ortografia nella riga di comando. È possibile utilizzare più lingue per buffer.

4.2.1. Opzioni (aspell.conf)

Sections:

Section Control command Description

color

/set aspell.color.*

Colors

check

/set aspell.check.*

Options to control spell checking

dict

/aspell setdict
/set aspell.dict.*

Dictionaries used by buffer (options can be added/removed in section)

option

/set aspell.option.*

Opzioni ortografiche (options can be added/removed in section)

Options:

  • aspell.check.commands

    • descrizione: elenco separato da virgole di comandi per cui il controllo ortografico è abilitato (il controllo ortografico è disabilitato per tutti gli altri comandi)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "ame,amsg,away,command,cycle,kick,kickban,me,msg,notice,part,query,quit,topic")

  • aspell.check.default_dict

    • descrizione: dizionario predefinito (o elenco separato da virgole di dizionari) da usare quando il buffer non ha alcun dizionario definito (vuoto per disabilitare il controllo ortografico sui buffer in cui non è stato esplicitamente abilitato)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "")

  • aspell.check.during_search

    • descrizione: controlla le parole durante la ricerca del testo nel buffer

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • aspell.check.enabled

    • descrizione: abilita il controllo aspell per la riga di comando

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • aspell.check.real_time

    • descrizione: controllo ortografico in tempo reale (più lento, disabilitato per default: le parole vengono controllate solo se seguite da un delimitatore)

    • tipo: bool

    • valori: on, off (valore predefinito: off)

  • aspell.check.suggestions

    • descrizione: numero di suggerimenti da mostrare nell'elemento barra "aspell_suggest" per ogni dizionario impostato nel buffer (-1 = disattiva suggerimenti, 0 = mostra tutti i possibili suggerimenti in tutte le lingue)

    • tipo: intero

    • valori: -1 .. 2147483647 (valore predefinito: -1)

  • aspell.check.word_min_length

    • descrizione: lunghezza minima per una parola da controllare (0 per controllarle tutte)

    • tipo: intero

    • valori: 0 .. 2147483647 (valore predefinito: 2)

  • aspell.color.misspelled

    • descrizione: text color for misspelled words (input bar)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: lightred)

  • aspell.color.suggestions

    • descrizione: text color for suggestions on a misspelled word (status bar)

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: default)

4.2.2. Comandi

aspell configurazione del plugin aspell
/aspell  enable|disable|toggle
         listdict
         setdict <dizionario>[,<dizionario>...]
         deldict
         addword [<dizionario>] <parola>

  enable: abilita aspell
 disable: disabilita aspell
  toggle: abilita/disabilita aspell
listdict: mostra i dizionari installati
 setdict: imposta dizionario per il buffer corrente (più dizionari vanno separati da virgola)
 deldict: elimina dizionario usato per il buffer corrente
 addword: aggiunge una parola nel dizionario personale aspell

La riga di input che comincia con '/' non viene controllata, tranne che per alcuni comandi (consultare /set aspell.check.commands).

Per abilitare aspell su tutti i buffer, usare l'opzione "default_dict", poi abilita aspell, ad esempio:
  /set aspell.check.default_dict "it"
  /aspell enable

Il tasto predefinito per (dis)abilitare aspell è alt-s.

4.2.3. Opzioni ortografiche

Le opzioni ortografiche possono essere definite aggiungendo opzioni nella sezione "opzioni" della configurazione di aspell.

Il nome dell’opzione è un parametro di configurazione per aspell. L’elenco delle opzioni disponibili può essere trovato nel terminale col seguente comando:

$ aspell config

Ad esempio, per abilitare l’opzione "ignore-case":

/set aspell.option.ignore-case "true"

4.2.4. Suggestions

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.

Example of suggestions with English dictionary (en):

│[12:55] [6] [irc/freenode] 3:#test(+n){4} [print,prone,prune]                    │
│[@Flashy] prinr █                                                                │
└─────────────────────────────────────────────────────────────────────────────────┘

Example of suggestions with English and French dictionaries (en,fr):

│[12:55] [6] [irc/freenode] 3:#test(+n){4} [print,prone,prune/prime,primer,primé] │
│[@Flashy] prinr █                                                                │
└─────────────────────────────────────────────────────────────────────────────────┘

4.3. Plugin Charset

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).

Questo plugin è opzionale, ma raccomandato: se non caricato, WeeChat può leggere/scrivere soltanto dati UTF-8.

Il plugin Charset dovrebbe essere caricato automaticamente da WeeChat. Per essere sicuri che sia caricato, provare con:

/charset

Se non trovato, allora si deve caricare il plugin con il comando:

/plugin load charset

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:

set caratteri: terminale: ISO-8859-15, interno: UTF-8

4.3.1. Opzioni (charset.conf)

Sections:

Section Control command Description

default

/set charset.default.*

Default decoding/encoding charset

decode

/charset decode
/set charset.decode.*

Decoding charset by buffer (options can be added/removed in section)

encode

/charset encode
/set charset.encode.*

Encoding charset by buffer (options can be added/removed in section)

Options:

  • charset.default.decode

    • descrizione: global decoding charset: charset used to decode incoming messages when they are not UTF-8 valid

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "iso-8859-1")

  • charset.default.encode

    • descrizione: global encoding charset: charset used to encode outgoing messages (if empty, default is UTF-8 because it is the WeeChat internal charset)

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "")

4.3.2. Comandi

charset modifica il set di caratteri per il buffer corrente
/charset  decode|encode <set_caratteri>
          reset

       decode: modifica il set di caratteri per la decodifica
       encode: modifica il set di caratteri per la codifica
set_caratteri: nuovo set di caratteri per il buffer corrente
        reset: resetta il set di caratteri per il buffer corrente

4.3.3. Impostare il set caratteri

Per impostare il set caratteri globale per la codifica e la decodifica, utilizzare il comando /set.

Per esempio:

/set charset.default.decode ISO-8859-15
/set charset.default.encode ISO-8859-15

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:

/charset ISO-8859-15

È l’equivalente di:

/charset decode ISO-8859-15
/charset encode ISO-8859-15

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).

To set charset for all channels/privates of an IRC server:

/set charset.encode.irc.freenode ISO-8859-15

Per visualizzare tutti i set caratteri utilizzati, utilizzare il comando seguente:

/set charset.*

4.3.4. Risoluzione problemi

Per qualunque problema con i set caratteri, per favore consultare le Domande Frequenti di WeeChat.

4.4. Exec plugin

The /exec command lets you execute external commands inside WeeChat and display the output locally, or send it to a buffer.

4.4.1. Options (exec.conf)

Sections:

Section Control command Description

command

/set exec.command.*

Options for commands

color

/set exec.color.*

Colors

Options:

  • exec.color.flag_finished

    • descrizione: text color for a finished command flag in list of commands

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: lightred)

  • exec.color.flag_running

    • descrizione: text color for a running command flag in list of commands

    • tipo: colore

    • valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: lightgreen)

  • exec.command.default_options

    • descrizione: default options for command /exec (see /help exec); example: "-nosh -bg" to run all commands in background (no output), and without using the shell

    • tipo: stringa

    • valori: qualsiasi stringa (valore predefinito: "")

  • exec.command.purge_delay

    • descrizione: delay for purging finished commands (in seconds, 0 = purge commands immediately, -1 = never purge)

    • tipo: intero

    • valori: -1 .. 25920000 (valore predefinito: 0)

4.4.2. Commands

exec execute external commands
/exec  -list
       [-sh|-nosh] [-bg|-nobg] [-stdin|-nostdin] [-buffer <name>] [-l|-o|-n|-nf] [-cl|-nocl] [-sw|-nosw] [-ln|-noln] [-flush|-noflush] [-color ansi|auto|irc|weechat|strip] [-rc|-norc] [-timeout <timeout>] [-name <name>] [-pipe <command>] [-hsignal <name>] <command>
       -in <id> <text>
       -inclose <id> [<text>]
       -signal <id> <signal>
       -kill <id>
       -killall
       -set <id> <property> <value>
       -del <id>|-all [<id>...]

   -list: list commands
     -sh: use the shell to execute the command (WARNING: use this option ONLY if all arguments are safe, see option -nosh)
   -nosh: do not use the shell to execute the command (required if the command has some unsafe data, for example the content of a message from another user) (default)
     -bg: run process in background: do not display process output neither return code (not compatible with options -o/-n)
   -nobg: catch process output and display return code (default)
  -stdin: create a pipe for sending data to the process (with /exec -in/-inclose)
-nostdin: do not create a pipe for stdin (default)
 -buffer: display/send output of command on this buffer (if the buffer is not found, a new buffer with name "exec.exec.xxx" is created)
      -l: display locally output of command on buffer (default)
      -o: send output of command to the buffer (not compatible with option -bg)
      -n: display output of command in a new buffer (not compatible with option -bg)
     -nf: display output of command in a new buffer with free content (no word-wrap, no limit on number of lines) (not compatible with option -bg)
     -cl: clear the new buffer before displaying output
   -nocl: append to the new buffer without clear (default)
     -sw: switch to the output buffer (default)
   -nosw: don't switch to the output buffer
     -ln: display line numbers (default in new buffer only)
   -noln: don't display line numbers
  -flush: display output of command in real time (default)
-noflush: display output of command after its end
  -color: action on ANSI colors in output:
             ansi: keep ANSI codes as-is
             auto: convert ANSI colors to WeeChat/IRC (default)
              irc: convert ANSI colors to IRC colors
          weechat: convert ANSI colors to WeeChat colors
            strip: remove ANSI colors
     -rc: display return code (default)
   -norc: don't display return code
-timeout: set a timeout for the command (in seconds)
   -name: set a name for the command (to name it later with /exec)
   -pipe: send the output to a WeeChat/plugin command (line by line); if there are spaces in command/arguments, enclose them with double quotes; variable $line is replaced by the line (by default the line is added after the command, separated by a space) (not compatible with options -bg/-o/-n)
-hsignal: send the output as a hsignal (to be used for example in a trigger) (not compatible with options -bg/-o/-n)
 command: the command to execute; if beginning with "url:", the shell is disabled and the content of URL is downloaded and sent as output
      id: command identifier: either its number or name (if set with "-name xxx")
     -in: send text on standard input of process
-inclose: same as -in, but stdin is closed after (and text is optional: without text, the stdin is just closed)
 -signal: send a signal to the process; the signal can be an integer or one of these names: hup, int, quit, kill, term, usr1, usr2
   -kill: alias of "-signal <id> kill"
-killall: kill all running processes
    -set: set a hook property (see function hook_set in plugin API reference)
property: hook property
   value: new value for hook property
    -del: delete a terminated command
    -all: delete all terminated commands

Default options can be set in the option exec.command.default_options.

Examples:
  /exec -n ls -l /tmp
  /exec -n ps xu | grep weechat
  /exec -n -norc url:http://pastebin.com/raw.php?i=xxxxxxxx
  /exec -nf -noln links -dump http://weechat.org/files/doc/devel/weechat_user.en.html
  /exec -o uptime
  /exec -pipe "/print Machine uptime:" uptime
  /exec -n tail -f /var/log/messages
  /exec -kill 0

4.5. Plugin Fifo

È 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:

  plugin.buffer *testo o comando qui
  *testo o comando qui

Alcuni esempi:

  • cambiare il nick sul server IRC freenode in "nuovonick":

$ echo 'irc.server.freenode */nick nuovonick' >~/.weechat/weechat_fifo_12345
  • visualizazre del testo sul canale IRC #weechat:

$ echo 'irc.freenode.#weechat *hello!' >~/.weechat/weechat_fifo_12345
  • visualizzare del testo sul buffer attivo:

$ echo '*hello!' >~/.weechat/weechat_fifo_12345
  • inviare due comandi per scaricare/caricare gli script Python (è necessario separarli con "\n"):

$ printf '%b' '*/python unload\n*/python autoload\n' >~/.weechat/weechat_fifo_12345

È possibile realizzare uno script per inviare un comando a tutte le istanze di WeeChat in esecuzione, per esempio: