mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 12:56:37 +02:00
Compare commits
30 Commits
v0.3.6-rc1
...
v0.3.6-rc3
| Author | SHA1 | Date | |
|---|---|---|---|
| 661f651048 | |||
| 90ab543ce2 | |||
| 0a2c938dae | |||
| e26553fd9b | |||
| 395674c724 | |||
| c161d704f7 | |||
| 2ed8974d2f | |||
| 40d8e61118 | |||
| ac7c27949b | |||
| 0bbddad6a6 | |||
| 5c694363e8 | |||
| dabcf293c9 | |||
| 452382db26 | |||
| 3f5d865d64 | |||
| 430d1643cc | |||
| 2af9c4ba92 | |||
| 298fde23fe | |||
| 53b339fb35 | |||
| 2c87a641e7 | |||
| ddbdb3e657 | |||
| b2b585de69 | |||
| b9dd668d90 | |||
| 971e464e86 | |||
| 875112756c | |||
| ecba10eab2 | |||
| 67726a9451 | |||
| 58c32e4249 | |||
| 9206036233 | |||
| e93647db95 | |||
| f2879b0572 |
+1
-1
@@ -33,7 +33,7 @@ ENDIF(PREFIX)
|
||||
|
||||
SET(VERSION_MAJOR "0")
|
||||
SET(VERSION_MINOR "3")
|
||||
SET(VERSION_PATCH "6-rc1")
|
||||
SET(VERSION_PATCH "6-rc3")
|
||||
SET(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
|
||||
SET(LICENSE "GPL3")
|
||||
SET(PKG_STRING "${PROJECT_NAME} ${VERSION}")
|
||||
|
||||
@@ -1,12 +1,23 @@
|
||||
WeeChat ChangeLog
|
||||
=================
|
||||
Sébastien Helleu <flashcode@flashtux.org>
|
||||
v0.3.6-rc1, 2011-10-02
|
||||
v0.3.6-rc3, 2011-10-20
|
||||
|
||||
|
||||
Version 0.3.6 (under dev!)
|
||||
--------------------------
|
||||
|
||||
* core: fix freeze when calling function util_file_get_content with a directory
|
||||
instead of a filename
|
||||
* core: add color attribute "|" (keep attributes) and value "resetcolor" for
|
||||
function weechat_color in plugin API (used by irc plugin to keep
|
||||
bold/reverse/underlined in message when changing color) (bug #34550)
|
||||
* core: fix compilation error (INSTALLPREFIX undeclared) on OS X and when
|
||||
compiling with included gettext (bug #26690)
|
||||
* core: display timeout for hook_process command only if debug for core is
|
||||
enabled (task #11401)
|
||||
* core: bufferize lines displayed before core buffer is created, to display them
|
||||
in buffer when it is created
|
||||
* core: fix display of background color in chat area after line feed
|
||||
* core: fix paste detection (problem with end of lines)
|
||||
* core: add new option weechat.look.color_basic_force_bold, off by default: bold
|
||||
@@ -87,6 +98,9 @@ Version 0.3.6 (under dev!)
|
||||
description for option when function is called)
|
||||
* scripts: fix crash with scripts not auto-loaded having a buffer opened after
|
||||
/upgrade (input/close callbacks for buffer not set properly)
|
||||
* irc: fix display of items "away" and "lag" in root bars, refresh all irc bar
|
||||
items on signal "buffer_switch" (bug #34466)
|
||||
* irc: fix crash on malformed irc notice received (without message after target)
|
||||
* irc: add missing messages for whois: 223, 264, 343
|
||||
* irc: use high priority queue for sending modes and wallchops messages
|
||||
* irc: allow reason for command /disconnect
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
WeeChat News
|
||||
============
|
||||
Sébastien Helleu <flashcode@flashtux.org>
|
||||
v0.3.6-rc1, 2011-10-02
|
||||
v0.3.6-rc3, 2011-10-20
|
||||
|
||||
|
||||
Version 0.3.6 (under dev!)
|
||||
|
||||
+3
-3
@@ -24,10 +24,10 @@
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ(2.56)
|
||||
AC_INIT(WeeChat, 0.3.6-rc1, flashcode@flashtux.org)
|
||||
AC_INIT(WeeChat, 0.3.6-rc3, flashcode@flashtux.org)
|
||||
AC_CONFIG_SRCDIR([src/core/weechat.c])
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
AM_INIT_AUTOMAKE([weechat], [0.3.6-rc1])
|
||||
AM_INIT_AUTOMAKE([weechat], [0.3.6-rc3])
|
||||
LICENSE="GPL3"
|
||||
|
||||
# Checks for programs
|
||||
@@ -59,7 +59,7 @@ esac
|
||||
|
||||
# Gettext
|
||||
ALL_LINGUAS="fr es cs hu de ru pl it pt_BR"
|
||||
AM_GNU_GETTEXT([use-libtool])
|
||||
AM_GNU_GETTEXT
|
||||
AM_GNU_GETTEXT_VERSION([0.15])
|
||||
|
||||
# Checks for libraries
|
||||
|
||||
@@ -23,3 +23,6 @@ SUBDIRS = . en fr pl de ru ja it
|
||||
man_MANS = weechat-curses.1
|
||||
|
||||
EXTRA_DIST = $(man_MANS) docgen.py CMakeLists.txt asciidoc.conf asciidoc.css
|
||||
|
||||
uninstall-hook:
|
||||
-rmdir $(DESTDIR)$(datadir)/doc/$(PACKAGE)
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
[replacements]
|
||||
@k\(C-\)=<span class="key ctrl">Ctrl</span><span class="keyplus">+</span>
|
||||
@k\(-C-\)=<span class="key ctrl">Ctrl</span>
|
||||
@k\(A-\)=<span class="key alt">Alt</span><span class="keyplus">+</span>
|
||||
@k\(-A-\)=<span class="key alt">Alt</span>
|
||||
@k\(S-\)=<span class="key shift">Shift</span><span class="keyplus">+</span>
|
||||
@k\(-S-\)=<span class="key shift">Shift</span>
|
||||
@k\(l\)=<span class="key">l</span><span class="keyplus"> (L)</span>
|
||||
@k\(([A-Za-z0-9_&\=])\)=<span class="key">\1</span>
|
||||
@k\(([a-z0-9_&\=][^)]*)\)=<span class="key">\1</span>
|
||||
|
||||
+11
-5
@@ -36,23 +36,23 @@ all-local: weechat_user.de.html \
|
||||
|
||||
# user's guide
|
||||
weechat_user.de.html: weechat_user.de.txt $(wildcard autogen/user/*.txt)
|
||||
$(ASCIIDOC) -a lang=de -a toc -a toclevels=3 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_user.de.html weechat_user.de.txt
|
||||
$(ASCIIDOC) -a lang=de -a toc -a toclevels=3 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_user.de.html $(abs_top_srcdir)/doc/de/weechat_user.de.txt
|
||||
|
||||
# scripting guide
|
||||
weechat_scripting.de.html: weechat_scripting.de.txt
|
||||
$(ASCIIDOC) -a lang=de -a toc -a toclevels=3 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_scripting.de.html weechat_scripting.de.txt
|
||||
$(ASCIIDOC) -a lang=de -a toc -a toclevels=3 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_scripting.de.html $(abs_top_srcdir)/doc/de/weechat_scripting.de.txt
|
||||
|
||||
# FAQ
|
||||
weechat_faq.de.html: weechat_faq.de.txt
|
||||
$(ASCIIDOC) -a lang=de -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.de.html weechat_faq.de.txt
|
||||
$(ASCIIDOC) -a lang=de -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.de.html $(abs_top_srcdir)/doc/de/weechat_faq.de.txt
|
||||
|
||||
# quickstart
|
||||
weechat_quickstart.de.html: weechat_quickstart.de.txt
|
||||
$(ASCIIDOC) -a lang=de -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_quickstart.de.html weechat_quickstart.de.txt
|
||||
$(ASCIIDOC) -a lang=de -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_quickstart.de.html $(abs_top_srcdir)/doc/de/weechat_quickstart.de.txt
|
||||
|
||||
# tester's guide
|
||||
weechat_tester.de.html: weechat_tester.de.txt
|
||||
$(ASCIIDOC) -a lang=de -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_tester.de.html weechat_tester.de.txt
|
||||
$(ASCIIDOC) -a lang=de -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_tester.de.html $(abs_top_srcdir)/doc/de/weechat_tester.de.txt
|
||||
|
||||
# install docs
|
||||
|
||||
@@ -60,6 +60,12 @@ install-data-hook:
|
||||
$(mkinstalldirs) $(DESTDIR)$(docdir)/
|
||||
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
|
||||
|
||||
# uninstall docs
|
||||
|
||||
uninstall-hook:
|
||||
$(RM) $(DESTDIR)$(docdir)/*.de.html
|
||||
-rmdir $(DESTDIR)$(docdir)
|
||||
|
||||
# clean
|
||||
|
||||
clean-local:
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
|
||||
| irc | irc_message_parse | Parse eine IRC Nachricht | "message": IRC Nachricht | "nick": nick, "host": host, "command": command, "channel": channel, "arguments": arguments (beinhaltet Channel)
|
||||
|
||||
| irc | irc_message_split | split an IRC message (to fit in 512 bytes) | "message": IRC message, "server": server name (optional) | "msg1" ... "msgN": messages to send (without final "\r\n"), "args1" ... "argsN": arguments of messages, "count": number of messages
|
||||
| irc | irc_message_split | dient zum Aufteilen einer überlangen IRC Nachricht (in maximal 512 Bytes große Nachrichten) | "message": IRC Nachricht, "server": Servername (optional) | "msg1" ... "msgN": Nachrichten die versendet werden sollen (ohne abschließendes "\r\n"), "args1" ... "argsN": Argumente für Nachrichten, "count": Anzahl der Nachrichten
|
||||
|
||||
|========================================
|
||||
|
||||
@@ -139,13 +139,13 @@ Ziel: Servername
|
||||
........................................
|
||||
|
||||
[[command_irc_disconnect]]
|
||||
[command]*`disconnect`* disconnect from one or all IRC servers::
|
||||
[command]*`disconnect`* Verbindung zu einem oder mehreren IRC-Server(n) trennen::
|
||||
........................................
|
||||
/disconnect [<server>|-all [<reason>]]
|
||||
|
||||
server: server name to disconnect
|
||||
-all: disconnect from all servers
|
||||
reason: reason for quit
|
||||
server: Name des Servers zu dem die Verbindung getrennt werden soll
|
||||
-all: Verbindung zu allen Servern trennen
|
||||
reason: Begründung der Trennung
|
||||
........................................
|
||||
|
||||
[[command_irc_halfop]]
|
||||
|
||||
@@ -37,7 +37,7 @@ message: Abwesenheitsnachricht (ohne eine Nachricht wird der Abwesenheitszustand
|
||||
default: erstellt standardisierte Infobars
|
||||
del: entfernt eine Infobar (alle Infobars können mit der Option "-all" entfernt werden).
|
||||
set: setzt einen Wert für Infobar
|
||||
option: Optionen die geändert werden (für eine List der möglichen Optionen, bitte folgenden Befehl nutzen: /set weechat.bar.<barname>.*)
|
||||
option: Option die verändert werden soll (für eine Liste aller möglichen Optionen, bitte folgenden Befehl nutzen: /set weechat.bar.<barname>.*)
|
||||
value: neuer Wert für Option
|
||||
hide: Infobar wird ausgeblendet
|
||||
show: zeigt eine ausgeblendete Infobar an
|
||||
@@ -341,43 +341,43 @@ Dieser Befehl wird durch Tastenbelegungen oder Erweiterungen genutzt.
|
||||
resetall -yes [<context>]
|
||||
missing [<context>]
|
||||
|
||||
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
|
||||
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
|
||||
list: zeigt die aktuelle Tastenbelegungen an (Standardaufruf)
|
||||
listdefault: zeigt die Standardeinstellung der Tastenbelegung an
|
||||
listdiff: zeigt die Unterschiede zwischen der aktuell genutzten Tastaturbelegung und der Standardbelegung an (hinzugefügte/verändert/gelöschte Tastenbelegungen)
|
||||
context: Name des Kontextes ("default" oder "search")
|
||||
bind: belegt eine Taste mit einem Befehl oder zeigt an welcher Befehl auf eine Taste gelegt wurde (für Kontext "default")
|
||||
bindctxt: belegt eine Taste mit einem Befehl oder zeigt an welcher Befehl auf eine Taste gelegt wurde, dies trifft für Kontext definierte Tasten zu
|
||||
unbind: hebt eine Tastenbelegung auf (für Kontext "default")
|
||||
unbindctxt: hebt eine Tastenbelegung für den angegebenen Kontext auf
|
||||
reset: die Tastenbelegung wird für die ausgewählte Taste auf die Standardeinstellung zurück gesetzt (für Kontext "default")
|
||||
resetctxt: die Tastenbelegung wird für die ausgewählte Taste auf die Standardeinstellung zurück gesetzt, dies trifft für den ausgewählten Kontext zu
|
||||
resetall: die Tastenbelegung wird auf die Standardeinstellungen zurück gesetzt. Dies löscht ALLE persönlichen Tastenbelegungen (Vorsicht!)
|
||||
missing: fügt fehlende Tastenbelegungen hinzu (dazu wird die Standardbelegung genutzt). Dies kann sinnvoll sein wenn man auf eine neue WeeChat Version umgestiegen ist
|
||||
|
||||
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.
|
||||
Falls einer Taste ein Befehl zugeordnet werden soll ist es ratsam zuerst mit der Tastenkombination alt+k (oder Esc + k) einen Fangmodus zu aktivieren um damit die neu zu belegende Taste zu greifen. Durch diesen Schritt wird der entsprechende Tasten-Code in die Befehlszeile übernommen.
|
||||
|
||||
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"
|
||||
The key can start or end with '*' 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).
|
||||
Für Kontext "mouse" (Kontext "cursor" ist auch möglich), hat der zu verwendende Schlüssel folgendes Format: "@area:Schlüssel" oder "@area1>area2:Schlussel". "area" kann folgende Werte habe:
|
||||
*: jedweder Bereich des Bildschirms
|
||||
chat: Chatbereich (für jeden Buffer)
|
||||
chat(xxx): Chatbereich für einen Buffer mit dem Namen "xxx" (vollständiger Name mit Erweiterung. Beispiel: chat(perl.iset):)
|
||||
bar(*): beliebige Bar
|
||||
bar(xxx): Bar mit dem Namen "xxx"
|
||||
item(*): beliebiges Bar-Item
|
||||
item(xxx): Bar-Item mit Namen "xxx"
|
||||
Der zu nutzende Schlüssel kann mit '*' beginnen oder enden um mehrere unterschiedliche Mausereignisse auszuwählen.
|
||||
Für den Kontext "mouse" kann ein besonderer Übergabewert für den zu nutzenden Befehl verwendet werden, "hsignal:name". Dieses sendet das hsignal "name" und als Inhalt ein Hashtable als Argument.
|
||||
Ein weiterer Übergabewert ist "-" und kann genutzt werden um einen Schlüssel zu deaktivieren (der Schlüssel wird bei der Durchführung übersprungen).
|
||||
|
||||
Examples:
|
||||
key alt-x to toggle nicklist bar:
|
||||
Beispiele:
|
||||
Mit der Tastenkombination "alt-x" wird die Nicklist-Bar an-und aus geschaltet:
|
||||
/key bind meta-x /bar toggle nicklist
|
||||
key alt-r to jump to #weechat IRC channel:
|
||||
Mit der Tastenkombination "alt-r" wird direkt zum IRC #weechat Buffer gewechselt:
|
||||
/key bind meta-r /buffer #weechat
|
||||
restore default binding for key alt-r:
|
||||
Die Tastenkombination "alt-r" wird auf die Standardfunktion zurückgesetzt:
|
||||
/key reset meta-r
|
||||
key "tab" to stop search in buffer:
|
||||
"Tab"-Taste nutzen um im Kontext "search" die Suche innerhalb eines Buffers zu beenden:
|
||||
/key bindctxt search ctrl-I /input search_stop
|
||||
middle button of mouse on a nick to retrieve info on nick:
|
||||
Auswahl eines Nicknamens mittels mittlerem Mausknopf zeigt zusätzliche Informationen zu dem Nick an:
|
||||
/key bindctxt mouse @item(buffer_nicklist):button3 /msg nickserv info ${nick}
|
||||
........................................
|
||||
|
||||
@@ -582,17 +582,17 @@ Beispiele:
|
||||
........................................
|
||||
/upgrade [<path_to_binary>]
|
||||
|
||||
path_to_binary: path to WeeChat binary (default is current binary)
|
||||
path_to_binary: Pfad zu einer ausführbaren WeeChat Binärdatei (Standardeinstellung ist die aktuell ausführbare Datei)
|
||||
|
||||
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.
|
||||
Dieser Befehl führt ein Upgrade von WeeChat durch und startet die laufende Sitzung neu. Die neue Version von WeeChat muss deshalb vorab kompiliert oder mit einem Paketmanager installiert worden sein, bevor der Befehl ausgeführt werden kann.
|
||||
|
||||
Note: SSL connections are lost during upgrade, because reload of SSL sessions is currently not possible with GnuTLS. There is automatic reconnection after upgrade.
|
||||
Hinweis: SSL Verbindungen werden während eines Upgrades unterbrochen, da solche Verbindungen zur Zeit nicht mit GnuTLS gehalten werden können. Nach einem erfolgten Upgrade findet eine automatische Verbindung zu diesen Servern statt.
|
||||
|
||||
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.
|
||||
Der Upgrade Vorgang besteht aus vier Schritten:
|
||||
1. Speicherung der Session in Dateien für Core und Erweiterungen (buffers, history, ..)
|
||||
2. alle Erweiterungen werden ausgeschaltet (Konfigurationen *.conf werden gesichert)
|
||||
3. Speicherung der WeeChat Konfiguration (weechat.conf)
|
||||
4. ausführen einer neuen WeeChat Session.
|
||||
........................................
|
||||
|
||||
[[command_weechat_uptime]]
|
||||
|
||||
@@ -44,12 +44,12 @@
|
||||
** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute werden vor einer Farbe gesetzt (ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "_" für unterstrichen (Standardwert: `cyan`)
|
||||
|
||||
* *weechat.color.chat_inactive_buffer*
|
||||
** Beschreibung: `text color for chat when line is inactive (buffer is merged with other buffers and is not selected)`
|
||||
** Beschreibung: `Textfarbe für inaktive Zeilen im Chatfenster (Buffer wurde mit anderen Buffern zusammengefügt und der Buffer ist nicht aktiv)`
|
||||
** Typ: Farbe
|
||||
** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute werden vor einer Farbe gesetzt (ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "_" für unterstrichen (Standardwert: `darkgray`)
|
||||
|
||||
* *weechat.color.chat_inactive_window*
|
||||
** Beschreibung: `text color for chat when window is inactive (not current selected window)`
|
||||
** Beschreibung: `Textfarbe für Chat wenn das Fenster inaktiv ist (betrifft nicht das aktuell ausgewählte Fenster)`
|
||||
** Typ: Farbe
|
||||
** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute werden vor einer Farbe gesetzt (ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "_" für unterstrichen (Standardwert: `darkgray`)
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute werden vor einer Farbe gesetzt (ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "_" für unterstrichen (Standardwert: `brown`)
|
||||
|
||||
* *weechat.color.chat_prefix_buffer_inactive_buffer*
|
||||
** Beschreibung: `text color for inactive buffer name (before prefix, when many buffers are merged with same number and if buffer is not selected)`
|
||||
** Beschreibung: `Textfarbe für den inaktiven Namen des Buffer (vor dem Präfix, falls mehrere Buffer zu einem zusammengefügt worden sind und der Buffer nicht ausgewählt ist)`
|
||||
** Typ: Farbe
|
||||
** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute werden vor einer Farbe gesetzt (ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "_" für unterstrichen (Standardwert: `darkgray`)
|
||||
|
||||
@@ -164,7 +164,7 @@
|
||||
** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute werden vor einer Farbe gesetzt (ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "_" für unterstrichen (Standardwert: `cyan`)
|
||||
|
||||
* *weechat.color.input_actions*
|
||||
** Beschreibung: `Textfarbe in der Eingabezeile bei Aktivität`
|
||||
** Beschreibung: `Textfarbe in der Eingabezeile bei Aktivität (z.B. beim Einfügen von Zeilen)`
|
||||
** Typ: Farbe
|
||||
** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute werden vor einer Farbe gesetzt (ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "_" für unterstrichen (Standardwert: `lightgreen`)
|
||||
|
||||
@@ -339,22 +339,22 @@
|
||||
** Werte: time, buffer, prefix, suffix, message (Standardwert: `message`)
|
||||
|
||||
* *weechat.look.bar_more_down*
|
||||
** Beschreibung: `string displayed when bar can be scrolled down (for bars with filling different from "horizontal")`
|
||||
** Beschreibung: `Zeichen welches anzeigt, dass die Bar nach unten gescrollt werden kann (dies trifft nur auf Bars zu bei denen die Option "/set *.filling_*" nicht auf "horizontal" eingestellt ist).`
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette (Standardwert: `"++"`)
|
||||
|
||||
* *weechat.look.bar_more_left*
|
||||
** Beschreibung: `string displayed when bar can be scrolled to the left (for bars with filling "horizontal")`
|
||||
** Beschreibung: `Zeichen welches anzeigt, dass die Bar nach links gescrollt werden kann (dies trifft nur auf Bars zu bei denen die Option "/set *.filling_*" nicht auf "horizontal" eingestellt ist).`
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette (Standardwert: `"<<"`)
|
||||
|
||||
* *weechat.look.bar_more_right*
|
||||
** Beschreibung: `string displayed when bar can be scrolled to the right (for bars with filling "horizontal")`
|
||||
** Beschreibung: `Zeichen welches anzeigt, dass die Bar nach rechts gescrollt werden kann (dies trifft nur auf Bars zu bei denen die Option "/set *.filling_*" nicht auf "horizontal" eingestellt ist).`
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette (Standardwert: `">>"`)
|
||||
|
||||
* *weechat.look.bar_more_up*
|
||||
** Beschreibung: `string displayed when bar can be scrolled up (for bars with filling different from "horizontal")`
|
||||
** Beschreibung: `Zeichen welches anzeigt, dass die Bar nach oben gescrollt werden kann (dies trifft nur auf Bars zu bei denen die Option "/set *.filling_*" nicht auf "horizontal" eingestellt ist).`
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette (Standardwert: `"--"`)
|
||||
|
||||
@@ -369,37 +369,37 @@
|
||||
** Werte: beliebige Zeichenkette (Standardwert: `"%H:%M:%S"`)
|
||||
|
||||
* *weechat.look.color_basic_force_bold*
|
||||
** Beschreibung: `force "bold" attribute for light colors and "darkgray" in basic colors (this option is disabled by default: bold is used only if terminal has less than 16 colors)`
|
||||
** Beschreibung: `erzwingt das Textattribut "fett" für helle Farben und "darkgray" um diese Farben stärker hervorzuheben (diese Option ist standardmäßig deaktiviert: "fett" findet ausschließlich dann Verwendung falls das Terminal weniger als 16 Farben zur Verfügung stellt)`
|
||||
** Typ: boolesch
|
||||
** Werte: on, off (Standardwert: `off`)
|
||||
|
||||
* *weechat.look.color_inactive_buffer*
|
||||
** Beschreibung: `use a different color for lines in inactive buffer (when line is from a merged buffer not selected)`
|
||||
** Beschreibung: `Textfarbe der Zeilen in einem inaktiven Buffer (betrifft Zeilen in einem zusammengefügt Buffer, welcher nicht aktiv ist)`
|
||||
** Typ: boolesch
|
||||
** Werte: on, off (Standardwert: `off`)
|
||||
|
||||
* *weechat.look.color_inactive_message*
|
||||
** Beschreibung: `use a different color for inactive message (when window is not current window, or if line is from a merged buffer not selected)`
|
||||
** Beschreibung: `nutzt eine andere Farbe um die inaktiven Nachrichten darzustellen (Fenster ist nicht das aktuelle Fenster oder die Zeile des zusammengefügten Buffers ist nicht aktiv)`
|
||||
** Typ: boolesch
|
||||
** Werte: on, off (Standardwert: `on`)
|
||||
|
||||
* *weechat.look.color_inactive_prefix*
|
||||
** Beschreibung: `use a different color for inactive prefix (when window is not current window, or if line is from a merged buffer not selected)`
|
||||
** Beschreibung: `nutzt eine andere Farbe um den inaktiven Prefix darzustellen (Fenster ist nicht das aktuelle Fenster oder die Zeile des zusammengefügten Buffers ist nicht aktiv)`
|
||||
** Typ: boolesch
|
||||
** Werte: on, off (Standardwert: `on`)
|
||||
|
||||
* *weechat.look.color_inactive_prefix_buffer*
|
||||
** Beschreibung: `use a different color for inactive buffer name in prefix (when window is not current window, or if line is from a merged buffer not selected)`
|
||||
** Beschreibung: `nutzt eine andere Farbe um den inaktiven BUffernamen im Prefix (Fenster ist nicht das aktuelle Fenster oder die Zeile des zusammengefügten Buffers ist nicht aktiv)`
|
||||
** Typ: boolesch
|
||||
** Werte: on, off (Standardwert: `on`)
|
||||
|
||||
* *weechat.look.color_inactive_time*
|
||||
** Beschreibung: `use a different color for inactive time (when window is not current window, or if line is from a merged buffer not selected)`
|
||||
** Beschreibung: `nutzt eine andere Farbe um die inaktive Zeitangabe darzustellen (Fenster ist nicht das aktuelle Fenster oder die Zeile des zusammengefügten Buffers ist nicht aktiv)`
|
||||
** Typ: boolesch
|
||||
** Werte: on, off (Standardwert: `off`)
|
||||
|
||||
* *weechat.look.color_inactive_window*
|
||||
** Beschreibung: `use a different color for lines in inactive window (when window is not current window)`
|
||||
** Beschreibung: `Textfarbe der Zeilen in einem inaktiven Fenster (betrifft das Fenster, welches nicht aktiv ist)`
|
||||
** Typ: boolesch
|
||||
** Werte: on, off (Standardwert: `off`)
|
||||
|
||||
@@ -529,7 +529,7 @@
|
||||
** Werte: 0 .. 65535 (Standardwert: `32`)
|
||||
|
||||
* *weechat.look.item_buffer_filter*
|
||||
** Beschreibung: `string used to show that some lines are filtered in current buffer (bar item "buffer_filter")`
|
||||
** Beschreibung: `Zeichen mit welchem in der Bar-Item ("buffer_filter") signalisiert wird ob im aktuellen Buffer die Filterfunktion eingeschaltet ist.`
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette (Standardwert: `"*"`)
|
||||
|
||||
|
||||
+10
-13
@@ -366,12 +366,13 @@ Weiterführende Informationen zum Farbmanagement erhält man in der Benutzeranle
|
||||
|
||||
|
||||
[[search_text]]
|
||||
Wie kann ich in einem Buffer nach einem Text suchen (ähnlich /lastlog in irssi)?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Wie kann ich in einem Buffer nach einem Text suchen (vergleichbar /lastlog in irssi)?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Die Standardtastenbelegung lautet @k(C-)@k(r) (der dazugehörige Befehl: `/input search_text`).
|
||||
und um zu Highlight-Nachrichten zu springen: @k(A-)@k(p)/@k(n).
|
||||
|
||||
Siehe die Benutzeranleitung für weitere Informationen zu dieser Funktion (Standardtastenbelegung).
|
||||
Siehe Benutzeranleitung für weitere Informationen zu dieser Funktion (Standardtastenbelegung).
|
||||
|
||||
|
||||
[[key_bindings]]
|
||||
@@ -579,21 +580,19 @@ werden um den Abwesenheitsstatus anderer User anzuzeigen (und man nicht von dies
|
||||
Mitteilungen überflutet werden möchte), kann man WeeChat anweisen abwesende Nicks
|
||||
in einer anderen Farbe darzustellen.
|
||||
|
||||
// TRANSLATION MISSING
|
||||
For Bitlbee ≥ 3, do that on channel '&bitlbee':
|
||||
Nutzt man Bitlbee ≥ 3, sollte man im '&bitlbee' Channel folgendes eingeben:
|
||||
|
||||
----------------------------------------
|
||||
channel set show_users online,away
|
||||
----------------------------------------
|
||||
|
||||
// TRANSLATION MISSING
|
||||
For older version of Bitlbee, do that on channel '&bitlbee':
|
||||
für ältere Versionen von Bitlbee gibt man im '&bitlbee' Channel ein:
|
||||
|
||||
----------------------------------------
|
||||
set away_devoice false
|
||||
----------------------------------------
|
||||
|
||||
Um in WeeChat anzeigen zu lassen welche Nicks abwesend sind siehe:
|
||||
Um sich in WeeChat anzeigen zu lassen welche Nicks abwesend sind siehe:
|
||||
<<color_away_nicks,abwesende Nicks>>.
|
||||
|
||||
Wenn man wirklich Voice-Nachrichten filtern möchte kann folgender Befehl angewandt
|
||||
@@ -672,17 +671,15 @@ Fall weniger sicher):
|
||||
Wie kann ich eine SSL gesicherte Verbindung zum freenode Server herstellen?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Set option 'weechat.network.gnutls_ca_file' to file with certificates:
|
||||
Die Option 'weechat.network.gnutls_ca_file' sollte auf die Zertifikationsdatei zeigen:
|
||||
|
||||
----------------------------------------
|
||||
/set weechat.network.gnutls_ca_file "/etc/ssl/certs/ca-certificates.crt"
|
||||
----------------------------------------
|
||||
|
||||
[NOTE]
|
||||
// TRANSLATION MISSING
|
||||
Check that you have this file on your system (commonly brought by package
|
||||
"ca-certificates").
|
||||
Überprüfe, ob die Zertifikationsdatei auf Deinem System installiert wurde (üblicherweise wird
|
||||
diese Datei durch das Paket "ca-certificates" bereitgestellt)
|
||||
|
||||
Konfiguration des Servers, Port, SSL, dhkey_size und dann einen
|
||||
Connect durchführen:
|
||||
|
||||
+70
-38
@@ -94,8 +94,7 @@ welche Pakete optional genutzt werden können.
|
||||
| gettext | nein | Internationalisierung (Übersetzung der Mitteilungen; Hauptsprache ist englisch)
|
||||
| libgcrypt11-dev | nein | SASL Authentifikation am IRC Server mittels DH-BLOWFISH Methode
|
||||
| libgnutls-dev (≥ 2.2.0) | nein | SSL Verbindung zu einem IRC Server
|
||||
// TRANSLATION MISSING
|
||||
| ca-certificates | nein | certificates for SSL connections
|
||||
| ca-certificates | nein | Zertifikate für SSL Verbindungen
|
||||
| libaspell-dev | nein | aspell Erweiterung
|
||||
| libperl-dev | nein | perl Erweiterung
|
||||
| python-dev | nein | python Erweiterung
|
||||
@@ -270,19 +269,19 @@ Diese Fehlermeldung senden Sie bitte an den Entwickler und beschreiben was den F
|
||||
|
||||
Danke für Ihre Mithilfe!
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[[debug_running_weechat]]
|
||||
Debug a running WeeChat
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
Eine laufende Session von WeeChat debuggen
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
To debug a running WeeChat (for example if WeeChat seems blocked), you can use
|
||||
gdb with process id (replace '12345' with PID of weechat-curses process):
|
||||
Um eine laufende Session von WeeChat zu debuggen (zum Beispiel wenn WeeChat nicht
|
||||
mehr reagieren sollte) sollte man gdb mit der Prozess-ID starten ('12345' muss durch
|
||||
die PID des laufenden weechat-curses Prozesses ersetzt werden):
|
||||
|
||||
----------------------------------------
|
||||
gdb /usr/bin/weechat-curses 12345
|
||||
----------------------------------------
|
||||
|
||||
Then like for a crash, use command `bt full`:
|
||||
Sollte WeeChat abgestürzt sein, muss der Befehl `bt full` genutzt werden:
|
||||
|
||||
----------------------------------------
|
||||
(gdb) bt full
|
||||
@@ -651,8 +650,8 @@ einigen Terminals muss die "Alt"-Taste anstelle der "Shift"-Taste gedrückt werd
|
||||
Sollten Probleme bei der Mausunterstützung auftreten, dann sollte Bitte die 'WeeChat FAQ' gelesen werden.
|
||||
|
||||
[[mouse_bind_events]]
|
||||
Maus-Events Befehle zuweisen
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
Einem Maus-Event, Befehle zuweisen
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Es gibt eine Anzahl von Maus-Events die schon standardmäßig durch
|
||||
WeeChat definiert sind (siehe <<key_bindings_mouse_context,Tasten für "mouse"-Kontext>>).
|
||||
@@ -660,34 +659,65 @@ WeeChat definiert sind (siehe <<key_bindings_mouse_context,Tasten für "mouse"-K
|
||||
Man kann mit dem Befehl `/key` im Kontext "mouse" aber auch eigene Befehle zuweisen
|
||||
und löschen (für die Syntax, siehe <<command_weechat_key,/key Befehl>>).
|
||||
|
||||
Auflistung von Events die unterstützt werden:
|
||||
Der Name eines Events besteht aus einem Modifier (optional), einer Maustaste/Mausrad
|
||||
und der Mausgeste (optional). Die unterschiedlichen Elemente werden durch ein "-" getrennt.
|
||||
|
||||
[width="80%",cols="3m,4",options="header"]
|
||||
Liste der Modifiers:
|
||||
|
||||
[width="50%",cols="3m,4",options="header"]
|
||||
|========================================
|
||||
| Event | Beschreibung
|
||||
| button1 | linker Mausknopf wird gedrückt
|
||||
| button2 | rechter Mausknopf wird gedrückt
|
||||
| button3 | mittlerer Mausknopf wird gedrückt (häufig der Druck auf das Mausrad)
|
||||
| button4 ... button9 | ein zusätzlicher Mausknopf wird gedrückt
|
||||
| wheelup | Mausrad wird nach oben gescrollt
|
||||
| wheeldown | Mausrad wird nach unten gescrollt
|
||||
| buttonX-gesture-up ^(1)^ | Mausgeste mit einer Länge von 3 bis 19 Zeichen
|
||||
| buttonX-gesture-up-long ^(1)^ | Mausgeste mit einer Länge von 20 und mehr Zeichen
|
||||
| buttonX-gesture-down ^(1)^ | Mausgeste mit einer Länge von 3 bis 19 Zeichen
|
||||
| buttonX-gesture-down-long ^(1)^ | Mausgeste mit einer Länge von 20 und mehr Zeichen
|
||||
| buttonX-gesture-left ^(1)^ | Mausgeste mit einer Länge von 3 bis 39 Zeichen
|
||||
| buttonX-gesture-left-long ^(1)^ | Mausgeste mit einer Länge von 40 und mehr Zeichen
|
||||
| buttonX-gesture-right ^(1)^ | Mausgeste mit einer Länge von 3 bis 39 Zeichen
|
||||
| buttonX-gesture-right-long ^(1)^ | Mausgeste mit einer Länge von 40 und mehr Zeichen
|
||||
| Modifier | Beschreibung
|
||||
| ctrl | Taste @k(-C-)
|
||||
| alt | Taste @k(-A-)
|
||||
| ctrl-alt | Taste @k(-C-) und @k(-A-)
|
||||
|========================================
|
||||
|
||||
[NOTE]
|
||||
^(1)^ "X" muss durch die Nummer des Mausknopfes ersetzt werden (1 bis 9) die für die Mausgeste genutzt werden soll.
|
||||
Liste der Maustasten/Mausrad:
|
||||
|
||||
[width="50%",cols="3m,4",options="header"]
|
||||
|========================================
|
||||
| Maustaste/-rad | Beschreibung
|
||||
| button1 | linker Mausknopf wird gedrückt
|
||||
| button2 | rechter Mausknopf wird gedrückt
|
||||
| button3 | mittlerer Mausknopf wird gedrückt (häufig der Druck auf das Mausrad)
|
||||
| button4 ... button9 | ein zusätzlicher Mausknopf wird gedrückt
|
||||
| wheelup | Mausrad wird nach oben gescrollt
|
||||
| wheeldown | Mausrad wird nach unten gescrollt
|
||||
|========================================
|
||||
|
||||
Liste der Mausgesten (nur für Maustasten, nicht für das Mausrad, anwendbar):
|
||||
|
||||
[width="50%",cols="3m,4",options="header"]
|
||||
|========================================
|
||||
| Mausgeste | Distanz
|
||||
| Bewegung hoch | 3 ... 19
|
||||
| Bewegung hoch (lang) | ≥ 20
|
||||
| Bewegung runter | 3 ... 19
|
||||
| Bewegung runter (lang) | ≥ 20
|
||||
| Bewegung links | 3 ... 39
|
||||
| Bewegung links (lang) | ≥ 40
|
||||
| Bewegung rechts | 3 ... 39
|
||||
| Bewegung rechts (lang) | ≥ 40
|
||||
|========================================
|
||||
|
||||
Bespiele von Ereignissen:
|
||||
|
||||
* `button1`
|
||||
* `ctrl-button1`
|
||||
* `button1-gesture-right`
|
||||
* `alt-button2-gesture-down-long`
|
||||
* `wheelup`
|
||||
* `ctrl-alt-wheeldown`
|
||||
|
||||
[TIP]
|
||||
Wird eine Funktion im "mouse"-Kontext hinzufügt ist es möglich mehrere Events mittels
|
||||
`*` abzufangen. Zum Beispiel: `button1-gesture-*` fängt alle Mausgesten ab, die mit
|
||||
der linken Maustaste eingeleitet werden.
|
||||
Wird eine Funktion im "mouse"-Kontext hinzufügt ist es möglich mehrere Mausereignisse
|
||||
mittels `*` abzufangen. Zum Beispiel fängt `button1-gesture-*` alle Mausgesten ab, die
|
||||
mit der linken Maustaste eingeleitet werden.
|
||||
|
||||
[TIP]
|
||||
Den Namen eines Mausereignisses kann man mittels des Befehls `/input grab_mouse` erfragen.
|
||||
Man führt den Befehl in der Eingabezeile aus und startet das Ereignis. Als Ergebnis erhält
|
||||
man in der Eingabezeile den Namen des ausgeführten Mausereignisses.
|
||||
|
||||
[[command_line]]
|
||||
Befehlszeile
|
||||
@@ -910,9 +940,12 @@ Attribute
|
||||
Er ist möglich einer Farbe ein Attribut hinzuzufügen. Dazu wird dem
|
||||
Farbnamen oder der Farbnummer ein- oder mehrere Attribute vorangestellt.
|
||||
|
||||
* `*`: fett
|
||||
* `!`: invertierte Darstellung
|
||||
* `_`: unterstrichen
|
||||
* `*` : fett
|
||||
* `!` : invertierte Darstellung
|
||||
* `_` : unterstrichen
|
||||
// TRANSLATION MISSING
|
||||
* `|` : keep attributes: do not reset bold/reverse/underlined when changing
|
||||
color
|
||||
|
||||
Um zum Beispiel dem eigenen Nick die Farbe weiß und unterstrichen
|
||||
zuzuordnen:
|
||||
@@ -1349,7 +1382,7 @@ Optionen für Server sind:
|
||||
|
||||
* 'sasl_mechanism': Mechanismus welcher genutzt werden soll ("plain" oder "dh-blowfish")
|
||||
* 'sasl_timeout': Zeitüberschreitung (in Sekunden) für Authentifizierung
|
||||
* 'sasl_username': Username
|
||||
* 'sasl_username': Username (Nickname)
|
||||
* 'sasl_password': Passwort
|
||||
|
||||
Soll "dh-blowfish" standardmäßig auf allen Servern genutzt werden:
|
||||
@@ -1598,8 +1631,7 @@ Unvollständige Liste der IRC Nachrichten bzw. Alias die angepasst werden könne
|
||||
| 335 | whois | whois (ist ein Bot auf)
|
||||
| 338 | whois | whois (Host)
|
||||
| 341 | | inviting
|
||||
// TRANSLATION MISSING
|
||||
| 343 | whois | whois (is opered as)
|
||||
| 343 | whois | whois (ist opered als)
|
||||
| 344 | reop | channel reop
|
||||
| 345 | reop | channel reop (Ende)
|
||||
| 346 | invitelist | Einladung list
|
||||
|
||||
+12
-6
@@ -39,27 +39,27 @@ all-local: weechat_user.en.html \
|
||||
|
||||
# user's guide
|
||||
weechat_user.en.html: weechat_user.en.txt $(wildcard autogen/user/*.txt)
|
||||
$(ASCIIDOC) -a toc -a toclevels=3 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_user.en.html weechat_user.en.txt
|
||||
$(ASCIIDOC) -a toc -a toclevels=3 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_user.en.html $(abs_top_srcdir)/doc/en/weechat_user.en.txt
|
||||
|
||||
# plugin API reference
|
||||
weechat_plugin_api.en.html: weechat_plugin_api.en.txt $(wildcard autogen/plugin_api/*.txt)
|
||||
$(ASCIIDOC) -a toc -a toclevels=4 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_plugin_api.en.html weechat_plugin_api.en.txt
|
||||
$(ASCIIDOC) -a toc -a toclevels=4 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_plugin_api.en.html $(abs_top_srcdir)/doc/en/weechat_plugin_api.en.txt
|
||||
|
||||
# scripting guide
|
||||
weechat_scripting.en.html: weechat_scripting.en.txt
|
||||
$(ASCIIDOC) -a toc -a toclevels=3 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_scripting.en.html weechat_scripting.en.txt
|
||||
$(ASCIIDOC) -a toc -a toclevels=3 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_scripting.en.html $(abs_top_srcdir)/doc/en/weechat_scripting.en.txt
|
||||
|
||||
# FAQ
|
||||
weechat_faq.en.html: weechat_faq.en.txt
|
||||
$(ASCIIDOC) -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.en.html weechat_faq.en.txt
|
||||
$(ASCIIDOC) -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.en.html $(abs_top_srcdir)/doc/en/weechat_faq.en.txt
|
||||
|
||||
# quickstart
|
||||
weechat_quickstart.en.html: weechat_quickstart.en.txt
|
||||
$(ASCIIDOC) -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_quickstart.en.html weechat_quickstart.en.txt
|
||||
$(ASCIIDOC) -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_quickstart.en.html $(abs_top_srcdir)/doc/en/weechat_quickstart.en.txt
|
||||
|
||||
# tester's guide
|
||||
weechat_tester.en.html: weechat_tester.en.txt
|
||||
$(ASCIIDOC) -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_tester.en.html weechat_tester.en.txt
|
||||
$(ASCIIDOC) -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_tester.en.html $(abs_top_srcdir)/doc/en/weechat_tester.en.txt
|
||||
|
||||
# install docs
|
||||
|
||||
@@ -67,6 +67,12 @@ install-data-hook:
|
||||
$(mkinstalldirs) $(DESTDIR)$(docdir)/
|
||||
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
|
||||
|
||||
# uninstall docs
|
||||
|
||||
uninstall-hook:
|
||||
$(RM) $(DESTDIR)$(docdir)/*.en.html
|
||||
-rmdir $(DESTDIR)$(docdir)
|
||||
|
||||
# clean
|
||||
|
||||
clean-local:
|
||||
|
||||
@@ -354,6 +354,7 @@ How can I search text in buffer (like /lastlog in irssi)?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The default key is @k(C-)@k(r) (command is: `/input search_text`).
|
||||
And jump to highlights: @k(A-)@k(p)/@k(n).
|
||||
|
||||
See user's guide for more info about this feature (default key bindings).
|
||||
|
||||
|
||||
@@ -719,6 +719,7 @@ Arguments:
|
||||
* 'string': string
|
||||
* 'mask': mask, can begin or end with "`*`" (no other "`*`" are allowed inside
|
||||
mask)
|
||||
* 'case_sensitive': 1 for case sensitive comparison, otherwise 0
|
||||
|
||||
Return value:
|
||||
|
||||
@@ -1036,8 +1037,11 @@ Arguments:
|
||||
|
||||
* 'string': string to split
|
||||
* 'separators': delimiters used for split
|
||||
* 'keep_eol': if different from 0, then each argument will contain all string
|
||||
until end of line (see example below)
|
||||
* 'keep_eol':
|
||||
** 0: each string will contain one word
|
||||
** 1: each string will contain all string until end of line (see example below)
|
||||
** 2: same as 1, but do not remove separators at end of string before split
|
||||
(_new in version 0.3.6_)
|
||||
* 'num_items_max': maximum number of items created (0 = no limit)
|
||||
* 'num_items': pointer to int which will contain number of items created
|
||||
|
||||
@@ -5878,7 +5882,7 @@ Arguments:
|
||||
|
||||
* 'color_name': name of color, one of:
|
||||
** WeeChat option name (from weechat.color.xxx), for example 'chat_delimiters'
|
||||
** color with optional background, for example 'yellow' or 'yellow,red'
|
||||
** color with optional attributes/background (see below)
|
||||
** attribute:
|
||||
*** 'bold': set bold
|
||||
*** '-bold': remove bold
|
||||
@@ -5892,6 +5896,26 @@ Arguments:
|
||||
*** 'bar_fg': foreground color for bar
|
||||
*** 'bar_delim': delimiters color for bar
|
||||
*** 'bar_bg': background color for bar
|
||||
** reset:
|
||||
*** 'reset': reset color and attributes
|
||||
*** 'resetcolor': reset color (keep attributes) (_new in version 0.3.6_)
|
||||
|
||||
Format of color is: attributes (optional) + color name + ",background"
|
||||
(optional). Possible attributes are:
|
||||
|
||||
* `*` : bold text
|
||||
* `!` : reverse video
|
||||
* `_` : underlined text
|
||||
* `|` : keep attributes: do not reset bold/reverse/underlined when changing
|
||||
color (_new in version 0.3.6_)
|
||||
|
||||
Examples:
|
||||
|
||||
* `yellow` : yellow
|
||||
* `_green` : underlined green
|
||||
* `*214` : bold orange
|
||||
* `yellow,red` : yellow on red
|
||||
* `|cyan` : cyan (and keep any attribute which was set previously)
|
||||
|
||||
Return value:
|
||||
|
||||
@@ -5936,12 +5960,20 @@ Arguments:
|
||||
* 'buffer': buffer pointer, if NULL, message is displayed on WeeChat buffer
|
||||
* 'message': message to display
|
||||
|
||||
[NOTE]
|
||||
The first tabulation in message ("\t") is used to separate prefix from message. +
|
||||
If your message has some tabs and if you don't want prefix, then use a space,
|
||||
a tab, then message (see example below): this will disable prefix (the space
|
||||
before tab will not be displayed).
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----------------------------------------
|
||||
weechat_printf (NULL, "Hello on WeeChat buffer");
|
||||
weechat_printf (buffer, "Hello on this buffer");
|
||||
weechat_printf (buffer, "%sThis is an error!", weechat_prefix ("error"));
|
||||
weechat_printf (buffer, " \tMessage without prefix but with \t some \t tabs");
|
||||
----------------------------------------
|
||||
|
||||
Script (Python):
|
||||
@@ -5954,6 +5986,8 @@ weechat.prnt(buffer, message)
|
||||
# example
|
||||
weechat.prnt("", "Hello on WeeChat buffer")
|
||||
weechat.prnt(buffer, "Hello on this buffer")
|
||||
weechat.prnt(buffer, "%sThis is an error!" % weechat.prefix("error"))
|
||||
weechat.prnt(buffer, " \tMessage without prefix but with \t some \t tabs")
|
||||
----------------------------------------
|
||||
|
||||
[NOTE]
|
||||
@@ -7510,6 +7544,10 @@ Argument is a hashtable with following entries (keys and values are string):
|
||||
Immediately after sending this hsignal, you must send command to irc server,
|
||||
and redirection will be used for this command.
|
||||
|
||||
When complete answer to your command has been be received, a hsignal will be
|
||||
send. This hsignal has name 'irc_redirection_xxx_yyy' where 'xxx' is the
|
||||
'signal' and 'yyy' the 'pattern' used.
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
@@ -8413,8 +8451,8 @@ Content of hashtable sent to callback (keys and values are of type "string"):
|
||||
| _chat | chat area indicator | "0" or "1" | "0"
|
||||
| _chat_line_x | column in line ^(3)^ | "0" ... "n" | "-1"
|
||||
| _chat_line_y | line number ^(3)^ | "0" ... "n" | "-1"
|
||||
| _chat_line_date | line date | "1313237175" | "0"
|
||||
| _chat_line_date_printed | line date ^(4)^ | "1313237175" | "0"
|
||||
| _chat_line_date | line date/time | "1313237175" | "0"
|
||||
| _chat_line_date_printed | line date/time ^(4)^ | "1313237175" | "0"
|
||||
| _chat_line_time | time displayed | "14:06:15" | ""
|
||||
| _chat_line_tags | tags of line | "irc_privmsg,notify_message,nick_FlashCode,log1" | ""
|
||||
| _chat_line_nick | nick of line | "FlashCode" | ""
|
||||
|
||||
+56
-23
@@ -658,35 +658,66 @@ Many default mouse events are already defined by WeeChat (see
|
||||
You can change or add bindings with the command `/key` using context "mouse"
|
||||
(for syntax, see <<command_weechat_key,command /key>>).
|
||||
|
||||
List of events supported:
|
||||
Event name consists of a modifier (optional), a button/wheel name and a gesture
|
||||
(optional). Different elements are separated by "-".
|
||||
|
||||
[width="80%",cols="3m,4",options="header"]
|
||||
List of modifiers:
|
||||
|
||||
[width="50%",cols="3m,4",options="header"]
|
||||
|========================================
|
||||
| Event | Description
|
||||
| button1 | click on left button
|
||||
| button2 | click on right button
|
||||
| button3 | click on middle button (often click on wheel)
|
||||
| button4 ... button9 | click on extra buttons
|
||||
| wheelup | wheel (up)
|
||||
| wheeldown | wheel (down)
|
||||
| buttonX-gesture-up ^(1)^ | gesture with distance between 3 and 19
|
||||
| buttonX-gesture-up-long ^(1)^ | gesture with distance greater than or equal to 20
|
||||
| buttonX-gesture-down ^(1)^ | gesture with distance between 3 and 19
|
||||
| buttonX-gesture-down-long ^(1)^ | gesture with distance greater than or equal to 20
|
||||
| buttonX-gesture-left ^(1)^ | gesture with distance between 3 and 39
|
||||
| buttonX-gesture-left-long ^(1)^ | gesture with distance greater than or equal to 40
|
||||
| buttonX-gesture-right ^(1)^ | gesture with distance between 3 and 39
|
||||
| buttonX-gesture-right-long ^(1)^ | gesture with distance greater than or equal to 40
|
||||
| Modifier | Description
|
||||
| ctrl | key @k(-C-)
|
||||
| alt | key @k(-A-)
|
||||
| ctrl-alt | keys @k(-C-) and @k(-A-)
|
||||
|========================================
|
||||
|
||||
[NOTE]
|
||||
^(1)^ "X" is number of button used in gesture (1 to 9).
|
||||
List of buttons/wheel:
|
||||
|
||||
[width="50%",cols="3m,4",options="header"]
|
||||
|========================================
|
||||
| Button/wheel | Description
|
||||
| button1 | click on left button
|
||||
| button2 | click on right button
|
||||
| button3 | click on middle button (often click on wheel)
|
||||
| button4 ... button9 | click on extra buttons
|
||||
| wheelup | wheel (up)
|
||||
| wheeldown | wheel (down)
|
||||
|========================================
|
||||
|
||||
List of gestures (only for buttons, not wheel):
|
||||
|
||||
[width="50%",cols="3m,4",options="header"]
|
||||
|========================================
|
||||
| Gesture | Distance
|
||||
| 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
|
||||
|========================================
|
||||
|
||||
Example of events:
|
||||
|
||||
* `button1`
|
||||
* `ctrl-button1`
|
||||
* `button1-gesture-right`
|
||||
* `alt-button2-gesture-down-long`
|
||||
* `wheelup`
|
||||
* `ctrl-alt-wheeldown`
|
||||
* ...
|
||||
|
||||
[TIP]
|
||||
When binding a key in context "mouse", it's possible to match many events using
|
||||
`*` at beginning or end of name, for example `button1-gesture-*` will match any
|
||||
gesture made using left button.
|
||||
|
||||
[TIP]
|
||||
You can find an event name with command `/input grab_mouse` then doing event
|
||||
with mouse. This will insert event name on command line.
|
||||
|
||||
[[command_line]]
|
||||
Command line
|
||||
~~~~~~~~~~~~
|
||||
@@ -901,9 +932,11 @@ Attributes
|
||||
It is possible to use some attributes for colors. One or more attributes can be
|
||||
added before color name or number:
|
||||
|
||||
* `*`: bold text
|
||||
* `!`: reverse video
|
||||
* `_`: underlined text
|
||||
* `*` : bold text
|
||||
* `!` : reverse video
|
||||
* `_` : underlined text
|
||||
* `|` : keep attributes: do not reset bold/reverse/underlined when changing
|
||||
color
|
||||
|
||||
For example if you want self nick as white underlined, do:
|
||||
|
||||
@@ -1330,7 +1363,7 @@ Options in servers are:
|
||||
|
||||
* 'sasl_mechanism': mechanism to use ("plain" or "dh-blowfish")
|
||||
* 'sasl_timeout': timeout (in seconds) for authentication
|
||||
* 'sasl_username': username
|
||||
* 'sasl_username': username (nick)
|
||||
* 'sasl_password': password
|
||||
|
||||
If you want to use "dh-blowfish" by default for all servers:
|
||||
|
||||
+12
-6
@@ -39,27 +39,27 @@ all-local: weechat_user.fr.html \
|
||||
|
||||
# user's guide
|
||||
weechat_user.fr.html: weechat_user.fr.txt $(wildcard autogen/user/*.txt)
|
||||
$(ASCIIDOC) -a lang=fr -a toc -a toclevels=3 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_user.fr.html weechat_user.fr.txt
|
||||
$(ASCIIDOC) -a lang=fr -a toc -a toclevels=3 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_user.fr.html $(abs_top_srcdir)/doc/fr/weechat_user.fr.txt
|
||||
|
||||
# plugin API reference
|
||||
weechat_plugin_api.fr.html: weechat_plugin_api.fr.txt $(wildcard autogen/plugin_api/*.txt)
|
||||
$(ASCIIDOC) -a lang=fr -a toc -a toclevels=4 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_plugin_api.fr.html weechat_plugin_api.fr.txt
|
||||
$(ASCIIDOC) -a lang=fr -a toc -a toclevels=4 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_plugin_api.fr.html $(abs_top_srcdir)/doc/fr/weechat_plugin_api.fr.txt
|
||||
|
||||
# scripting guide
|
||||
weechat_scripting.fr.html: weechat_scripting.fr.txt
|
||||
$(ASCIIDOC) -a lang=fr -a toc -a toclevels=3 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_scripting.fr.html weechat_scripting.fr.txt
|
||||
$(ASCIIDOC) -a lang=fr -a toc -a toclevels=3 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_scripting.fr.html $(abs_top_srcdir)/doc/fr/weechat_scripting.fr.txt
|
||||
|
||||
# FAQ
|
||||
weechat_faq.fr.html: weechat_faq.fr.txt
|
||||
$(ASCIIDOC) -a lang=fr -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.fr.html weechat_faq.fr.txt
|
||||
$(ASCIIDOC) -a lang=fr -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.fr.html $(abs_top_srcdir)/doc/fr/weechat_faq.fr.txt
|
||||
|
||||
# quickstart
|
||||
weechat_quickstart.fr.html: weechat_quickstart.fr.txt
|
||||
$(ASCIIDOC) -a lang=fr -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_quickstart.fr.html weechat_quickstart.fr.txt
|
||||
$(ASCIIDOC) -a lang=fr -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_quickstart.fr.html $(abs_top_srcdir)/doc/fr/weechat_quickstart.fr.txt
|
||||
|
||||
# tester's guide
|
||||
weechat_tester.fr.html: weechat_tester.fr.txt
|
||||
$(ASCIIDOC) -a lang=fr -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_tester.fr.html weechat_tester.fr.txt
|
||||
$(ASCIIDOC) -a lang=fr -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_tester.fr.html $(abs_top_srcdir)/doc/fr/weechat_tester.fr.txt
|
||||
|
||||
# install docs
|
||||
|
||||
@@ -67,6 +67,12 @@ install-data-hook:
|
||||
$(mkinstalldirs) $(DESTDIR)$(docdir)/
|
||||
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
|
||||
|
||||
# uninstall docs
|
||||
|
||||
uninstall-hook:
|
||||
$(RM) $(DESTDIR)$(docdir)/*.fr.html
|
||||
-rmdir $(DESTDIR)$(docdir)
|
||||
|
||||
# clean
|
||||
|
||||
clean-local:
|
||||
|
||||
@@ -367,6 +367,7 @@ Comment puis-je chercher du texte dans le tampon (comme /lastlog dans irssi) ?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
La touche par défaut est @k(C-)@k(r) (la commande est : `/input search_text`).
|
||||
Et sauter aux highlights : @k(A-)@k(p)/@k(n).
|
||||
|
||||
Voir le guide utilisateur pour plus d'information sur cette fonctionnalité
|
||||
(raccourcis clavier par défaut).
|
||||
|
||||
@@ -727,6 +727,7 @@ Paramètres :
|
||||
* 'string' : chaîne
|
||||
* 'mask' : masque, peut commencer ou se terminer par "`*`" (aucune autre "`*`"
|
||||
n'est autorisée dans le masque)
|
||||
* 'case_sensitive' : 1 pour une comparaison tenant compte de la casse, sinon 0
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
@@ -1051,6 +1052,11 @@ Paramètres :
|
||||
* 'separators' : délimiteurs utilisés pour le découpage
|
||||
* 'keep_eol' : si différent de 0, alors chaque paramètre contiendra toutes les
|
||||
chaînes jusqu'à la fin de la ligne (voir exemple ci-dessous)
|
||||
** 0: chaque chaîne contiendra un mot
|
||||
** 1: chaque chaîne contiendra toute la chaîne jusqu'à la fin de la ligne (voir
|
||||
exemple ci-dessous)
|
||||
** 2: comme 1, mais ne supprime pas les séparateurs en fin de chaîne avant le
|
||||
découpage (_nouveau dans la version 0.3.6_)
|
||||
* 'num_items_max' : nombre maximum de chaînes à créer (0 = pas de limite)
|
||||
* 'num_items' : pointeur vers un entier qui contiendra le nombre de chaînes
|
||||
créées
|
||||
@@ -5941,7 +5947,7 @@ Paramètres :
|
||||
|
||||
* 'color_name' : nom de la couleur, parmi :
|
||||
** une option WeeChat (de weechat.color.xxx), par exemple 'chat_delimiters'
|
||||
** une couleur avec un fond optionnel, par exemple 'yellow' ou 'yellow,red'
|
||||
** une couleur avec des attributs/fond optionnels (voir ci-dessous)
|
||||
** un attribut :
|
||||
*** 'bold' : activer le gras
|
||||
*** '-bold' : désactiver le gras
|
||||
@@ -5955,6 +5961,27 @@ Paramètres :
|
||||
*** 'bar_fg' : couleur de texte pour la barre
|
||||
*** 'bar_delim' : couleur des délimiteurs pour la barre
|
||||
*** 'bar_bg' : couleur de fond pour la barre
|
||||
** réinitialisation :
|
||||
*** 'reset' : réinitialiser la couleur et les attributs
|
||||
*** 'resetcolor' : réinitialiser la couleur (garder les attributs)
|
||||
(_nouveau dans la version 0.3.6_)
|
||||
|
||||
Le format de la couleur est : attributs (optionnel) + nom de couleur + ",fond"
|
||||
(optionnel). Les attributs possibles sont :
|
||||
|
||||
* `*` : texte gras
|
||||
* `!` : mode vidéo inverse
|
||||
* `_` : texte souligné
|
||||
* `|` : garder les attributs : ne pas réinitialiser gras/inverse/souligné lors
|
||||
du changement de couleur (_nouveau dans la version 0.3.6_)
|
||||
|
||||
Exemples :
|
||||
|
||||
* `yellow` : jaune
|
||||
* `_green` : vert souligné
|
||||
* `*214` : orange gras
|
||||
* `yellow,red` : jaune sur rouge
|
||||
* `|cyan` : cyan (et garder tout attribut définit précédemment)
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
@@ -6001,12 +6028,21 @@ Paramètres :
|
||||
tampon WeeChat
|
||||
* 'message' : message à afficher
|
||||
|
||||
[NOTE]
|
||||
La première tabulation dans le message ("\t") est utilisée pour séparer le
|
||||
préfixe du message. +
|
||||
Si votre message contient des tabulations et si vous ne voulez pas de préfixe,
|
||||
utilisez un espace, une tabulation, puis le message : cela désactivera le
|
||||
préfixe (l'espace avant la tabulation ne sera pas affiché).
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
----------------------------------------
|
||||
weechat_printf (NULL, "Bonjour sur le tampon WeeChat");
|
||||
weechat_printf (buffer, "Bonjour sur ce tampon");
|
||||
weechat_printf (buffer, "%sCeci est une erreur !", weechat_prefix ("error"));
|
||||
weechat_printf (buffer, " \tMessage sans préfixe mais avec \t quelques \t tabulations");
|
||||
----------------------------------------
|
||||
|
||||
Script (Python) :
|
||||
@@ -6019,6 +6055,8 @@ weechat.prnt(buffer, message)
|
||||
# exemple
|
||||
weechat.prnt("", "Bonjour sur le tampon WeeChat")
|
||||
weechat.prnt(buffer, "Bonjour sur ce tampon")
|
||||
weechat.prnt(buffer, "%sCeci est une erreur !" % weechat.prefix("error"))
|
||||
weechat.prnt(buffer, " \tMessage sans préfixe mais avec \t quelques \t tabulations")
|
||||
----------------------------------------
|
||||
|
||||
[NOTE]
|
||||
@@ -7619,6 +7657,10 @@ sont des chaînes) :
|
||||
Immédiatement après l'envoi de ce hsignal, vous devez envoyer la commande au
|
||||
serveur irc, et la redirection sera utilisée pour cette commande.
|
||||
|
||||
Lorsque la réponse complète à votre commande a été reçue, un hsignal est envoyé.
|
||||
Ce hsignal a le nom 'irc_redirection_xxx_yyy' où 'xxx' est le 'signal' et 'yyy'
|
||||
le 'pattern' utilisé.
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
@@ -8553,8 +8595,8 @@ Contenu de la hashtable envoyée au "callback" (les clés et valeurs sont de typ
|
||||
| _chat | indicateur zone "chat" | "0" ou "1" | "0"
|
||||
| _chat_line_x | colonne de la ligne ^(3)^ | "0" ... "n" | "-1"
|
||||
| _chat_line_y | numéro de ligne ^(3)^ | "0" ... "n" | "-1"
|
||||
| _chat_line_date | date de la ligne | "1313237175" | "0"
|
||||
| _chat_line_date_printed | date de la ligne ^(4)^ | "1313237175" | "0"
|
||||
| _chat_line_date | date/heure de la ligne | "1313237175" | "0"
|
||||
| _chat_line_date_printed | date/heure de la ligne ^(4)^ | "1313237175" | "0"
|
||||
| _chat_line_time | heure affichée | "14:06:15" | ""
|
||||
| _chat_line_tags | étiquettes de la ligne | "irc_privmsg,notify_message,nick_FlashCode,log1" | ""
|
||||
| _chat_line_nick | pseudo de la ligne | "FlashCode" | ""
|
||||
|
||||
+54
-20
@@ -674,29 +674,56 @@ Vous pouvez modifier ou ajouter des associations avec la commande `/key` en
|
||||
utilisant le contexte "mouse" (pour la syntaxe voir
|
||||
<<command_weechat_key,la commande /key>>).
|
||||
|
||||
Liste des évènements supportés :
|
||||
Un nom d'évènement consiste en un modifieur (facultatif), un bouton/roulette et
|
||||
un geste (facultatif). Les différents éléments sont séparés par "-".
|
||||
|
||||
[width="80%",cols="3m,4",options="header"]
|
||||
Liste des modifieurs :
|
||||
|
||||
[width="50%",cols="3m,4",options="header"]
|
||||
|========================================
|
||||
| Evènement | Description
|
||||
| button1 | clic sur le bouton gauche
|
||||
| button2 | clic sur le bouton droit
|
||||
| button3 | clic sur le bouton du milieu (souvent clic sur la roulette)
|
||||
| button4 ... button9 | clic sur un bouton additionnel
|
||||
| wheelup | roulette (haut)
|
||||
| wheeldown | roulette (bas)
|
||||
| buttonX-gesture-up ^(1)^ | geste avec distance entre 3 et 19
|
||||
| buttonX-gesture-up-long ^(1)^ | geste avec distance supérieure ou égale à 20
|
||||
| buttonX-gesture-down ^(1)^ | geste avec distance entre 3 et 19
|
||||
| buttonX-gesture-down-long ^(1)^ | geste avec distance supérieure ou égale à 20
|
||||
| buttonX-gesture-left ^(1)^ | geste avec distance entre 3 et 39
|
||||
| buttonX-gesture-left-long ^(1)^ | geste avec distance supérieure ou égale à 40
|
||||
| buttonX-gesture-right ^(1)^ | geste avec distance entre 3 et 39
|
||||
| buttonX-gesture-right-long ^(1)^ | geste avec distance supérieure ou égale à 40
|
||||
| Modifieur | Description
|
||||
| ctrl | touche @k(-C-)
|
||||
| alt | touche @k(-A-)
|
||||
| ctrl-alt | touches @k(-C-) et @k(-A-)
|
||||
|========================================
|
||||
|
||||
[NOTE]
|
||||
^(1)^ "X" est le numéro du bouton utilisé pour le geste (1 à 9).
|
||||
Liste des boutons/roulette :
|
||||
|
||||
[width="50%",cols="3m,4",options="header"]
|
||||
|========================================
|
||||
| Bouton/roulette | Description
|
||||
| button1 | clic sur le bouton gauche
|
||||
| button2 | clic sur le bouton droit
|
||||
| button3 | clic sur le bouton du milieu (souvent clic sur la roulette)
|
||||
| button4 ... button9 | clic sur un bouton additionnel
|
||||
| wheelup | roulette (haut)
|
||||
| wheeldown | roulette (bas)
|
||||
|========================================
|
||||
|
||||
Liste des gestes (seulement pour les boutons, pas la roulette) :
|
||||
|
||||
[width="50%",cols="3m,4",options="header"]
|
||||
|========================================
|
||||
| Geste | Distance
|
||||
| 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
|
||||
|========================================
|
||||
|
||||
Exemple d'évènements :
|
||||
|
||||
* `button1`
|
||||
* `ctrl-button1`
|
||||
* `button1-gesture-right`
|
||||
* `alt-button2-gesture-down-long`
|
||||
* `wheelup`
|
||||
* `ctrl-alt-wheeldown`
|
||||
* ...
|
||||
|
||||
[TIP]
|
||||
Lors de l'association d'une touche dans le contexte "mouse", il est possible
|
||||
@@ -704,6 +731,11 @@ d'adresser plusieurs évènements en utilisant `*` au début ou la fin du nom,
|
||||
par exemple `button1-gesture-*` qui correspond à n'importe quel geste effectué
|
||||
avec le bouton gauche.
|
||||
|
||||
[TIP]
|
||||
Vous pouvez trouver le nom de l'évènement avec la commande `/input grab_mouse`
|
||||
puis en faisant l'action avec la souris. Cela insèrera le nom de l'évènement
|
||||
sur la ligne de commande.
|
||||
|
||||
[[command_line]]
|
||||
Ligne de commande
|
||||
~~~~~~~~~~~~~~~~~
|
||||
@@ -927,6 +959,8 @@ attributs peuvent être ajoutés avant le nom ou le numéro de la couleur :
|
||||
* `*` : texte gras
|
||||
* `!` : mode vidéo inverse
|
||||
* `_` : texte souligné
|
||||
* `|` : garder les attributs : ne pas réinitialiser gras/inverse/souligné lors
|
||||
du changement de couleur
|
||||
|
||||
Par exemple si vous voulez votre pseudo en blanc souligné, faites :
|
||||
|
||||
@@ -1373,7 +1407,7 @@ Les options dans le serveur sont :
|
||||
|
||||
* 'sasl_mechanism' : mécanisme à utiliser ("plain" ou "dh-blowfish")
|
||||
* 'sasl_timeout' : délai d'attente maximum (en secondes) pour l'authentification
|
||||
* 'sasl_username' : nom d'utilisateur
|
||||
* 'sasl_username' : nom d'utilisateur (pseudo)
|
||||
* 'sasl_password' : mot de passe
|
||||
|
||||
Si vous voulez utiliser "dh-blowfish" par défaut pour tous les serveurs :
|
||||
|
||||
+12
-6
@@ -38,27 +38,27 @@ all-local: weechat_user.it.html \
|
||||
|
||||
# user's guide
|
||||
weechat_user.it.html: weechat_user.it.txt $(wildcard autogen/user/*.txt)
|
||||
$(ASCIIDOC) -a lang=it -a toc -a toclevels=3 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_user.it.html weechat_user.it.txt
|
||||
$(ASCIIDOC) -a lang=it -a toc -a toclevels=3 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_user.it.html $(abs_top_srcdir)/doc/it/weechat_user.it.txt
|
||||
|
||||
# plugin API reference
|
||||
weechat_plugin_api.it.html: weechat_plugin_api.it.txt $(wildcard autogen/plugin_api/*.txt)
|
||||
$(ASCIIDOC) -a lang=it -a toc -a toclevels=4 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_plugin_api.it.html weechat_plugin_api.it.txt
|
||||
$(ASCIIDOC) -a lang=it -a toc -a toclevels=4 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_plugin_api.it.html $(abs_top_srcdir)/doc/it/weechat_plugin_api.it.txt
|
||||
|
||||
# scripting guide
|
||||
weechat_scripting.it.html: weechat_scripting.it.txt
|
||||
$(ASCIIDOC) -a lang=it -a toc -a toclevels=3 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_scripting.it.html weechat_scripting.it.txt
|
||||
$(ASCIIDOC) -a lang=it -a toc -a toclevels=3 -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_scripting.it.html $(abs_top_srcdir)/doc/it/weechat_scripting.it.txt
|
||||
|
||||
# FAQ
|
||||
weechat_faq.it.html: weechat_faq.it.txt
|
||||
$(ASCIIDOC) -a lang=it -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.it.html weechat_faq.it.txt
|
||||
$(ASCIIDOC) -a lang=it -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.it.html $(abs_top_srcdir)/doc/it/weechat_faq.it.txt
|
||||
|
||||
# quickstart
|
||||
weechat_quickstart.it.html: weechat_quickstart.it.txt
|
||||
$(ASCIIDOC) -a lang=it -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_quickstart.it.html weechat_quickstart.it.txt
|
||||
$(ASCIIDOC) -a lang=it -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_quickstart.it.html $(abs_top_srcdir)/doc/it/weechat_quickstart.it.txt
|
||||
|
||||
# tester's guide
|
||||
weechat_tester.it.html: weechat_tester.it.txt
|
||||
$(ASCIIDOC) -a lang=it -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_tester.it.html weechat_tester.it.txt
|
||||
$(ASCIIDOC) -a lang=it -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_tester.it.html $(abs_top_srcdir)/doc/it/weechat_tester.it.txt
|
||||
|
||||
# install docs
|
||||
|
||||
@@ -66,6 +66,12 @@ install-data-hook:
|
||||
$(mkinstalldirs) $(DESTDIR)$(docdir)/
|
||||
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
|
||||
|
||||
# uninstall docs
|
||||
|
||||
uninstall-hook:
|
||||
$(RM) $(DESTDIR)$(docdir)/*.it.html
|
||||
-rmdir $(DESTDIR)$(docdir)
|
||||
|
||||
# clean
|
||||
|
||||
clean-local:
|
||||
|
||||
@@ -582,17 +582,17 @@ Esempi:
|
||||
........................................
|
||||
/upgrade [<percorso_del_binario>]
|
||||
|
||||
path_to_binary: path to WeeChat binary (default is current binary)
|
||||
percorso_del_binario: percorso del binario di WeeChat (di default è il corrente)
|
||||
|
||||
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.
|
||||
Questo comando aggiorna e ricarica una sessione di WeeChat in esecuzione. Il nuovo binario di WeeChat deve essere stato compilato o installato con un gestore pacchetti prima di eseguire questo comando.
|
||||
|
||||
Note: SSL connections are lost during upgrade, because reload of SSL sessions is currently not possible with GnuTLS. There is automatic reconnection after upgrade.
|
||||
Nota: le connessioni SSL vengono perdute durante l'aggiornamento, poiché il nuovo caricamento delle sessioni SSL non è ancora possibile con GnuTLS. La riconnessione automatica avviene dopo l'aggiornamento.
|
||||
|
||||
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.
|
||||
Il processo di aggiornamento è diviso in 4 fasi:
|
||||
1. salvataggio della sessione in file per il core e i plugin (buffer, cronologia, ..)
|
||||
2. disattivazione di tutti i plugin (i file di configurazione (*.conf) vengono scritti su disco)
|
||||
3. salvataggio della configurazione di WeeChat (weechat.conf)
|
||||
4. esecuzione del nuovo binario di WeeChat e caricamento della sessione.
|
||||
........................................
|
||||
|
||||
[[command_weechat_uptime]]
|
||||
|
||||
@@ -44,12 +44,12 @@
|
||||
** valori: un nome colore di WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numero colore del terminale o un alias; attributi consentiti prima del colore (solo per il colore del testo, non lo sfondo): "*" per il grassetto, "!" per l'inverso, "_" per la sottolineatura (valore predefinito: `cyan`)
|
||||
|
||||
* *weechat.color.chat_inactive_buffer*
|
||||
** descrizione: `text color for chat when line is inactive (buffer is merged with other buffers and is not selected)`
|
||||
** descrizione: `colore del testo per la chat quando la riga è inattiva (il buffer è unito con altri buffer e non è selezionato)`
|
||||
** tipo: colore
|
||||
** valori: un nome colore di WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numero colore del terminale o un alias; attributi consentiti prima del colore (solo per il colore del testo, non lo sfondo): "*" per il grassetto, "!" per l'inverso, "_" per la sottolineatura (valore predefinito: `darkgray`)
|
||||
|
||||
* *weechat.color.chat_inactive_window*
|
||||
** descrizione: `text color for chat when window is inactive (not current selected window)`
|
||||
** descrizione: `colore del testo per la chat quando la finestra è inattiva (nessuna finestra attiva selezionata)`
|
||||
** tipo: colore
|
||||
** valori: un nome colore di WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numero colore del terminale o un alias; attributi consentiti prima del colore (solo per il colore del testo, non lo sfondo): "*" per il grassetto, "!" per l'inverso, "_" per la sottolineatura (valore predefinito: `darkgray`)
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
** valori: un nome colore di WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numero colore del terminale o un alias; attributi consentiti prima del colore (solo per il colore del testo, non lo sfondo): "*" per il grassetto, "!" per l'inverso, "_" per la sottolineatura (valore predefinito: `brown`)
|
||||
|
||||
* *weechat.color.chat_prefix_buffer_inactive_buffer*
|
||||
** descrizione: `text color for inactive buffer name (before prefix, when many buffers are merged with same number and if buffer is not selected)`
|
||||
** 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: un nome colore di WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numero colore del terminale o un alias; attributi consentiti prima del colore (solo per il colore del testo, non lo sfondo): "*" per il grassetto, "!" per l'inverso, "_" per la sottolineatura (valore predefinito: `darkgray`)
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
** valori: un nome colore di WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numero colore del terminale o un alias; attributi consentiti prima del colore (solo per il colore del testo, non lo sfondo): "*" per il grassetto, "!" per l'inverso, "_" per la sottolineatura (valore predefinito: `yellow`)
|
||||
|
||||
* *weechat.color.chat_prefix_join*
|
||||
** descrizione: `colore del testo per il prefisso di entrata<`
|
||||
** descrizione: `colore del testo per il prefisso di entrata`
|
||||
** tipo: colore
|
||||
** valori: un nome colore di WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numero colore del terminale o un alias; attributi consentiti prima del colore (solo per il colore del testo, non lo sfondo): "*" per il grassetto, "!" per l'inverso, "_" per la sottolineatura (valore predefinito: `lightgreen`)
|
||||
|
||||
@@ -369,37 +369,37 @@
|
||||
** valori: qualsiasi stringa (valore predefinito: `"%H:%M:%S"`)
|
||||
|
||||
* *weechat.look.color_basic_force_bold*
|
||||
** descrizione: `force "bold" attribute for light colors and "darkgray" in basic colors (this option is disabled by default: bold is used only if terminal has less than 16 colors)`
|
||||
** 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: `use a different color for lines in inactive buffer (when line is from a merged buffer not selected)`
|
||||
** 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: `off`)
|
||||
|
||||
* *weechat.look.color_inactive_message*
|
||||
** descrizione: `use a different color for inactive message (when window is not current window, or if line is from a merged buffer not selected)`
|
||||
** 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: `use a different color for inactive prefix (when window is not current window, or if line is from a merged buffer not selected)`
|
||||
** 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: `use a different color for inactive buffer name in prefix (when window is not current window, or if line is from a merged buffer not selected)`
|
||||
** 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: `use a different color for inactive time (when window is not current window, or if line is from a merged buffer not selected)`
|
||||
** 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: `use a different color for lines in inactive window (when window is not current 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: `off`)
|
||||
|
||||
|
||||
@@ -363,6 +363,7 @@ Come posso cercare testo nel buffer (come /lastlog con irssi)?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Il tasto predefinito è @k(C-)@k(r) (il comando è: `/input search-text`).
|
||||
E per passare agli eventi: @k(A-)@k(p)/@k(n).
|
||||
|
||||
Consultare la guida per l'utente per maggiori informazioni su questa funzione
|
||||
(combinazioni tasti predefiniti).
|
||||
@@ -461,7 +462,7 @@ Se il mouse ancora non funziona, verificare la variabile TERM nella propria
|
||||
shell (consultare l'output di `echo $TERM` nel terminale).
|
||||
In base al terminale usato, il mouse potrebbe non essere supportato.
|
||||
|
||||
E' possibile testare il supporto al mouse nel terminale:
|
||||
È possibile testare il supporto al mouse nel terminale:
|
||||
|
||||
----------------------------------------
|
||||
$ printf '\033[?1002h'
|
||||
@@ -571,15 +572,13 @@ utenti assenti, e si viene tempestati di messaggi voice. Perciò, è possibile
|
||||
modificare questo comportamento e consentire a WeeChat di utilizzare un
|
||||
colore speciale per i nick assenti nella lista nick.
|
||||
|
||||
// TRANSLATION MISSING
|
||||
For Bitlbee ≥ 3, do that on channel '&bitlbee':
|
||||
Per versioni di Bitlbee ≥ 3, sul canale '&bitlbee' digitare:
|
||||
|
||||
----------------------------------------
|
||||
channel set show_users online,away
|
||||
----------------------------------------
|
||||
|
||||
// TRANSLATION MISSING
|
||||
For older version of Bitlbee, do that on channel '&bitlbee':
|
||||
Per versioni precedenti di Bitlbee, sul canale '&bitlbee' digitare:
|
||||
|
||||
----------------------------------------
|
||||
set away_devoice false
|
||||
@@ -624,7 +623,7 @@ Per WeeChat ≤ 0.3.3, le opzioni sono 'irc.network.away_check' e
|
||||
Come posso essere avvisato quando qualcuno mi cerca in un canale?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
E' possibile usare script come 'beep.pl" o 'launcher.pl'.
|
||||
È possibile usare script come 'beep.pl" o 'launcher.pl'.
|
||||
|
||||
Per 'launcher.pl', bisogna impostare il comando:
|
||||
|
||||
@@ -658,8 +657,7 @@ Se si verificano errori con i certificati, è possibile disabilitare "ssl_verify
|
||||
Come ci si può connettere al server freenode via SSL?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Set option 'weechat.network.gnutls_ca_file' to file with certificates:
|
||||
Impostare l'opzione 'weechat.network.gnutls_ca_file' con il file dei certificati:
|
||||
|
||||
----------------------------------------
|
||||
/set weechat.network.gnutls_ca_file "/etc/ssl/certs/ca-certificates.crt"
|
||||
|
||||
+318
-304
File diff suppressed because it is too large
Load Diff
+59
-26
@@ -669,35 +669,67 @@ Molti eventi del mouse predefiniti sono già definiti da WeeChat (consultare
|
||||
È possibile cambiare o aggiungere combinazioni con il comando `/key` usando il
|
||||
contesto "mouse" (per la sintassi, consultare <<command_weechat_key,comando /key>>).
|
||||
|
||||
List of events supported:
|
||||
Il nome dell'evento consiste di un modificatore (opzionale), il nome di un
|
||||
pulsante/rotellina e un'azione (opzionale). Elementi diversi sono separati da "-".
|
||||
|
||||
[width="80%",cols="3m,4",options="header"]
|
||||
Elenco di modificatori
|
||||
|
||||
[width="50%",cols="3m,4",options="header"]
|
||||
|========================================
|
||||
| Evento | 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ù)
|
||||
| buttonX-gesture-up ^(1)^ | azione con distanza tra 3 and 19
|
||||
| buttonX-gesture-up-long ^(1)^ | azione con distanza maggiore o uguale a 20
|
||||
| buttonX-gesture-down ^(1)^ | azione con distanza tra 3 e 19
|
||||
| buttonX-gesture-down-long ^(1)^ | azione con distanza maggiore o uguale a 20
|
||||
| buttonX-gesture-left ^(1)^ | azione con distanza tra 3 e 39
|
||||
| buttonX-gesture-left-long ^(1)^ | azione con distanza maggiore o uguale a 40
|
||||
| buttonX-gesture-right ^(1)^ | azione con distanza tra 3 e 39
|
||||
| buttonX-gesture-right-long ^(1)^ | azione con distanza maggiore o uguale a 40
|
||||
| Modificatore | Descrizione
|
||||
| ctrl | tasto @k(-C-)
|
||||
| alt | tasto @k(-A-)
|
||||
| ctrl-alt | tasto @k(-C-) e @k(-A-)
|
||||
|========================================
|
||||
|
||||
[NOTE]
|
||||
^(1)^ "X" è il numero del pulsante usato nell'azione (da 1 a 9).
|
||||
Elenco di pulsanti/rotellina:
|
||||
|
||||
[width="50%",cols="3m,4",options="header"]
|
||||
|========================================
|
||||
| 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):
|
||||
|
||||
[width="50%",cols="3m,4",options="header"]
|
||||
|========================================
|
||||
| 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
|
||||
|========================================
|
||||
|
||||
Esempio di eventi:
|
||||
|
||||
* `button1`
|
||||
* `ctrl-button1`
|
||||
* `button1-gesture-right`
|
||||
* `alt-button2-gesture-down-long`
|
||||
* `wheelup`
|
||||
* `ctrl-alt-wheeldown`
|
||||
* ...
|
||||
|
||||
[TIP]
|
||||
Quando si associa un tasto nel contesto "mouse", è possibile far corrispondere
|
||||
più eventi usando '*' all'inizio o alla fine del nome, ad esempio
|
||||
più eventi usando `*` all'inizio o alla fine del nome, ad esempio
|
||||
`button1-gesture-*` corrisponderà ad ogni azione compiuta col tasto sinistro.
|
||||
|
||||
[TIP]
|
||||
È 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.
|
||||
|
||||
[[command_line]]
|
||||
Riga di comando
|
||||
~~~~~~~~~~~~~~~
|
||||
@@ -916,9 +948,11 @@ 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 sottolineato
|
||||
* `*` : testo in grassetto
|
||||
* `!` : video inverso
|
||||
* `_` : testo sottolineato
|
||||
* `|` : mantiene attributi: non ripristina grassetto/inverso/sottolineato
|
||||
al cambio di colore
|
||||
|
||||
Ad esempio se si vuole il proprio nick bianco e sottolineato:
|
||||
|
||||
@@ -1356,7 +1390,7 @@ Le opzioni nel server sono:
|
||||
|
||||
* 'sasl_mechanism': meccanismo da usare ("plain" o "dh-blowfish")
|
||||
* 'sasl_timeout': timeout (in secondi) per l'autenticazione
|
||||
* 'sasl_username': nome utente
|
||||
* 'sasl_username': nome utente (nick)
|
||||
* 'sasl_password': password
|
||||
|
||||
Se si desidera usare "dh-blowfish" in tutti i server:
|
||||
@@ -1612,8 +1646,7 @@ personalizzare:
|
||||
| 335 | whois | whois (è un bot su)
|
||||
| 338 | whois | whois (host)
|
||||
| 341 | | invito
|
||||
// TRANSLATION MISSING
|
||||
| 343 | whois | whois (is opered as)
|
||||
| 343 | whois | whois (è opered come)
|
||||
| 344 | reop | reop sul canale
|
||||
| 345 | reop | reop sul canale (fine)
|
||||
| 346 | invitelist | lista di inviti
|
||||
|
||||
+7
-1
@@ -26,7 +26,7 @@ all-local: weechat_quickstart.ja.html
|
||||
|
||||
# quickstart
|
||||
weechat_quickstart.ja.html: weechat_quickstart.ja.txt
|
||||
$(ASCIIDOC) -a toc -a toc-title='目次' -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_quickstart.ja.html weechat_quickstart.ja.txt
|
||||
$(ASCIIDOC) -a toc -a toc-title='目次' -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_quickstart.ja.html $(abs_top_srcdir)/doc/ja/weechat_quickstart.ja.txt
|
||||
|
||||
# install docs
|
||||
|
||||
@@ -34,6 +34,12 @@ install-data-hook:
|
||||
$(mkinstalldirs) $(DESTDIR)$(docdir)/
|
||||
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
|
||||
|
||||
# uninstall docs
|
||||
|
||||
uninstall-hook:
|
||||
$(RM) $(DESTDIR)$(docdir)/*.ja.html
|
||||
-rmdir $(DESTDIR)$(docdir)
|
||||
|
||||
# clean
|
||||
|
||||
clean-local:
|
||||
|
||||
@@ -17,6 +17,17 @@
|
||||
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
# scripting guide
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.pl.html
|
||||
COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a toc -a toclevels=3 -a toc-title='Spis treści' -a date=`date "+%F"` -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.pl.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.pl.txt
|
||||
DEPENDS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.pl.txt
|
||||
COMMENT "Building weechat_scripting.pl.html"
|
||||
)
|
||||
ADD_CUSTOM_TARGET(doc-scripting-pl ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.pl.html)
|
||||
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.pl.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME})
|
||||
|
||||
# FAQ
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.pl.html
|
||||
|
||||
+16
-4
@@ -21,25 +21,31 @@
|
||||
docdir = $(datadir)/doc/$(PACKAGE)
|
||||
|
||||
EXTRA_DIST = CMakeLists.txt \
|
||||
weechat_scripting.pl.txt \
|
||||
weechat_faq.pl.txt \
|
||||
weechat_quickstart.pl.txt \
|
||||
weechat_tester.pl.txt
|
||||
|
||||
all-local: weechat_faq.pl.html \
|
||||
all-local: weechat_scripting.pl.html \
|
||||
weechat_faq.pl.html \
|
||||
weechat_quickstart.pl.html \
|
||||
weechat_tester.pl.html
|
||||
|
||||
# scripting guide
|
||||
weechat_scripting.pl.html: weechat_scripting.pl.txt
|
||||
$(ASCIIDOC) -a toc -a toclevels=3 -a toc-title='Spis treści' -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_scripting.pl.html $(abs_top_srcdir)/doc/pl/weechat_scripting.pl.txt
|
||||
|
||||
# FAQ
|
||||
weechat_faq.pl.html: weechat_faq.pl.txt
|
||||
$(ASCIIDOC) -a toc -a toc-title='Spis treści' -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.pl.html weechat_faq.pl.txt
|
||||
$(ASCIIDOC) -a toc -a toc-title='Spis treści' -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.pl.html $(abs_top_srcdir)/doc/pl/weechat_faq.pl.txt
|
||||
|
||||
# quickstart
|
||||
weechat_quickstart.pl.html: weechat_quickstart.pl.txt
|
||||
$(ASCIIDOC) -a toc -a toc-title='Spis treści' -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_quickstart.pl.html weechat_quickstart.pl.txt
|
||||
$(ASCIIDOC) -a toc -a toc-title='Spis treści' -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_quickstart.pl.html $(abs_top_srcdir)/doc/pl/weechat_quickstart.pl.txt
|
||||
|
||||
# tester's guide
|
||||
weechat_tester.pl.html: weechat_tester.pl.txt
|
||||
$(ASCIIDOC) -a toc -a toc-title='Spis treści' -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_tester.pl.html weechat_tester.pl.txt
|
||||
$(ASCIIDOC) -a toc -a toc-title='Spis treści' -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_tester.pl.html $(abs_top_srcdir)/doc/pl/weechat_tester.pl.txt
|
||||
|
||||
# install docs
|
||||
|
||||
@@ -47,6 +53,12 @@ install-data-hook:
|
||||
$(mkinstalldirs) $(DESTDIR)$(docdir)/
|
||||
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
|
||||
|
||||
# uninstall docs
|
||||
|
||||
uninstall-hook:
|
||||
$(RM) $(DESTDIR)$(docdir)/*.pl.html
|
||||
-rmdir $(DESTDIR)$(docdir)
|
||||
|
||||
# clean
|
||||
|
||||
clean-local:
|
||||
|
||||
+78
-91
@@ -3,9 +3,8 @@ WeeChat FAQ (Często zadawane pytania)
|
||||
Sébastien Helleu <flashcode@flashtux.org>
|
||||
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[NOTE]
|
||||
This document is written for WeeChat versions ≥ 0.3.0.
|
||||
Ten dokument został napisany dla WeeChat w wersji ≥ 0.3.0.
|
||||
|
||||
|
||||
[[general]]
|
||||
@@ -41,10 +40,8 @@ Niektóre cechy (wersja ≥ 0.3.x):
|
||||
* filtrowanie po tagach i wyrażeniach regularnych
|
||||
* poziome i pionowe dzielenie okien
|
||||
* paski które możemy tworzyć i dostosowywać do własnych potrzeb
|
||||
// TRANSLATION MISSING
|
||||
* native nicklist
|
||||
// TRANSLATION MISSING
|
||||
* list of buffers (script buffers.pl)
|
||||
* natywna lista nicków
|
||||
* lista buforów (skrypt buffers.pl)
|
||||
* proxy IRC
|
||||
* przekierowanie części komęd IRC
|
||||
* przyrostowe wyszukiwanie tekstu w buforach, przeskakiwanie do podświetleń
|
||||
@@ -52,7 +49,7 @@ Niektóre cechy (wersja ≥ 0.3.x):
|
||||
* wsparcie dla aspell
|
||||
* podwójny zestaw znaków (kodowanie/dekodowanie)
|
||||
* tworzony od podstaw (nie bazuje na żadnym innym kliencie)
|
||||
* wielo platformowy
|
||||
* multi platformowy
|
||||
* 100% GPL i wolny
|
||||
|
||||
Więcej informacji na stronie: http://www.weechat.org/features
|
||||
@@ -64,7 +61,7 @@ Kompilacja / instalacja
|
||||
|
||||
|
||||
[[gui]]
|
||||
Słyszałem o wielu GUI dla WeeChat. Jak moge je skompilować/użyć?
|
||||
Słyszałem o wielu GUI dla WeeChat. Jak mogę je skompilować/użyć?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Obecnie dostępne jest tylko GUI Courses.
|
||||
@@ -94,7 +91,7 @@ Uruchomiłem WeeChat, ale czuję się zagubiony, co robić?
|
||||
Dla pomocy wpisz `/help`. Aby uzyskać pomoc dla komendy wpisz `/help komenda`.
|
||||
Klawisze i komendy są wypisane w dokumentacji.
|
||||
|
||||
Nowym użytkowniką zaleca się przeczytanie quickstart (szybki start)
|
||||
Nowym użytkownikom zaleca się przeczytanie quickstart (szybki start)
|
||||
(zobacz stronę z dokumentacją na stronie www).
|
||||
|
||||
|
||||
@@ -110,22 +107,22 @@ Nie widzę niektórych znaków diakrytycznych, co mogę zrobić?
|
||||
Jest to częsty problem, przeczytaj i sprawdź *WSZYSTKIE* poniższe rozwiązania:
|
||||
|
||||
* sprawdź czy weechat-curses jest zlinkowany z libncursesw (uwaga: wymagane na
|
||||
więkrzości dystrybucji ale nie wszystkich): `ldd /ścieżka/do/weechat-curses`
|
||||
większości dystrybucji ale nie wszystkich): `ldd /ścieżka/do/weechat-curses`
|
||||
* sprawdź czy wtyczka "Charset" jest załadowana za pomocą komendy `/plugin`
|
||||
(jeśli nie jest, to najprawdopodbniej potrzebujesz pakietu "weechat-plugins")
|
||||
(jeśli nie jest, to najprawdopodobniej potrzebujesz pakietu "weechat-plugins")
|
||||
* sprawdź ustawienia kodowania (w buforze serwera). Powinieneś ujrzeć 'ISO-XXXXXX'
|
||||
lub 'UTF-8' dla kodowania terminala. Jeśli zobaczysz 'ANSI_X3.4-1968' lub inna
|
||||
wartość to twoje locale są prawdopodobnie złe.
|
||||
* ustaw globalną wartość dekodowania, na przykład:
|
||||
`/set charset.default.decode "ISO-8859-2"`
|
||||
* jeśli kożystasz z UTF-8:
|
||||
* jeśli korzystasz z UTF-8:
|
||||
** sprawdź czy twój terminal jest przystosowany dla UTF-8 (zalecanym terminalem
|
||||
dla UTF-8 jest rxvt-unicode)
|
||||
** jeśli kożystasz ze screena, sprawdź czy jest uruchomiony z trybem UTF-8
|
||||
** jeśli korzystasz ze screena, sprawdź czy jest uruchomiony z trybem UTF-8
|
||||
("`defutf8 on`" w ~/.screenrc lub `screen -U` uruchamiając screena)
|
||||
|
||||
[NOTE]
|
||||
UTF-8 jest zalecany dla WeeChat. Jeśli kożystasz z locali ISO lub innych,
|
||||
UTF-8 jest zalecany dla WeeChat. Jeśli korzystasz z locali ISO lub innych,
|
||||
sprawdź czy *wszystkie* twoje ustawienia (terminal, screen, ..) są ISO,
|
||||
a *nie* UTF-8.
|
||||
|
||||
@@ -134,7 +131,7 @@ a *nie* UTF-8.
|
||||
Paski jak tytuł i status nie są filtrowane, kolor tła zatrzymuje się po tekście, czemu?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Może to być spowodowane złą wartośćią zmiennej środowiskowej TERM (spójrz na
|
||||
Może to być spowodowane złą wartością zmiennej środowiskowej TERM (spójrz na
|
||||
wynik `echo $TERM` w terminalu).
|
||||
|
||||
W zależności, gdzie uruchamiasz WeeChat, powinieneś uzyskać:
|
||||
@@ -142,20 +139,17 @@ W zależności, gdzie uruchamiasz WeeChat, powinieneś uzyskać:
|
||||
* jeśli WeeChat jest uruchomiony lokalnie lub na zdalnej maszynie bez screena,
|
||||
zależy od używanego terminala: 'xterm', 'xterm-256color', 'rxvt-unicode',
|
||||
'rxvt-256color', ...
|
||||
// TRANSLATION MISSING
|
||||
* if WeeChat runs under screen, you should have 'screen' or 'screen-256color'.
|
||||
* jeśli WeeChat działa w screenie, należy uzyć 'screen' lub 'screen-256color'.
|
||||
|
||||
W razie potrzeby, popraw zmienna TERM: `export TERM="xxx"`.
|
||||
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[[screen_weird_chars]]
|
||||
When I'm using weechat under screen/tmux, I have weird random chars, how do I fix that?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Podczas używania WeeChat pod screenem/tmuxem pojawiają mi się dziwne, losowe znaki, jak to naprawić?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
// TRANSLATION MISSING
|
||||
This may be caused by bad value of the TERM variable in your shell (look at
|
||||
output of `echo $TERM` in your terminal, *outside screen/tmux*).
|
||||
Może to być spowodowane przez złą wartość zmiennej TERM w swojej powłoce (spójrz
|
||||
na wynik `echo $TERM` w swoim terminalu, *poza screenem/tmuxem*).
|
||||
|
||||
Na przykład, 'xterm-color' może wyświetlać takie dziwne znaki, możesz użyc 'xterm',
|
||||
który działa dobrze (jak wiele innych wartości).
|
||||
@@ -167,10 +161,10 @@ W razie potrzeby, popraw zmienna TERM: `export TERM="xxx"`.
|
||||
Skompilowałem WeeChat pod OS X i wszędzie na ekranie widzę "(null)", co jest nie tak?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Jeśli samodzielnie skopilowałeś ncursesw, spróbuj użyć domyślnej wersji (dostarcznej
|
||||
Jeśli samodzielnie skopilowałeś ncursesw, spróbuj użyć domyślnej wersji (dostarczanej
|
||||
z systemem).
|
||||
|
||||
Ponadto, pod OS X, zaleca się instalowanie WeeChat za pomocą menagera pakietów
|
||||
Ponadto, pod OS X, zaleca się instalowanie WeeChat za pomocą managera pakietów
|
||||
Homebrew.
|
||||
|
||||
|
||||
@@ -188,38 +182,36 @@ Każde okno wyświetla jeden bufor. Bufor może być ukryty (nie wyświetlany pr
|
||||
okno) lub wyświetlany w jednym lub więcej oknach.
|
||||
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[[buffers_list]]
|
||||
How to display the buffers list on the left side?
|
||||
Jak wyświetlić listę z buforami po lewej stronie?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Use script 'buffers.pl'.
|
||||
Użyj skryptu 'buffers.pl'.
|
||||
|
||||
To limit size of bar:
|
||||
W celu ograniczenia rozmiaru paska:
|
||||
|
||||
----------------------------------------
|
||||
/set weechat.bar.buffers.size_max 15
|
||||
----------------------------------------
|
||||
|
||||
To move bar to bottom:
|
||||
Żeby przenieść pasek na dół:
|
||||
|
||||
----------------------------------------
|
||||
/set weechat.bar.buffers.position bottom
|
||||
----------------------------------------
|
||||
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[[customize_prefix]]
|
||||
How can I reduce length of nicks or remove nick alignment in chat area?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Jak mogę ograniczyć długość wyświetlanych nicków lub usunąć wyrównanie w oknie rozmowy?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
To reduce max length of nicks in chat area:
|
||||
W celu ograniczenia długości nicków w oknie rozmowy:
|
||||
|
||||
----------------------------------------
|
||||
/set weechat.look.prefix_align_max 15
|
||||
----------------------------------------
|
||||
|
||||
To remove nick alignment:
|
||||
Żeby usunąć wyrównanie nicków:
|
||||
|
||||
----------------------------------------
|
||||
/set weechat.look.prefix_align none
|
||||
@@ -241,7 +233,7 @@ Na przykład:
|
||||
----------------------------------------
|
||||
|
||||
Jeśli kiedyś przestanie ci to odpowiadać, po prostu usuń ten pasek, WeeChat
|
||||
autmatycznie stwrzy nowy pasek "input" jeśli element "input_text" nie zostanie
|
||||
automatycznie stworzy nowy pasek "input" jeśli element "input_text" nie zostanie
|
||||
użyty w żadnym z pasków:
|
||||
|
||||
----------------------------------------
|
||||
@@ -267,29 +259,28 @@ Innym rozwiązaniem jest przesunięcie listy nicków na górę lub dół, na prz
|
||||
Jak mogę kliknąć na długi URL (dłuższy niż linia)?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
// TRANSLATION MISSING
|
||||
By default, WeeChat displays time and prefix for each line and optional bars
|
||||
around chat area. To make easier url click, you can move nicklist to top and
|
||||
remove alignment on nick:
|
||||
Domyślnie WeeChat wyświetla czas i przedrostki dla każdej linii i opcjonalne paski
|
||||
dookoła obszaru rozmowy. Aby usprawnić klikanie w urle można przesunąć listę nicków
|
||||
na górę oraz usunąć wyrównanie nicków:
|
||||
|
||||
----------------------------------------
|
||||
/set weechat.bar.nicklist.position top
|
||||
/set weechat.look.prefix_align none
|
||||
----------------------------------------
|
||||
|
||||
With WeeChat ≥ 0.3.6, you can enable option "eat_newline_glitch", so that
|
||||
new line char is not added at the end of each line displayed (it will not break
|
||||
url selection):
|
||||
W WeeChat ≥ 0.3.6 można włączyć opcję "eat_newline_glitch", dzięki której znaki
|
||||
nowej linii nie są dodawane na końcu każdej wyświetlanej linii (nie zakłuci to
|
||||
zaznaczania urli):
|
||||
|
||||
----------------------------------------
|
||||
/set weechat.look.eat_newline_glitch on
|
||||
----------------------------------------
|
||||
|
||||
[IMPORTANT]
|
||||
This option may cause display bugs. If you experience such problem, you must
|
||||
turn off this option.
|
||||
Ta opcja może spowodować pojawienie się błędów. Jeśli doświadczysz takich problemów
|
||||
wyłącz tą opcję.
|
||||
|
||||
Other solution is to use one of following scripts:
|
||||
Innym rozwiązaniem będzie użycie któregoś z poniższych skryptów:
|
||||
|
||||
urlbar.py::
|
||||
wyświetla adresy URL na pasku
|
||||
@@ -317,16 +308,15 @@ oraz użyć tych komend po załadowaniu skryptu:
|
||||
/upgrade
|
||||
----------------------------------------
|
||||
|
||||
Aby otrzymać polskie komunikaty dla kodowania UTF-8 w terminalu, osóby
|
||||
używające ISO, moga wykonać: `/shell setenv LANG=pl_PL`.
|
||||
Aby otrzymać polskie komunikaty dla kodowania UTF-8 w terminalu, osoby
|
||||
używające ISO, mogą wykonać: `/shell setenv LANG=pl_PL`.
|
||||
|
||||
|
||||
[[256_colors]]
|
||||
Jak mogę użyć 256 kolorów w WeeChat?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
// TRANSLATION MISSING
|
||||
256 colors are supported with WeeChat ≥ 0.3.4.
|
||||
256 kolorów jest wspierane tylko w WeeChat ≥ 0.3.4.
|
||||
|
||||
Najpierw należy sprawdzić czy wartość zmiennej środowiskowej 'TERM' jest poprawna,\
|
||||
zalecane wartości to:
|
||||
@@ -335,7 +325,7 @@ zalecane wartości to:
|
||||
* poza screenem: 'xterm-256color', 'rxvt-256color', 'putty-256color',...
|
||||
|
||||
[NOTE]
|
||||
Może okazać się konieczne zainstalownie pakietu "ncurses-term" w celu użycia
|
||||
Może okazać się konieczne zainstalowanie pakietu "ncurses-term" w celu użycia
|
||||
tych wartości w zmiennej 'TERM'.
|
||||
|
||||
Jeśli używasz screena, możesz dodać to do swojego '~/.screenrc':
|
||||
@@ -360,14 +350,15 @@ można stworzyć alias dla koloru za pomocą komendy `/color`).
|
||||
Więcej informacji na temat zarządzania kolorami można uzyskać w poradniku użytkownika.
|
||||
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[[search_text]]
|
||||
How can I search text in buffer (like /lastlog in irssi)?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Jak mogę wyszukać tekst w buforze (jak za pomocą /lastlog w irssi)?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The default key is @k(C-)@k(r) (command is: `/input search_text`).
|
||||
Domyślny skrót klawiszowy to @k(C-)@k(r) (komenda: `/input search_text`).
|
||||
|
||||
See user's guide for more info about this feature (default key bindings).
|
||||
Poruszanie się między podświetleniami: @k(A-)@k(p)/@k(n).
|
||||
|
||||
Po więcej informacji zajrzyj do poradnika użytkownika (domyślne skróty klawiszowe).
|
||||
|
||||
|
||||
[[key_bindings]]
|
||||
@@ -421,10 +412,10 @@ Lista domyślnych skrótów znajduje się w poradniku użytkownika.
|
||||
|
||||
|
||||
[[global_history]]
|
||||
Jak używać globalnej histori (zamiast histori buforu) za pomoca strzałek góra/dół?
|
||||
Jak używać globalnej historii (zamiast historii buforu) za pomocą strzałek góra/dół?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Możesz przypisać strzałki w góre i dół do globalnej histori (domyślnie dla
|
||||
Możesz przypisać strzałki w górę i dół do globalnej historii (domyślnie dla
|
||||
globalnej historii przypisane są klawisze @k(C-)@k(↑) oraz @k(C-)@k(↓)).
|
||||
|
||||
Przykład:
|
||||
@@ -435,57 +426,54 @@ Przykład:
|
||||
----------------------------------------
|
||||
|
||||
[NOTE]
|
||||
Klawisze "meta2-A" i "meta2-B" mogą być inne dla twojego treminala. W celu
|
||||
Klawisze "meta2-A" i "meta2-B" mogą być inne dla twojego terminala. W celu
|
||||
znalezienia ich kodów wciśnij @k(A-)@k(k) następnie przycisk (góra lub dół).
|
||||
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[[mouse]]
|
||||
Mouse
|
||||
-----
|
||||
Obsługa myszy
|
||||
-------------
|
||||
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[[mouse_not_working]]
|
||||
Mouse is not working at all, what can I do?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Obsługa myszy w ogóle nie działa, co mogę zrobić?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Mouse is supported with WeeChat ≥ 0.3.6.
|
||||
Mysz nie jest obsługiwana w WeeChat ≥ 0.3.6.
|
||||
|
||||
First try to enable mouse:
|
||||
Na samym początku należy włączyć obsługę myszy:
|
||||
|
||||
----------------------------------------
|
||||
/mouse enable
|
||||
----------------------------------------
|
||||
|
||||
If mouse is still not working, check the TERM variable in your shell (look at
|
||||
output of `echo $TERM` in your terminal).
|
||||
According to terminfo used, mouse may not be supported.
|
||||
Jeśli to nie pomogło należy sprawdzić wartość zmiennej TERM w swojej powłoce
|
||||
(wynik komendy `echo $TERM` w swoim terminalu).
|
||||
W zależności od używanego terminfo, mysz może nie być wspierana.
|
||||
|
||||
You can test mouse support in terminal:
|
||||
Możesz sprawdzić wsparcie myszy w terminalu:
|
||||
|
||||
----------------------------------------
|
||||
$ printf '\033[?1002h'
|
||||
----------------------------------------
|
||||
|
||||
And then click on first char of terminal (upper left). You should see " !!#!!".
|
||||
Następnie kliknij pierwszy znak w terminalu (górny lewy róg). Powinieneś zobaczyć " !!#!!".
|
||||
|
||||
To disable mouse in terminal:
|
||||
Aby wyłączyć wsparcie dla myszy w terminalu:
|
||||
|
||||
----------------------------------------
|
||||
$ printf '\033[?1002l'
|
||||
----------------------------------------
|
||||
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[[mouse_coords]]
|
||||
Mouse does nothing for X or Y greater than 94, why?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Mysz nic nie robi dla X lub Y większych od 94, dlaczego?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Some terminals are sending only ISO chars for mouse coordinates, so it does not
|
||||
work for X/Y greater than 94.
|
||||
Niektóre terminale wysyłają tylko znaki ISO dla położenia myszy, dlatego nie
|
||||
działa to dla X/Y większych dla 94.
|
||||
|
||||
You should use a terminal that supports UTF-8 coordinates for mouse, like
|
||||
Powinieneś użyć terminala wspierającego położenia UTF-8 dla myszy, jak
|
||||
rxvt-unicode.
|
||||
|
||||
|
||||
@@ -501,37 +489,37 @@ Jaka jest różnica między komendami/ignore i /filter ?
|
||||
Komenda `/ignore` jest komendą IRC, zatem odnosi się tylko do buforów IRC
|
||||
(serwery i kanały).
|
||||
Pozwala ignorować niektóre nicki lub hosty użytkowników serwera lub kanału
|
||||
(komendy nie stotuje się do treści wiadomości).
|
||||
(komendy nie stosuje się do treści wiadomości).
|
||||
Pasujące wiadomości są usuwane przez wtyczkę IRC przed wyświetleniem (nigdy
|
||||
ich nie zobaczysz).
|
||||
|
||||
Komenda `/filter` jest komenda rdzenia, zatem odnosi się do dowolnego bufora.
|
||||
Pozwala filtrować niektóre linie w buforach za pomocą tagów lub wyrażeń
|
||||
regularnych dla przedrostków i zawartości lini.
|
||||
regularnych dla przedrostków i zawartości linii.
|
||||
Filtrowane linie są tylko ukrywane, nie usuwane, można je zobaczyć wyłączając
|
||||
filtry (domyślnie @k(A-)@k(=) zmienia stan filtrów).
|
||||
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[[filter_irc_join_part_quit]]
|
||||
Jak moge filtrować wiadomości o wejściu/opuszczeniu/wyjściu na kanałach IRC?
|
||||
Jak mogę filtrować wiadomości o wejściu/opuszczeniu/wyjściu na kanałach IRC?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
With smart filter (keep join/part/quit from users who spoke recently):
|
||||
Za pomocą inteligentnych filtrów (zachowuje wejścia/opuszczenia/wyjścia od osób
|
||||
piszących niedawno):
|
||||
|
||||
----------------------------------------
|
||||
/set irc.look.smart_filter on
|
||||
/filter add irc_smart * irc_smart_filter *
|
||||
----------------------------------------
|
||||
|
||||
With a global filter (hide *all* join/part/quit):
|
||||
Za pomocą globalnego filtru (ukrywa *wszystkie* wejścia/opuszczenia/wyjścia):
|
||||
|
||||
----------------------------------------
|
||||
/filter add jpk * irc_join,irc_part,irc_quit *
|
||||
----------------------------------------
|
||||
|
||||
[NOTE]
|
||||
For help: `/help filter` and `/help irc.look.smart_filter`
|
||||
Więcej informacji: `/help filter` i `/help irc.look.smart_filter`
|
||||
|
||||
|
||||
[[filter_irc_join_channel_messages]]
|
||||
@@ -560,18 +548,17 @@ Przykłady:
|
||||
|
||||
|
||||
[[filter_voice_messages]]
|
||||
Jak moge filtrować informacje o przyznaniu voice (np na serwerze Bitlbee)?
|
||||
Jak mogę filtrować informacje o przyznaniu voice (np na serwerze Bitlbee)?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Filtrowanie wiadomości o przyznaiu voice nie jest proste, ponieważ może on
|
||||
Filtrowanie wiadomości o przyznaniu voice nie jest proste, ponieważ może on
|
||||
zostać nadany wraz z innymi atrybutami w jednej wiadomości IRC.
|
||||
|
||||
Zapewne chcesz to zrobić, ponieważ Bitlbee używa voice do wskazania nieobecnych
|
||||
użytkowników, oraz jesteś zasypywany takimi wiadomościami. Możesz to zmienić oraz
|
||||
pozwolić WeeChat używać specjalnego koloru dla nieobecnych nicków.
|
||||
|
||||
// TRANSLATION MISSING
|
||||
For Bitlbee ≥ 3, do that on channel '&bitlbee':
|
||||
Dla Bitlbee ≥ 3, należy wykonać na kanale '&bitlbee':
|
||||
|
||||
----------------------------------------
|
||||
channel set show_users online,away
|
||||
@@ -690,7 +677,7 @@ The default key is @k(C-)@k(x) (command is: `/input switch_active_buffer`).
|
||||
|
||||
|
||||
[[plugins_scripts]]
|
||||
Pluginów / skrypty
|
||||
Pluginy / skrypty
|
||||
------------------
|
||||
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ Do ustawiania opcji służy `/set config.sekcja.opcja wartość`
|
||||
(gdzie `config` jest nazwą konfiguracyjną (`weechat` dla rdzenia, lub nazwa
|
||||
wtyczki), `sekcja` sekcja pliku konfiguracyjnego, oraz `opcja` nazwa opcji).
|
||||
|
||||
WeeChat natychmiast używa nowej wartości (*nigdy* nie musisz restartoweać WeeChat
|
||||
WeeChat natychmiast używa nowej wartości (*nigdy* nie musisz restartować WeeChat
|
||||
po zmianach w ustawieniach).
|
||||
|
||||
Możesz użyć `/set` z częściową nazwą zmiennej oraz dziką kartą "*" na początku
|
||||
@@ -59,7 +59,7 @@ Rdzeń vs wtyczki
|
||||
interakcji z użytkownikiem, oznacza to, że rdzeń weechat bez wtyczek jest
|
||||
bezużyteczny (wierni użytkownicy: IRC był częścią rdzenia dla wersji ≤ 0.2.6).
|
||||
|
||||
Wszystkie protokoły sieciowe jak IRC są dostarczane w oddzielnych pluginach.
|
||||
Wszystkie protokoły sieciowe jak IRC są dostarczane w oddzielnych wtyczkach.
|
||||
|
||||
Użyj komendy `/plugin` do wyświetlenia załadowanych wtyczek, powinieneś zobaczyć
|
||||
na liście "irc" oraz inne wtyczki.
|
||||
@@ -184,7 +184,7 @@ oraz duże okno (2/3), użyj komendy:
|
||||
Skróty klawiszowe
|
||||
-----------------
|
||||
|
||||
WeeChat używa domyślnie wiele klawiszy. Wszystie z nich są w dokumentacji,
|
||||
WeeChat używa domyślnie wiele klawiszy. Wszystkie z nich są w dokumentacji,
|
||||
ale powinieneś znać przynajmniej kilka najprzydatniejszych:
|
||||
|
||||
- 'alt + strzałki lewo/prawo' (lub 'F5'/'F6'): przełącza na poprzedni/następny bufor
|
||||
@@ -196,14 +196,14 @@ ale powinieneś znać przynajmniej kilka najprzydatniejszych:
|
||||
- 'alt + A': skocz do bufora z aktywnością (w hotliście)
|
||||
|
||||
Zgodnie z Twoją klawiaturą i/lub potrzebami, możesz zmienić przypisanie
|
||||
dowolnego klawisza do komendy używajac komendy `/key`.
|
||||
dowolnego klawisza do komendy używając komendy `/key`.
|
||||
Przydatnym skrótem jest meta-k (alt-k) do odnajdywania kodów klawiszy.
|
||||
|
||||
Na przykład, aby przypisać meta-y (alt-y) do komendy `/buffer close`:
|
||||
|
||||
/key bind (wciśnij meta-k) (wciśnij meta-y) /buffer close
|
||||
|
||||
Otrzymasz w lini poleceń:
|
||||
Otrzymasz w linii poleceń:
|
||||
|
||||
/key bind meta-y /buffer close
|
||||
|
||||
@@ -219,17 +219,17 @@ Wtyczki/skrypty
|
||||
W niektórych dystrybucjach, jak np Debian, wtyczki są dostarczane jako oddzielne
|
||||
pakiety (jak weechat-plugins).
|
||||
Wtyczki są automatycznie ładowane, kiedy zostaną wykryte (proszę spojrzeć do
|
||||
dokumentacji WeeChat, aby się dowiedzieć jak ładowac/wyładowywać wtyczki lub
|
||||
dokumentacji WeeChat, aby się dowiedzieć jak ładować/wyładowywać wtyczki lub
|
||||
skrypty).
|
||||
|
||||
Niektóre pluginy pozwalają na używanie skryptów w WeeChat (w wielu językach jak Perl,
|
||||
Python, Ruby, Lua oraz Tcl). Te wtyczki muszą być załadowane za pomoca komendy
|
||||
Niektóre wtyczki pozwalają na używanie skryptów w WeeChat (w wielu językach jak Perl,
|
||||
Python, Ruby, Lua oraz Tcl). Te wtyczki muszą być załadowane za pomocą komendy
|
||||
`/plugin`, dostarczają one komendy jak `/perl`, używane do ładowania skryptów.
|
||||
|
||||
Wiele zewnętrznych wtyczek/skryptów (od społeczności) jest dostępnych dla
|
||||
WeeChat: http://www.weechat.org/scripts
|
||||
|
||||
Najprostrzym sposobem na instalowanie skryptów jest użycie skryptu 'weeget.py':
|
||||
Najprostszym sposobem na instalowanie skryptów jest użycie skryptu 'weeget.py':
|
||||
|
||||
. ściągnij i skopiuj 'weeget.py' do ~/.weechat/python/autoload/
|
||||
. załaduj skrypt: `/python autoload`
|
||||
|
||||
@@ -0,0 +1,806 @@
|
||||
Poradnik pisania skryptów WeeChat
|
||||
=================================
|
||||
Sébastien Helleu <flashcode@flashtux.org>
|
||||
|
||||
|
||||
Ten dokument opisuje klienta rozmów WeeChat, który jest częścią WeeChat.
|
||||
|
||||
Najnowsza wersja tego dokumentu znajduje się na tej stronie:
|
||||
http://www.weechat.org/doc
|
||||
|
||||
|
||||
[[introduction]]
|
||||
Wprowadzenie
|
||||
------------
|
||||
|
||||
WeeChat (Wee Enhanced Environment for Chat) jest darmowym klientem rozmów, szybkim
|
||||
i lekkim, zaprojektowanym dla wielu systemów operacyjnych.
|
||||
|
||||
Ten podręcznik dokumentuje sposób pisania skryptów dla WeeChat, używając jednego
|
||||
z pięciu wspieranych języków skryptowych: perl, python, ruby, lua lub tcl.
|
||||
|
||||
[NOTE]
|
||||
Prawie wszystkie przykłady umieszczone w tym dokumencie są napisane w Pythonie,
|
||||
ale API jest takie same dla wszystkich języków.
|
||||
|
||||
[[scripts_in_weechat]]
|
||||
Skrypty w WeeChat
|
||||
------------------
|
||||
|
||||
[[languages_specifities]]
|
||||
Specyfika języków
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
Niektóre rzeczy są specyficzne dla danego języka:
|
||||
|
||||
* perl:
|
||||
** funkcje są wywoływane za pomocą `weechat::xxx(arg1, arg2, ...);`
|
||||
* python:
|
||||
** należy wykonać `import weechat`
|
||||
** funkcje `print*` są nazwane `prnt*` w pythonie (ponieważ 'print' jest zastrzeżonym
|
||||
słowem kluczowym)
|
||||
** funkcje są wywoływane za pomocą `weechat.xxx(arg1, arg2, ...)`
|
||||
* ruby:
|
||||
** trzeba zdefiniować 'weechat_init' i wywołać 'register' wewnątrz
|
||||
** funkcje są wywoływane za pomocą `Weechat.xxx(arg1, arg2, ...)`
|
||||
* tcl:
|
||||
** funkcje są wywoływane za pomocą `weechat::xxx arg1 arg2 ...`
|
||||
|
||||
[[register_function]]
|
||||
Funkcja rejestrująca
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Wszystkie skrypty WeeChat muszą się "zarejestrować" w WeeChat, musi to być pierwsza
|
||||
z funkcji WeeChat wywołana w skrypcie.
|
||||
|
||||
Prototyp:
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
weechat.register(nazwa, autor, wersja, licencja, opis, funkcja_wyłączająca, kodowanie)
|
||||
----------------------------------------
|
||||
|
||||
Argumenty:
|
||||
|
||||
* 'nazwa': string, wewnętrzna nazwa skryptu
|
||||
* 'autor': string, autor skryptu
|
||||
* 'wersja': string, wersja
|
||||
* 'licencja': string, licencja
|
||||
* 'opis': string, krótki opis skryptu
|
||||
* 'funkcja_wyłączająca': string, nazwa funkcji wywoływanej podczas wyładowania skryptu
|
||||
* 'kodowanie': string, kodowane skryptu (opcjonalne, jeśli skrypt jest napisany
|
||||
w UTF-8 można nie podawać tej wartości - UTF-8 to domyślne kodowanie)
|
||||
|
||||
Przykład dla skryptu w każdym z języków:
|
||||
|
||||
* perl:
|
||||
|
||||
[source,perl]
|
||||
----------------------------------------
|
||||
weechat::register("test_perl", "FlashCode", "1.0", "GPL3", "Skrypt testowy", "", "");
|
||||
weechat::print("", "Witaj, z perlowego skryptu!");
|
||||
----------------------------------------
|
||||
|
||||
* python:
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
import weechat
|
||||
|
||||
weechat.register("test_python", "FlashCode", "1.0", "GPL3", "Skrypt testowy", "", "")
|
||||
weechat.prnt("", "Witaj, z pythonowego skryptu!")
|
||||
----------------------------------------
|
||||
|
||||
* ruby:
|
||||
|
||||
[source,ruby]
|
||||
----------------------------------------
|
||||
def weechat_init
|
||||
Weechat.register("test_ruby", "FlashCode", "1.0", "GPL3", "Skrypt testowy", "", "")
|
||||
Weechat.print("", "Witaj, ze skryptu ruby!")
|
||||
return Weechat::WEECHAT_RC_OK
|
||||
end
|
||||
----------------------------------------
|
||||
|
||||
* lua:
|
||||
|
||||
[source,lua]
|
||||
----------------------------------------
|
||||
weechat.register("test_lua", "FlashCode", "1.0", "GPL3", "Skrypt testowy", "", "")
|
||||
weechat.print("", "Witaj, ze skryptu lua!")
|
||||
----------------------------------------
|
||||
|
||||
* tcl:
|
||||
|
||||
// [source,tcl]
|
||||
----------------------------------------
|
||||
weechat::register "test_tcl" "FlashCode" "1.0" "GPL3" "Skrypt testowy" "" ""
|
||||
weechat::print "" "Witaj, ze skryptu tcl!"
|
||||
----------------------------------------
|
||||
|
||||
[[load_script]]
|
||||
Ładowanie skryptu
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
Musisz użyć komendy dla danego języka:
|
||||
|
||||
----------------------------------------
|
||||
/perl load perl/skrypt.pl
|
||||
/python load python/skrypt.py
|
||||
/ruby load ruby/skrypt.rb
|
||||
/lua load lua/skrypt.lua
|
||||
/tcl load tcl/skrypt.tcl
|
||||
----------------------------------------
|
||||
|
||||
Możesz zrobić dowiązanie w katalogu 'język/autoload' jeśli chcesz automatycznie
|
||||
ładować skrypt po uruchomieniu WeeChat.
|
||||
|
||||
Na przykład dla Pythona:
|
||||
|
||||
----------------------------------------
|
||||
$ cd ~/.weechat/python/autoload
|
||||
$ ln -s ../skrypt.py
|
||||
----------------------------------------
|
||||
|
||||
[[differences_with_c_api]]
|
||||
Różnice pomiędzy API dla C
|
||||
--------------------------
|
||||
|
||||
API skryptów jest prawie takie same jak API dla wtyczek pisanych w C.
|
||||
Możesz zajrzeć do 'Opisu API wtyczek WeeChat' po więcej informacji na temat
|
||||
każdej z funkcji API: prototyp, argumenty, zwracane wartości, przykłady.
|
||||
|
||||
Ważne jest rozróżnienie 'wtyczki' od 'skryptu': 'wtyczka' jest plikiem binarnym
|
||||
skompilowanym i załadowanym za pomocą komendy `/plugin`, natomiast 'skrypt' jest
|
||||
plikiem tekstowym załadowanym przez wtyczkę jak 'python' za pomocą komendy
|
||||
`/python`.
|
||||
|
||||
W momencie, kiedy Twój skrypt 'test.py' wywołuje funkcję z API Weechat, wygląda to tak:
|
||||
|
||||
........................................
|
||||
(API skryptów) (C API)
|
||||
\/ \/
|
||||
test.py -------> wtyczka python (python.so) -------> rdzeń WeeChat
|
||||
........................................
|
||||
|
||||
Kiedy WeeChat odwołuje się do Twojego skryptu 'test.py' wygląda to tak:
|
||||
|
||||
........................................
|
||||
(C API) (API skryptów)
|
||||
\/ \/
|
||||
rdzeń WeeChat -------> wtyczka python (python.so) -------> test.py
|
||||
........................................
|
||||
|
||||
[[pointers]]
|
||||
Wskaźniki
|
||||
~~~~~~~~~
|
||||
|
||||
Jak już zapewne wiecie nie ma prawdziwych "wskaźników" w skryptach. Dlatego kiedy
|
||||
funkcja API zwraca wskaźnik, jest on konwertowany na ciąg dla skryptu.
|
||||
|
||||
Na przykład, jeśli funkcja zwraca wskaźnik 0x1234ab56 skrypt otrzyma ciąg
|
||||
"0x1234ab56".
|
||||
|
||||
W sytuacji, kiedy funkcja API spodziewa się wskaźnika jako argumentu skrypt musi
|
||||
przekazać go jako ciąg. Wtyczki napisane w C przekonwertują go na prawdziwy
|
||||
wskaźnik, zanim wywołają funkcję z API C.
|
||||
|
||||
Dozwolone są puste ciągi lub "0x0", oznaczają NULL w C.
|
||||
Na przykład, aby wyświetlić dane w rdzennym buforze (główny bufor WeeChat):
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
weechat.prnt("", "hi!")
|
||||
----------------------------------------
|
||||
|
||||
[WARNING]
|
||||
W wielu funkcjach, z powodów wydajności, WeeChat nie sprawdza poprawności wskaźników.
|
||||
Do ciebie należy sprawdzenie poprawności przekazywanych wskaźników, w innym
|
||||
wypadku możesz zobaczyć ładny raport o błędzie ;)
|
||||
|
||||
[[callbacks]]
|
||||
Callbacki
|
||||
~~~~~~~~~
|
||||
|
||||
Prawie wszystkie callbacki muszą zwrócić WEECHAT_RC_OK lub WEECHAT_RC_ERROR
|
||||
(wyjątkiem jest callback modyfikujący, który zwraca ciąg).
|
||||
|
||||
Callbacki C używają argumentu "data", który jest wskaźnikiem. W API skryptów,
|
||||
"data" jest ciągiem o dowolnej wartości (nie jest wskaźnikiem).
|
||||
|
||||
Na przykład:
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
weechat.hook_timer(1000, 0, 1, "my_timer_cb", "moje dane")
|
||||
|
||||
def my_timer_cb(data, remaining_calls):
|
||||
# wyświetli to: "moje dane"
|
||||
weechat.prnt("", data)
|
||||
return weechat.WEECHAT_RC_OK
|
||||
----------------------------------------
|
||||
|
||||
[[script_api]]
|
||||
API skryptów
|
||||
------------
|
||||
|
||||
Więcej informacji o funkcjach w API, znajdziesz w 'Opisie API wtyczek WeeChat'.
|
||||
|
||||
[[script_api_functions]]
|
||||
Fukcje
|
||||
~~~~~~
|
||||
|
||||
Lista funkcji w API skryptów:
|
||||
|
||||
[width="100%",cols="^1,10",options="header"]
|
||||
|========================================
|
||||
| Kategoria | Funkcje
|
||||
| ogólne |
|
||||
register
|
||||
| wtyczki |
|
||||
plugin_get_name
|
||||
| ciągi |
|
||||
charset_set, iconv_to_internal, iconv_from_internal, gettext, ngettext, +
|
||||
string_match, string_has_highlight, string_has_highlight_regex,
|
||||
string_mask_to_regex, string_remove_color, string_is_command_char,
|
||||
string_input_for_buffer
|
||||
| katalogi |
|
||||
mkdir_home, mkdir, mkdir_parents
|
||||
| przechowywane listy |
|
||||
list_new, list_add, list_search, list_search_pos, list_casesearch,
|
||||
list_casesearch_pos, list_get, list_set, list_next, list_prev, list_string,
|
||||
list_size, list_remove, list_remove_all, list_free
|
||||
| pliki konfiguracyjne|
|
||||
config_new, config_new_section, config_search_section, config_new_option,
|
||||
config_search_option, +
|
||||
config_string_to_boolean, config_option_reset, config_option_set,
|
||||
config_option_set_null, config_option_unset, config_option_rename,
|
||||
config_option_is_null, config_option_default_is_null, +
|
||||
config_boolean, config_boolean_default, config_integer, config_integer_default,
|
||||
config_string, config_string_default, config_color, config_color_default, +
|
||||
config_write_option, config_write_line, config_write, config_read,
|
||||
config_reload, +
|
||||
config_option_free, config_section_free_options, config_section_free,
|
||||
config_free, +
|
||||
config_get, config_get_plugin, config_is_set_plugin, config_set_plugin,
|
||||
config_set_desc_plugin, config_unset_plugin
|
||||
| przypisania klawiszy|
|
||||
key_bind, key_unbind
|
||||
| wyświetlanie |
|
||||
prefix, color, print (for python: prnt), print_date_tags (for python:
|
||||
prnt_date_tags), print_y (for python: prnt_y), log_print
|
||||
| hooks |
|
||||
hook_command, hook_command_run, hook_timer, hook_fd, hook_process,
|
||||
hook_connect, hook_print, hook_signal, hook_signal_send, hook_hsignal,
|
||||
hook_hsignal_send, hook_config, hook_completion, hook_completion_list_add,
|
||||
hook_modifier, hook_modifier_exec, hook_info, hook_info_hashtable,
|
||||
hook_infolist, hook_focus, unhook, unhook_all
|
||||
| bufory |
|
||||
buffer_new, current_buffer, buffer_search, buffer_search_main, buffer_clear,
|
||||
buffer_close, buffer_merge, buffer_unmerge, buffer_get_integer,
|
||||
buffer_get_string, buffer_get_pointer, buffer_set,
|
||||
buffer_string_replace_local_var, buffer_match_list
|
||||
| okna |
|
||||
current_window, window_search_with_buffer, window_get_integer,
|
||||
window_get_string, window_get_pointer, window_set_title
|
||||
| lista nicków |
|
||||
nicklist_add_group, nicklist_search_group, nicklist_add_nick,
|
||||
nicklist_search_nick, nicklist_remove_group, nicklist_remove_nick,
|
||||
nicklist_remove_all, nicklist_group_get_integer, nicklist_group_get_string,
|
||||
nicklist_group_get_pointer, nicklist_group_set, nicklist_nick_get_integer,
|
||||
nicklist_nick_get_string, nicklist_nick_get_pointer, nicklist_nick_set
|
||||
| paski |
|
||||
bar_item_search, bar_item_new, bar_item_update, bar_item_remove, bar_search,
|
||||
bar_new, bar_set, bar_update, bar_remove
|
||||
| komendy |
|
||||
command
|
||||
| informacje |
|
||||
info_get, info_get_hashtable
|
||||
| infolisty |
|
||||
infolist_new, infolist_new_item, infolist_new_var_integer,
|
||||
infolist_new_var_string, infolist_new_var_pointer, infolist_new_var_time, +
|
||||
infolist_get, infolist_next, infolist_prev, infolist_reset_item_cursor, +
|
||||
infolist_fields, infolist_integer, infolist_string, infolist_pointer, +
|
||||
infolist_time, infolist_free
|
||||
| hdata |
|
||||
hdata_get, hdata_get_var_offset, hdata_get_var_type_string,
|
||||
hdata_get_var_hdata, hdata_get_list, hdata_move, hdata_integer, hdata_long,
|
||||
hdata_string, hdata_pointer, hdata_time, hdata_get_string
|
||||
| uaktualnienie |
|
||||
upgrade_new, upgrade_write_object, upgrade_read, upgrade_close
|
||||
|========================================
|
||||
|
||||
[[script_api_constants]]
|
||||
Stałe
|
||||
~~~~~
|
||||
|
||||
Lista stałych w API skryptów:
|
||||
|
||||
[width="100%",cols="^1,10",options="header"]
|
||||
|========================================
|
||||
| Kategoria | Stałe
|
||||
| zwracane kofy |
|
||||
WEECHAT_RC_OK, WEECHAT_RC_OK_EAT, WEECHAT_RC_ERROR
|
||||
| pliki konfiguracyjne|
|
||||
WEECHAT_CONFIG_READ_OK, WEECHAT_CONFIG_READ_MEMORY_ERROR,
|
||||
WEECHAT_CONFIG_READ_FILE_NOT_FOUND, WEECHAT_CONFIG_WRITE_OK,
|
||||
WEECHAT_CONFIG_WRITE_ERROR, WEECHAT_CONFIG_WRITE_MEMORY_ERROR, +
|
||||
WEECHAT_CONFIG_OPTION_SET_OK_CHANGED, WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE,
|
||||
WEECHAT_CONFIG_OPTION_SET_ERROR, WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND,
|
||||
WEECHAT_CONFIG_OPTION_UNSET_OK_NO_RESET, WEECHAT_CONFIG_OPTION_UNSET_OK_RESET,
|
||||
WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED, WEECHAT_CONFIG_OPTION_UNSET_ERROR
|
||||
| posortowane listy |
|
||||
WEECHAT_LIST_POS_SORT, WEECHAT_LIST_POS_BEGINNING, WEECHAT_LIST_POS_END
|
||||
| hotlisty |
|
||||
WEECHAT_HOTLIST_LOW, WEECHAT_HOTLIST_MESSAGE, WEECHAT_HOTLIST_PRIVATE,
|
||||
WEECHAT_HOTLIST_HIGHLIGHT
|
||||
| hook process |
|
||||
WEECHAT_HOOK_PROCESS_RUNNING, WEECHAT_HOOK_PROCESS_ERROR
|
||||
| hook connect |
|
||||
WEECHAT_HOOK_CONNECT_OK, WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND,
|
||||
WEECHAT_HOOK_CONNECT_IP_ADDRESS_NOT_FOUND, WEECHAT_HOOK_CONNECT_CONNECTION_REFUSED,
|
||||
WEECHAT_HOOK_CONNECT_PROXY_ERROR, WEECHAT_HOOK_CONNECT_LOCAL_HOSTNAME_ERROR,
|
||||
WEECHAT_HOOK_CONNECT_GNUTLS_INIT_ERROR, WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR,
|
||||
WEECHAT_HOOK_CONNECT_MEMORY_ERROR
|
||||
| hook signal |
|
||||
WEECHAT_HOOK_SIGNAL_STRING, WEECHAT_HOOK_SIGNAL_INT, WEECHAT_HOOK_SIGNAL_POINTER
|
||||
|========================================
|
||||
|
||||
[[common_tasks]]
|
||||
Częste zadania
|
||||
--------------
|
||||
|
||||
Ten rozdział przedstawia część częstych zadań z przykładami.
|
||||
Użyto tu tylko część rzeczy dostępnych w API, dokładne informacje można znaleźć
|
||||
w Opisie API wtyczek WeeChat'.
|
||||
|
||||
[[buffers]]
|
||||
Bufory
|
||||
~~~~~~
|
||||
|
||||
[[buffers_display_messages]]
|
||||
Wyświetlanie wiadomości
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Pusty ciąg jest często używany podczas pracy z głównym buforem WeeChat. Dla
|
||||
pozostałych buforów należy podać wskaźnik (jako ciąg, zobacz <<pointers,pointers>>).
|
||||
|
||||
Przykłady:
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
# wyświetl "witaj" w głównym buforze
|
||||
weechat.prnt("", "witaj")
|
||||
|
||||
# wyświetl "witaj" w głównym buforze, ale nie zapisuj tego do pliku z logiem
|
||||
# (tylko wersje >= 0.3.3)
|
||||
weechat.prnt_date_tags("", 0, "no_log", "witaj")
|
||||
|
||||
# wyświetl "==>" przed wiadomością "witaj" w obecnym buforze
|
||||
# (przedrostek i wiadomość muszą być oddzielone znakiem tabulacji)
|
||||
weechat.prnt(weechat.current_buffer(), "==>\twitaj")
|
||||
|
||||
# wyświetla wiadomość o błędzie w głównym buforze (z przedrostiem błąd)
|
||||
weechat.prnt("", "%szłe argumenty" % weechat.prefix("błąd"))
|
||||
|
||||
# wyświetl wiadomość z kolorem w głównym buforze
|
||||
weechat.prnt("", "text %sżółty na niebieskim" % weechat.color("yellow,blue"))
|
||||
|
||||
# przeszuka bufor i wyświetli wiadomość
|
||||
# (pełna nazwa bufora to wtyczka.nazwa, na przykład: "irc.freenode.#weechat")
|
||||
buffer = weechat.buffer_search("irc", "freenode.#weechat")
|
||||
weechat.prnt(buffer, "wiadomość na kanale #weechat")
|
||||
|
||||
# inne rozwiązanie na znalezienie bufora IRC (lepsze)
|
||||
# (zauważ, że serwer i kanał są oddzielone przecinkiem)
|
||||
buffer = weechat.info_get("irc_buffer", "freenode,#weechat")
|
||||
weechat.prnt(buffer, "wiadomość na kanale #weechat")
|
||||
----------------------------------------
|
||||
|
||||
[NOTE]
|
||||
Funkcja drukująca nazywa się `print` w Perl/Ruby/Lua/Tcl i `prnt` w Pythonie.
|
||||
|
||||
[[buffers_send_text]]
|
||||
Wysyłanie tekstu do bufora
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Możesz wysłać tekst lub komendę do bufora. Dokładnie tak jakby wpisać tekst
|
||||
w linii poleceń i wcisnąć [Enter]
|
||||
You can send text or command to a buffer. This is exactly like if you type text
|
||||
on command line and press [Enter].
|
||||
|
||||
Przykłady:
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
# wykona komendę "/help" w głównym buforze
|
||||
weechat.command("", "/help")
|
||||
|
||||
# wyśle "witaj" na kanał #weechat (użytkownicy na kanale zobaczą wiadomość)
|
||||
buffer = weechat.info_get("irc_buffer", "freenode,#weechat")
|
||||
weechat.command(buffer, "witaj")
|
||||
----------------------------------------
|
||||
|
||||
[[buffers_new]]
|
||||
Tworzenie nowego buforu
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Możesz stworzyć nowy bufor w skrypcie, następnie użyć go do wyświetlania wiadomości.
|
||||
|
||||
Dwa callbacki mogą zostać wywołane (są opcjonalne): jeden dla danych wejściowych
|
||||
(kiedy wpiszesz tekst i naciśniesz [Enter] w buforze), drugi jest wywoływany
|
||||
podczas zamykania bufora (na przykład przez `/buffer close`).
|
||||
|
||||
Przykłady:
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
# callback dla danych otrzymanych na wejściu
|
||||
def buffer_input_cb(data, buffer, input_data):
|
||||
# ...
|
||||
return weechat.WEECHAT_RC_OK
|
||||
|
||||
# callback wywoływany przy zamknięciu bufora
|
||||
def buffer_close_cb(data, buffer):
|
||||
# ...
|
||||
return weechat.WEECHAT_RC_OK
|
||||
|
||||
# tworzenie bufora
|
||||
buffer = weechat.buffer_new("mybuffer", "buffer_input_cb", "", "buffer_close_cb", "")
|
||||
|
||||
# ustawianie tytułu
|
||||
weechat.buffer_set(buffer, "title", "To jest tytuł mojego buforu.")
|
||||
|
||||
# wyłącza logowanie, przez ustawienie zmiennej lokalnej "no_log" na "1"
|
||||
weechat.buffer_set(buffer, "localvar_set_no_log", "1")
|
||||
----------------------------------------
|
||||
|
||||
[[buffers_properties]]
|
||||
Właściwości buforów
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Możesz odczytać właściwości buforów jako ciąg, liczbę lub wskaźnik.
|
||||
|
||||
Przykłady:
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
buffer = weechat.current_buffer()
|
||||
|
||||
number = weechat.buffer_get_integer(buffer, "number")
|
||||
name = weechat.buffer_get_string(buffer, "name")
|
||||
short_name = weechat.buffer_get_string(buffer, "short_name")
|
||||
----------------------------------------
|
||||
|
||||
Możliwe jest dodanie, odczytanie lub kasowanie lokalnych zmiennych dla buforów:
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
# dodanie zmiennej lokalnej
|
||||
weechat.buffer_set(buffer, "localvar_set_myvar", "my_value")
|
||||
|
||||
# odczyt zmiennej lokalnej
|
||||
myvar = weechat.buffer_get_string(buffer, "localvar_myvar")
|
||||
|
||||
# kasowanie zmiennej loaklnej
|
||||
weechat.buffer_set(buffer, "localvar_del_myvar", "")
|
||||
----------------------------------------
|
||||
|
||||
Aby zobaczyć lokalne zmienne danego bufora, należy wykonać tą komendę w WeeChat:
|
||||
|
||||
----------------------------------------
|
||||
/buffer localvar
|
||||
----------------------------------------
|
||||
|
||||
[[hooks]]
|
||||
Hooks
|
||||
~~~~~
|
||||
|
||||
[[hook_command]]
|
||||
Dodanie nowej komendy
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Aby dodać nową komendę należy użyć `hook_command`. Można użyć własnego szablonu
|
||||
dopełnień dla uzupełniania argumentów własnej komendy.
|
||||
|
||||
Przykład:
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
def my_command_cb(data, buffer, args):
|
||||
# ...
|
||||
return weechat.WEECHAT_RC_OK
|
||||
|
||||
hook = weechat.hook_command("myfilter", "opis myfilter",
|
||||
"[list] | [enable|disable|toggle [name]] | [add name plugin.buffer tags regex] | [del name|-all]",
|
||||
"description of arguments...",
|
||||
"list"
|
||||
" || enable %(filters_names)"
|
||||
" || disable %(filters_names)"
|
||||
" || toggle %(filters_names)"
|
||||
" || add %(filters_names) %(buffers_plugins_names)|*"
|
||||
" || del %(filters_names)|-all",
|
||||
"my_command_cb", "")
|
||||
----------------------------------------
|
||||
|
||||
Następnie w WeeChat:
|
||||
|
||||
----------------------------------------
|
||||
/help myfilter
|
||||
|
||||
/myfilter argumenty...
|
||||
----------------------------------------
|
||||
|
||||
[[hook_timer]]
|
||||
Dodanie timera
|
||||
^^^^^^^^^^^^^^
|
||||
|
||||
Do dodania timera służy `hook_timer`.
|
||||
|
||||
Przykład:
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
def timer_cb(data, remaining_calls):
|
||||
# ...
|
||||
return weechat.WEECHAT_RC_OK
|
||||
|
||||
# timer wywoływany co minutę, kiedy liczba sekund wynosi 00
|
||||
weechat.hook_timer(60 * 1000, 60, 0, "timer_cb", "")
|
||||
----------------------------------------
|
||||
|
||||
[[hook_process]]
|
||||
Wykonuje proces w tle
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Do wykonywania procesów w tle służy `hook_process`. Twoje callbacki zostaną
|
||||
wywołane, kiedy dane będą gotowe. Może zostać wywołane wiele razy.
|
||||
|
||||
Dla ostatniego wykonania Twojego callbacku 'rc' jest ustawiane na 0, lub wartość
|
||||
dodatnią, jest to kod zwracany przez komendę.
|
||||
|
||||
Przykład:
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
# Wyświetla wersje Linuksowych kerneli.
|
||||
kernel_txt = ""
|
||||
|
||||
def kernel_process_cb(data, command, rc, stdout, stderr):
|
||||
""" Callback reading command output. """
|
||||
global kernel_txt
|
||||
if stdout != "":
|
||||
kernel_txt += stdout
|
||||
if int(rc) >= 0:
|
||||
weechat.prnt("", kernel_txt)
|
||||
return weechat.WEECHAT_RC_OK
|
||||
|
||||
weechat.hook_process("python -c \"import urllib; "
|
||||
"print urllib.urlopen('http://www.kernel.org/kdist/finger_banner').read()\"",
|
||||
10 * 1000, "kernel_process_cb", "")
|
||||
----------------------------------------
|
||||
|
||||
[[config_options]]
|
||||
Konfiguracja / opcje
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
[[config_options_set_script]]
|
||||
Ustawianie opcji dla skryptu
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Funkcja `config_is_set_plugin` używana jest do sprawdzenia czy opcja jest ustawiona,
|
||||
`config_set_plugin` ustawia opcję.
|
||||
|
||||
Example:
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
script_options = {
|
||||
"opcja1" : "wartość1",
|
||||
"opcja2" : "wartość2",
|
||||
"opcja3" : "wartość3",
|
||||
}
|
||||
for option, default_value in script_options.iteritems():
|
||||
if not weechat.config_is_set_plugin(option):
|
||||
weechat.config_set_plugin(option, default_value)
|
||||
----------------------------------------
|
||||
|
||||
[[config_options_detect_changes]]
|
||||
Wykrywanie zmian
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
||||
Do wykrywania zmian opcji skryptu służy `hook_config`.
|
||||
|
||||
Przykład:
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
SCRIPT_NAME = "myscript"
|
||||
|
||||
# ...
|
||||
|
||||
def config_cb(data, option, value):
|
||||
""" Callback called when a script option is changed. """
|
||||
# na przykład, odczyt wszystkich opcji skryptu...
|
||||
# ...
|
||||
return weechat.WEECHAT_RC_OK
|
||||
|
||||
# ...
|
||||
|
||||
weechat.hook_config("plugins.var.python." + SCRIPT_NAME + ".*", "config_cb", "")
|
||||
# dla innych języków, zmień "python" na swój język ("perl", "ruby", "lua" or "tcl")
|
||||
----------------------------------------
|
||||
|
||||
[[config_options_weechat]]
|
||||
Odczyt opcji WeeChat
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Funkcja `config_get` zwraca wskaźnik do opcji. Następnie, w zależności od typu opcji,
|
||||
należy wywołać `config_string`, `config_boolean`, `config_integer` lub
|
||||
`config_color`.
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
# string
|
||||
weechat.prnt("", "wartość opcji weechat.look.item_time_format to: %s"
|
||||
% (weechat.config_string(weechat.config_get("weechat.look.item_time_format"))))
|
||||
|
||||
# boolean
|
||||
weechat.prnt("", "wartość opcji weechat.look.day_change to: %d"
|
||||
% (weechat.config_boolean(weechat.config_get("weechat.look.day_change"))))
|
||||
|
||||
# integer
|
||||
weechat.prnt("", "wartość opcji weechat.look.scroll_page_percent to: %d"
|
||||
% (weechat.config_integer(weechat.config_get("weechat.look.scroll_page_percent"))))
|
||||
|
||||
# color
|
||||
weechat.prnt("", "wartość opcji weechat.color.chat_delimiters to: %s"
|
||||
% (weechat.config_color(weechat.config_get("weechat.color.chat_delimiters"))))
|
||||
----------------------------------------
|
||||
|
||||
[[irc]]
|
||||
IRC
|
||||
~~~
|
||||
|
||||
[[irc_catch_messages]]
|
||||
Przechwytywanie wiadomości
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Wtyczka IRC wysyła dwa sygnały dla otrzymanej wiadomości (`xxx` jest wewnętrzną
|
||||
nazwą serwera IRC, `yyy` to komenda IRC jak JOIN, QUIT, PRIVMSG, 301, ..):
|
||||
|
||||
xxxx,irc_in_yyy::
|
||||
sygnał wysłany przed przetworzeniem wiadomości
|
||||
|
||||
xxx,irc_in2_yyy::
|
||||
sygnał wysłany po przetworzeniu wiadomości
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
def join_cb(data, sygnał, signal_data):
|
||||
# sygnał to na przykład: "freenode,irc_in2_join"
|
||||
# signal_data to wiadomość IRC, na przykład: ":nick!user@host JOIN :#channel"
|
||||
nick = weechat.info_get("irc_nick_from_host", signal_data)
|
||||
server = signal.split(",")[0]
|
||||
channel = signal_data.split(":")[-1]
|
||||
buffer = weechat.info_get("irc_buffer", "%s,%s" % (server, channel))
|
||||
if buffer:
|
||||
weechat.prnt(buffer, "Eheh, %s has joined this channel!" % nick)
|
||||
return weechat.WEECHAT_RC_OK
|
||||
|
||||
# przydatne jest użycie "*" jako serwera, aby złapać wiadomość JOIN na wszystkich
|
||||
# serwerach IRC
|
||||
weechat.hook_signal("*,irc_in2_join", "join_cb", "")
|
||||
----------------------------------------
|
||||
|
||||
[[irc_modify_messages]]
|
||||
Modyfikowanie wiadomości
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Wtyczka IRC wysyła "modyfikator" nazwany "irc_in_xxx" ("xxx" to komenda IRC) dla
|
||||
otrzymanej wiadomości, żeby można było ją zmodyfikować.
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
def modifier_cb(data, modifier, modifier_data, string):
|
||||
# dodaje nazwę serwera do wszystkich otrzymanych wiadomości
|
||||
# (nie jest to może bardzo przydatne, ale to tylko przykład!)
|
||||
return "%s %s" % (string, modifier_data)
|
||||
|
||||
weechat.hook_modifier("irc_in_privmsg", "modifier_cb", "")
|
||||
----------------------------------------
|
||||
|
||||
[WARNING]
|
||||
Zniekształcone wiadomości mogą uszkodzić WeeChat, lub spowodować wiele problemów!
|
||||
|
||||
[[irc_message_parse]]
|
||||
Przetwarzanie wiadomości
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
_Nowe w wersji 0.3.4._
|
||||
|
||||
Można przetwarzać wiadomości IRC za pomocą info_hashtable zwanej "irc_message_parse".
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
dict = weechat.info_get_hashtable("irc_message_parse",
|
||||
{ "message": ":nick!user@host PRIVMSG #weechat :message here" })
|
||||
weechat.prnt("", "dict: %s" % dict)
|
||||
|
||||
# wyjście:
|
||||
# dict: {'nick': 'nick', 'host': 'nick!user@host', 'command': 'PRIVMSG', 'arguments': '#weechat :message here', 'channel': '#weechat'}
|
||||
----------------------------------------
|
||||
|
||||
[[infos]]
|
||||
Informacje
|
||||
~~~~~~~~~~
|
||||
|
||||
[[infos_weechat_version]]
|
||||
Wersja WeeChat
|
||||
^^^^^^^^^^^^^^^
|
||||
|
||||
Najprostszym sposobem na sprawdzenie wersji to pozyskanie "version_number"
|
||||
i wykonanie porównania między liczbą całkowitą a heksadecymalnym numerem wersji.
|
||||
|
||||
Przykład:
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
version = weechat.info_get("version_number", "") or 0
|
||||
if int(version) >= 0x00030200:
|
||||
weechat.prnt("", "This is WeeChat 0.3.2 or newer")
|
||||
else:
|
||||
weechat.prnt("", "This is WeeChat 0.3.1 or older")
|
||||
----------------------------------------
|
||||
|
||||
[NOTE]
|
||||
Wersje ≤ 0.3.1.1 zwracają pusty ciąg dla 'info_get("version_number")' należy
|
||||
sprawdzić, czy zwracana wartość *nie* jest pusta.
|
||||
|
||||
Aby otrzymać ciąg z numerem wersji:
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
# wyświetli to na przykład "Version 0.3.2"
|
||||
weechat.prnt("", "Version %s" % weechat.info_get("version", ""))
|
||||
----------------------------------------
|
||||
|
||||
[[infos_other]]
|
||||
Inne informacje
|
||||
^^^^^^^^^^^^^^^
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
# katalog domowy WeeChat, na przykład: "/home/xxxx/.weechat"
|
||||
weechat.prnt("", "Katalog domowy WeeChat: %s" % weechat.info_get("weechat_dir", ""))
|
||||
|
||||
# nieaktywność klawiatury
|
||||
weechat.prnt("", "Nieaktywny od %s sekund" % weechat.info_get("inactivity", ""))
|
||||
----------------------------------------
|
||||
|
||||
[[infolists]]
|
||||
Infolisty
|
||||
~~~~~~~~~
|
||||
|
||||
[[infolists_read]]
|
||||
Odczytanie infolisty
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Można odczytać infolisty wbudowane w WeeChat lub inne wtyczki.
|
||||
|
||||
Przykład:
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
# odczyta infolistę "buffer", aby otrzymać listę buforów
|
||||
infolist = weechat.infolist_get("buffer", "", "")
|
||||
if infolist:
|
||||
while weechat.infolist_next(infolist):
|
||||
name = weechat.infolist_string(infolist, "name")
|
||||
weechat.prnt("", "buffer: %s" % name)
|
||||
weechat.infolist_free(infolist)
|
||||
----------------------------------------
|
||||
|
||||
[IMPORTANT]
|
||||
Nie zapomnij wywołać `infolist_free`, aby zwolnić pamięć użyta przez infolistę,
|
||||
ponieważ WeeChat nie zwolni automatycznie tej pamięci.
|
||||
@@ -12,17 +12,17 @@ Najłatwiejszym (a zarazem najtrudniejszym) sposobem jest testowanie!
|
||||
|
||||
Testowanie jest bardzo ważną częścią rozwoju oprogramowania i nie powinno być
|
||||
niedoceniane. Kiedy nowe funkcje są implementowane, powinny zostać przetestowane,
|
||||
ale dla wielu z nich jest za dużo możliwości użycia lub nie są łątwe do
|
||||
zasymulowania dlatego programiści nie są wstanie sprawdzić ich wszystkich.
|
||||
ale dla wielu z nich jest za dużo możliwości użycia lub nie są łatwe do
|
||||
za symulowania dlatego programiści nie są wstanie sprawdzić ich wszystkich.
|
||||
|
||||
Na przykład: Powszechnie znana wtyczka od kodowania została wprowadzona w
|
||||
WeeChat 0.2.2: żaden z nas (programistów, współpracowników, testerów) nie
|
||||
używał kanałów ze znakami narodowymi w nazwach, kiedy wersja 0.2.2 została
|
||||
wypuszczona zostaliśmy zalani użytkownikami z Rosji obwiniającymi nas.
|
||||
Gdy będziemy mieli więcej testrów taka sytuacja nie powinna się już zdarzyć
|
||||
Gdy będziemy mieli więcej testerów taka sytuacja nie powinna się już zdarzyć
|
||||
w przyszłości.
|
||||
|
||||
Testowanie stabilenj wersji WeeChat jest bezcelowe, ponieważ programiści są
|
||||
Testowanie stabilnej wersji WeeChat jest bezcelowe, ponieważ programiści są
|
||||
zajęci cały czas implementowaniem nowych rzeczy (oraz poprawianiem błędów).
|
||||
|
||||
|
||||
@@ -30,9 +30,9 @@ zajęci cały czas implementowaniem nowych rzeczy (oraz poprawianiem błędów).
|
||||
Przygotuj swój system
|
||||
---------------------
|
||||
|
||||
Bardzo nam pomoże, jeśli włączysz linuksowe pliki 'core': jeśli WeeChat zawiesi,
|
||||
się Linuks zapisze plik zwany 'core'. Plik ten zawiera uzyteczne informacje
|
||||
pozwalające dokładnie zlokalizować bład w WeeChat.
|
||||
Bardzo nam pomoże, jeśli włączysz linuksowe pliki 'core': jeśli WeeChat zawiesi
|
||||
się Linux zapisze plik zwany 'core'. Plik ten zawiera użyteczne informacje
|
||||
pozwalające dokładnie zlokalizować błąd w WeeChat.
|
||||
|
||||
Jeśli korzystasz z powłoki 'bash', dodaj następującą linijkę do `~/.bashrc`:
|
||||
|
||||
@@ -43,11 +43,11 @@ Jeśli korzystasz z powłoki 'bash', dodaj następującą linijkę do `~/.bashrc
|
||||
Pobieranie wersji rozwojowej
|
||||
----------------------------
|
||||
|
||||
Świerzy kod (z najnowszymi błędami i funkcjami) przechowywany jest w repozytorium GIT.
|
||||
Świeży kod (z najnowszymi błędami i funkcjami) przechowywany jest w repozytorium GIT.
|
||||
|
||||
Możesz się zdecydować na własnoręczne zbudowanie (zalecana metoda):
|
||||
|
||||
* wersja z GIT może być zbudowana i zainstalowana równolegle z wersją stabulną,
|
||||
* wersja z GIT może być zbudowana i zainstalowana równolegle z wersją stabilną,
|
||||
* nie potrzebujesz uprawnień administratora, oraz nie musisz poświęcać stabilnej
|
||||
wersji WeeChat.
|
||||
|
||||
@@ -62,7 +62,7 @@ $ mkdir ~/weechat-git
|
||||
$ cd ~/weechat-git
|
||||
---------------------
|
||||
|
||||
Jeśli masz zainstalowanego gita, po prostu zklonuj repozytorium (zalecana
|
||||
Jeśli masz zainstalowanego gita, po prostu sklonuj repozytorium (zalecana
|
||||
metoda):
|
||||
|
||||
--------------------------------------------
|
||||
@@ -73,7 +73,7 @@ $ cd weechat
|
||||
UWAGA: Później możesz wykonać w tym katalogu "`git pull`", aby pobrać najnowsze
|
||||
poprawki.
|
||||
|
||||
Oczywiście możesz pobrać paczke oznaczoną jako 'devel':
|
||||
Oczywiście możesz pobrać paczkę oznaczoną jako 'devel':
|
||||
|
||||
-----------------------------------------------------------------
|
||||
$ wget http://www.weechat.org/files/src/weechat-devel.tar.bz2
|
||||
@@ -116,7 +116,7 @@ W zależności od dystrybucji Linuksa:
|
||||
Uruchomienie WeeChat
|
||||
--------------------
|
||||
|
||||
Zalca się uruchomianie WeeChat z innym katalogiem (różnym od wersji stabilnej),
|
||||
Zaleca się uruchomianie WeeChat z innym katalogiem (różnym od wersji stabilnej),
|
||||
za pomocą opcji `--dir`.
|
||||
|
||||
Komenda to:
|
||||
@@ -126,8 +126,8 @@ Komenda to:
|
||||
Jeśli nadal nie śpisz powinieneś ujrzeć znajomy interfejs i chwalić się
|
||||
z posiadania najnowszej możliwej wersji WeeChat. ;)
|
||||
|
||||
Teraz jeśli zaobserwujesz dziwne zachowanie (może sprawiać problemy, ulec awari
|
||||
lub zagotować Twoje piwo) nie wachaj się wejść na kanał `#weechat` na serwerze
|
||||
Teraz jeśli zaobserwujesz dziwne zachowanie (może sprawiać problemy, ulec awarii
|
||||
lub zagotować Twoje piwo) nie wahaj się wejść na kanał `#weechat` na serwerze
|
||||
`irc.freenode.net` i nam o tym opowiedzieć.
|
||||
|
||||
Jeśli wszystko będzie w porządku - też nam o tym powiedz, potrzebujemy Twojej opinii!
|
||||
|
||||
+7
-1
@@ -26,7 +26,7 @@ all-local: weechat_quickstart.ru.html
|
||||
|
||||
# quickstart
|
||||
weechat_quickstart.ru.html: weechat_quickstart.ru.txt
|
||||
$(ASCIIDOC) -a lang=ru -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_quickstart.ru.html weechat_quickstart.ru.txt
|
||||
$(ASCIIDOC) -a lang=ru -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_quickstart.ru.html $(abs_top_srcdir)/doc/ru/weechat_quickstart.ru.txt
|
||||
|
||||
# install docs
|
||||
|
||||
@@ -34,6 +34,12 @@ install-data-hook:
|
||||
$(mkinstalldirs) $(DESTDIR)$(docdir)/
|
||||
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
|
||||
|
||||
# uninstall docs
|
||||
|
||||
uninstall-hook:
|
||||
$(RM) $(DESTDIR)$(docdir)/*.ru.html
|
||||
-rmdir $(DESTDIR)$(docdir)
|
||||
|
||||
# clean
|
||||
|
||||
clean-local:
|
||||
|
||||
@@ -22,8 +22,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.6-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2011-09-30 16:34+0200\n"
|
||||
"PO-Revision-Date: 2011-08-15 10:10+0100\n"
|
||||
"POT-Creation-Date: 2011-10-02 15:17+0200\n"
|
||||
"PO-Revision-Date: 2011-10-01 11:13+0100\n"
|
||||
"Last-Translator: Nils Görs\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"Language: \n"
|
||||
@@ -914,8 +914,9 @@ msgstr ""
|
||||
" del: entfernt eine Infobar (alle Infobars können mit der Option \"-"
|
||||
"all\" entfernt werden).\n"
|
||||
" set: setzt einen Wert für Infobar\n"
|
||||
" option: Optionen die geändert werden (für eine List der möglichen "
|
||||
"Optionen, bitte folgenden Befehl nutzen: /set weechat.bar.<barname>.*)\n"
|
||||
" option: Option die verändert werden soll (für eine Liste aller "
|
||||
"möglichen Optionen, bitte folgenden Befehl nutzen: /set weechat.bar."
|
||||
"<barname>.*)\n"
|
||||
" value: neuer Wert für Option\n"
|
||||
" hide: Infobar wird ausgeblendet\n"
|
||||
" show: zeigt eine ausgeblendete Infobar an\n"
|
||||
@@ -945,15 +946,14 @@ msgstr ""
|
||||
msgid "manage buffers"
|
||||
msgstr "Buffer verwalten"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"list || clear [<number>|<name>|-merged|-all] || move|merge <number> || "
|
||||
"unmerge [<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || "
|
||||
"localvar || set <property> <value> || get <property> || <number>|<name>"
|
||||
msgstr ""
|
||||
"list || clear [<number>|-merged|-all] || move|merge <number> || unmerge "
|
||||
"[<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || localvar "
|
||||
"|| set <property> <value> || get <property> || <number>|<name>"
|
||||
"list || clear [<number>|<name>|-merged|-all] || move|merge <number> || "
|
||||
"unmerge [<number>|-all] || close [<n1>[-<n2>]|<name>] || notify <level> || "
|
||||
"localvar || set <property> <value> || get <property> || <number>|<name>"
|
||||
|
||||
msgid ""
|
||||
" list: list buffers (without argument, this list is displayed)\n"
|
||||
@@ -1500,7 +1500,6 @@ msgstr ""
|
||||
"<context> <key> || reset <key> || resetctxt <context> <key> || resetall -yes "
|
||||
"[<context>] || missing [<context>]"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" list: list all current keys (without argument, this list is "
|
||||
"displayed)\n"
|
||||
@@ -1584,21 +1583,24 @@ msgstr ""
|
||||
"entsprechende Tasten-Code in die Befehlszeile übernommen.\n"
|
||||
"\n"
|
||||
"Für Kontext \"mouse\" (Kontext \"cursor\" ist auch möglich), hat der zu "
|
||||
"verwendende Schlüssel folgendes Format: \"@area:Taste\". \"area\" kann "
|
||||
"folgende Werte habe:\n"
|
||||
"verwendende Schlüssel folgendes Format: \"@area:Schlüssel\" oder "
|
||||
"\"@area1>area2:Schlussel\". \"area\" kann folgende Werte habe:\n"
|
||||
" *: jedweder Bereich des Bildschirms\n"
|
||||
" chat: Chatbereich\n"
|
||||
" chat: Chatbereich (für jeden Buffer)\n"
|
||||
" chat(xxx): Chatbereich für einen Buffer mit dem Namen \"xxx"
|
||||
"\" (vollständiger Name mit Erweiterung. Beispiel: chat(perl.iset):)\n"
|
||||
" bar(*): beliebige Bar\n"
|
||||
" bar(xxx): Bar mit dem Namen \"xxx\"\n"
|
||||
" item(*): beliebiges Bar-Item\n"
|
||||
" item(xxx): Bar-Item mit Namen \"xxx\"\n"
|
||||
"Die zu nutzende Taste kann mit '*' beginnen oder enden um mehrere "
|
||||
"Der zu nutzende Schlüssel kann mit '*' beginnen oder enden um mehrere "
|
||||
"unterschiedliche Mausereignisse auszuwählen.\n"
|
||||
"Für den Kontext \"mouse\" kann ein besonderer Übergabewert für den zu "
|
||||
"nutzenden Befehl verwendet werden, \"hsignal:name\". Dieses sendet als "
|
||||
"hsignal \"name\" ein Hashtable als Argument.\n"
|
||||
"nutzenden Befehl verwendet werden, \"hsignal:name\". Dieses sendet das "
|
||||
"hsignal \"name\" und als Inhalt ein Hashtable als Argument.\n"
|
||||
"Ein weiterer Übergabewert ist \"-\" und kann genutzt werden um einen "
|
||||
"Schlüssel zu deaktivieren (der Schlüssel wird bei der Durchführung "
|
||||
"übersprungen).\n"
|
||||
"\n"
|
||||
"Beispiele:\n"
|
||||
" Mit der Tastenkombination \"alt-x\" wird die Nicklist-Bar an-und aus "
|
||||
@@ -1994,7 +1996,6 @@ msgstr "Aktualisiert WeeChat ohne die Verbindung zum Server zu trennen"
|
||||
msgid "[<path_to_binary>]"
|
||||
msgstr "[<path_to_binary>]"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"path_to_binary: path to WeeChat binary (default is current binary)\n"
|
||||
"\n"
|
||||
@@ -2015,9 +2016,10 @@ msgstr ""
|
||||
"path_to_binary: Pfad zu einer ausführbaren WeeChat Binärdatei "
|
||||
"(Standardeinstellung ist die aktuell ausführbare Datei)\n"
|
||||
"\n"
|
||||
"Dieser Befehl startet eine weitere WeeChat Sitzung. Aus diesem Grund muss "
|
||||
"WeeChat kompiliert oder mit einem Paketmanager installiert sein, bevor der "
|
||||
"Befehl ausgeführt werden kann.\n"
|
||||
"Dieser Befehl führt ein Upgrade von WeeChat durch und startet die laufende "
|
||||
"Sitzung neu. Die neue Version von WeeChat muss deshalb vorab kompiliert oder "
|
||||
"mit einem Paketmanager installiert worden sein, bevor der Befehl ausgeführt "
|
||||
"werden kann.\n"
|
||||
"\n"
|
||||
"Hinweis: SSL Verbindungen werden während eines Upgrades unterbrochen, da "
|
||||
"solche Verbindungen zur Zeit nicht mit GnuTLS gehalten werden können. Nach "
|
||||
@@ -2377,21 +2379,33 @@ msgid ""
|
||||
"string displayed when bar can be scrolled to the left (for bars with filling "
|
||||
"\"horizontal\")"
|
||||
msgstr ""
|
||||
"Zeichen welches anzeigt, dass die Bar nach links gescrollt werden kann (dies "
|
||||
"trifft nur auf Bars zu bei denen die Option \"/set *.filling_*\" nicht auf "
|
||||
"\"horizontal\" eingestellt ist)."
|
||||
|
||||
msgid ""
|
||||
"string displayed when bar can be scrolled to the right (for bars with "
|
||||
"filling \"horizontal\")"
|
||||
msgstr ""
|
||||
"Zeichen welches anzeigt, dass die Bar nach rechts gescrollt werden kann "
|
||||
"(dies trifft nur auf Bars zu bei denen die Option \"/set *.filling_*\" nicht "
|
||||
"auf \"horizontal\" eingestellt ist)."
|
||||
|
||||
msgid ""
|
||||
"string displayed when bar can be scrolled up (for bars with filling "
|
||||
"different from \"horizontal\")"
|
||||
msgstr ""
|
||||
"Zeichen welches anzeigt, dass die Bar nach oben gescrollt werden kann (dies "
|
||||
"trifft nur auf Bars zu bei denen die Option \"/set *.filling_*\" nicht auf "
|
||||
"\"horizontal\" eingestellt ist)."
|
||||
|
||||
msgid ""
|
||||
"string displayed when bar can be scrolled down (for bars with filling "
|
||||
"different from \"horizontal\")"
|
||||
msgstr ""
|
||||
"Zeichen welches anzeigt, dass die Bar nach unten gescrollt werden kann (dies "
|
||||
"trifft nur auf Bars zu bei denen die Option \"/set *.filling_*\" nicht auf "
|
||||
"\"horizontal\" eingestellt ist)."
|
||||
|
||||
msgid ""
|
||||
"default notify level for buffers (used to tell WeeChat if buffer must be "
|
||||
@@ -2420,45 +2434,56 @@ msgid ""
|
||||
"(this option is disabled by default: bold is used only if terminal has less "
|
||||
"than 16 colors)"
|
||||
msgstr ""
|
||||
"erzwingt das Textattribut \"fett\" für helle Farben und \"darkgray\" um "
|
||||
"diese Farben stärker hervorzuheben (diese Option ist standardmäßig "
|
||||
"deaktiviert: \"fett\" findet ausschließlich dann Verwendung falls das "
|
||||
"Terminal weniger als 16 Farben zur Verfügung stellt)"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"use a different color for lines in inactive window (when window is not "
|
||||
"current window)"
|
||||
msgstr ""
|
||||
"Textfarbe des Buffer-Namens (vor dem Präfix, wenn mehrere Buffer mit der "
|
||||
"selben Zahl zusammengefügt worden sind)"
|
||||
"Textfarbe der Zeilen in einem inaktiven Fenster (betrifft das Fenster, "
|
||||
"welches nicht aktiv ist)"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"use a different color for lines in inactive buffer (when line is from a "
|
||||
"merged buffer not selected)"
|
||||
msgstr ""
|
||||
"Textfarbe des Buffer-Namens (vor dem Präfix, wenn mehrere Buffer mit der "
|
||||
"selben Zahl zusammengefügt worden sind)"
|
||||
"Textfarbe der Zeilen in einem inaktiven Buffer (betrifft Zeilen in einem "
|
||||
"zusammengefügt Buffer, welcher nicht aktiv ist)"
|
||||
|
||||
msgid ""
|
||||
"use a different color for inactive time (when window is not current window, "
|
||||
"or if line is from a merged buffer not selected)"
|
||||
msgstr ""
|
||||
"nutzt eine andere Farbe um die inaktive Zeitangabe darzustellen (Fenster ist "
|
||||
"nicht das aktuelle Fenster oder die Zeile des zusammengefügten Buffers ist "
|
||||
"nicht aktiv)"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"use a different color for inactive buffer name in prefix (when window is not "
|
||||
"current window, or if line is from a merged buffer not selected)"
|
||||
msgstr ""
|
||||
"Textfarbe des Buffer-Namens (vor dem Präfix, wenn mehrere Buffer mit der "
|
||||
"selben Zahl zusammengefügt worden sind)"
|
||||
"nutzt eine andere Farbe um den inaktiven BUffernamen im Prefix (Fenster ist "
|
||||
"nicht das aktuelle Fenster oder die Zeile des zusammengefügten Buffers ist "
|
||||
"nicht aktiv)"
|
||||
|
||||
msgid ""
|
||||
"use a different color for inactive prefix (when window is not current "
|
||||
"window, or if line is from a merged buffer not selected)"
|
||||
msgstr ""
|
||||
"nutzt eine andere Farbe um den inaktiven Prefix darzustellen (Fenster ist "
|
||||
"nicht das aktuelle Fenster oder die Zeile des zusammengefügten Buffers ist "
|
||||
"nicht aktiv)"
|
||||
|
||||
msgid ""
|
||||
"use a different color for inactive message (when window is not current "
|
||||
"window, or if line is from a merged buffer not selected)"
|
||||
msgstr ""
|
||||
"nutzt eine andere Farbe um die inaktiven Nachrichten darzustellen (Fenster "
|
||||
"ist nicht das aktuelle Fenster oder die Zeile des zusammengefügten Buffers "
|
||||
"ist nicht aktiv)"
|
||||
|
||||
msgid ""
|
||||
"automatically reset table of color pairs when number of available pairs is "
|
||||
@@ -2653,6 +2678,8 @@ msgid ""
|
||||
"string used to show that some lines are filtered in current buffer (bar item "
|
||||
"\"buffer_filter\")"
|
||||
msgstr ""
|
||||
"Zeichen mit welchem in der Bar-Item (\"buffer_filter\") signalisiert wird ob "
|
||||
"im aktuellen Buffer die Filterfunktion eingeschaltet ist."
|
||||
|
||||
msgid ""
|
||||
"jump to previous buffer displayed when jumping to current buffer number "
|
||||
@@ -2833,11 +2860,15 @@ msgstr "Hintergrundfarbe des Chats"
|
||||
msgid ""
|
||||
"text color for chat when window is inactive (not current selected window)"
|
||||
msgstr ""
|
||||
"Textfarbe für Chat wenn das Fenster inaktiv ist (betrifft nicht das aktuell "
|
||||
"ausgewählte Fenster)"
|
||||
|
||||
msgid ""
|
||||
"text color for chat when line is inactive (buffer is merged with other "
|
||||
"buffers and is not selected)"
|
||||
msgstr ""
|
||||
"Textfarbe für inaktive Zeilen im Chatfenster (Buffer wurde mit anderen "
|
||||
"Buffern zusammengefügt und der Buffer ist nicht aktiv)"
|
||||
|
||||
msgid "text color for time in chat window"
|
||||
msgstr "Textfarbe der Zeit im Chatfenster"
|
||||
@@ -2852,13 +2883,13 @@ msgstr ""
|
||||
"Textfarbe des Buffer-Namens (vor dem Präfix, wenn mehrere Buffer mit der "
|
||||
"selben Zahl zusammengefügt worden sind)"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"text color for inactive buffer name (before prefix, when many buffers are "
|
||||
"merged with same number and if buffer is not selected)"
|
||||
msgstr ""
|
||||
"Textfarbe des Buffer-Namens (vor dem Präfix, wenn mehrere Buffer mit der "
|
||||
"selben Zahl zusammengefügt worden sind)"
|
||||
"Textfarbe für den inaktiven Namen des Buffer (vor dem Präfix, falls mehrere "
|
||||
"Buffer zu einem zusammengefügt worden sind und der Buffer nicht ausgewählt "
|
||||
"ist)"
|
||||
|
||||
msgid "text color for error prefix"
|
||||
msgstr "Textfarbe für Fehler-Präfix"
|
||||
@@ -2999,7 +3030,8 @@ msgid "text color for unsuccessful text search in input line"
|
||||
msgstr "Textfarbe in der Eingabezeile bei einer erfolglosen Textsuche"
|
||||
|
||||
msgid "text color for actions in input line"
|
||||
msgstr "Textfarbe in der Eingabezeile bei Aktivität"
|
||||
msgstr ""
|
||||
"Textfarbe in der Eingabezeile bei Aktivität (z.B. beim Einfügen von Zeilen)"
|
||||
|
||||
msgid "text color for groups in nicklist"
|
||||
msgstr "Textfarbe für Gruppen in Nickliste"
|
||||
@@ -4560,22 +4592,20 @@ msgstr "Server herunterfahren"
|
||||
msgid "target: server name"
|
||||
msgstr "Ziel: Servername"
|
||||
|
||||
#, fuzzy
|
||||
msgid "disconnect from one or all IRC servers"
|
||||
msgstr "Verbindung, zu einem oder mehreren IRC-Server(n), trennen"
|
||||
msgstr "Verbindung zu einem oder mehreren IRC-Server(n) trennen"
|
||||
|
||||
#, fuzzy
|
||||
msgid "[<server>|-all [<reason>]]"
|
||||
msgstr "[[<server>] <server_mask>]"
|
||||
msgstr "[<server>|-all [<reason>]]"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"server: server name to disconnect\n"
|
||||
" -all: disconnect from all servers\n"
|
||||
"reason: reason for quit"
|
||||
msgstr ""
|
||||
"server: server name to disconnect\n"
|
||||
" -all: disconnect from all servers"
|
||||
"server: Name des Servers zu dem die Verbindung getrennt werden soll\n"
|
||||
" -all: Verbindung zu allen Servern trennen\n"
|
||||
"reason: Begründung der Trennung"
|
||||
|
||||
msgid "give channel half-operator status to nick(s)"
|
||||
msgstr "halb-Operator Status an Nick(s) vergeben"
|
||||
@@ -6102,9 +6132,9 @@ msgstr "%s%s: Unbekannter DCC CHAT-Typ empfangen von %s%s%s: \"%s\""
|
||||
msgid "%sUnknown CTCP requested by %s%s%s: %s%s%s%s%s"
|
||||
msgstr "%sUnbekannte CTCP Anfrage von %s%s%s: %s%s%s%s%s"
|
||||
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "Server: %s%s %s[%s%s%s]%s%s"
|
||||
msgstr "%sServer: %s%s %s[%s%s%s]%s%s"
|
||||
msgstr "Server: %s%s %s[%s%s%s]%s%s"
|
||||
|
||||
msgid "connected"
|
||||
msgstr "verbunden"
|
||||
@@ -6195,15 +6225,20 @@ msgstr ""
|
||||
|
||||
msgid "split an IRC message (to fit in 512 bytes)"
|
||||
msgstr ""
|
||||
"dient zum Aufteilen einer überlangen IRC Nachricht (in maximal 512 Bytes "
|
||||
"große Nachrichten)"
|
||||
|
||||
msgid "\"message\": IRC message, \"server\": server name (optional)"
|
||||
msgstr ""
|
||||
msgstr "\"message\": IRC Nachricht, \"server\": Servername (optional)"
|
||||
|
||||
#. TRANSLATORS: please do not translate key names (enclosed by quotes)
|
||||
msgid ""
|
||||
"\"msg1\" ... \"msgN\": messages to send (without final \"\\r\\n\"), "
|
||||
"\"args1\" ... \"argsN\": arguments of messages, \"count\": number of messages"
|
||||
msgstr ""
|
||||
"\"msg1\" ... \"msgN\": Nachrichten die versendet werden sollen (ohne "
|
||||
"abschließendes \"\\r\\n\"), \"args1\" ... \"argsN\": Argumente für "
|
||||
"Nachrichten, \"count\": Anzahl der Nachrichten"
|
||||
|
||||
msgid "list of IRC servers"
|
||||
msgstr "Liste der IRC-Server"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.6-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2011-09-30 16:34+0200\n"
|
||||
"POT-Creation-Date: 2011-10-05 15:26+0200\n"
|
||||
"PO-Revision-Date: 2011-09-02 14:16+0200\n"
|
||||
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1931,7 +1931,6 @@ msgstr "aggiorna WeeChat senza disconnettere dai server"
|
||||
msgid "[<path_to_binary>]"
|
||||
msgstr "[<percorso_del_binario>]"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"path_to_binary: path to WeeChat binary (default is current binary)\n"
|
||||
"\n"
|
||||
@@ -1952,9 +1951,9 @@ msgstr ""
|
||||
"percorso_del_binario: percorso del binario di WeeChat (di default è il "
|
||||
"corrente)\n"
|
||||
"\n"
|
||||
"Questo comando esegue nuovamente un binario WeeChat, perciò deve essere "
|
||||
"stato compilato o installato con un gestore di pacchetti prima di eseguire "
|
||||
"questo comando.\n"
|
||||
"Questo comando aggiorna e ricarica una sessione di WeeChat in esecuzione. Il "
|
||||
"nuovo binario di WeeChat deve essere stato compilato o installato con un "
|
||||
"gestore pacchetti prima di eseguire questo comando.\n"
|
||||
"\n"
|
||||
"Nota: le connessioni SSL vengono perdute durante l'aggiornamento, poiché il "
|
||||
"nuovo caricamento delle sessioni SSL non è ancora possibile con GnuTLS. La "
|
||||
@@ -1963,8 +1962,8 @@ msgstr ""
|
||||
"Il processo di aggiornamento è diviso in 4 fasi:\n"
|
||||
" 1. salvataggio della sessione in file per il core e i plugin (buffer, "
|
||||
"cronologia, ..)\n"
|
||||
" 2. disattivazione di tutti i plugin (salvataggio delle configurazioni ."
|
||||
"conf)\n"
|
||||
" 2. disattivazione di tutti i plugin (i file di configurazione (*.conf) "
|
||||
"vengono scritti su disco)\n"
|
||||
" 3. salvataggio della configurazione di WeeChat (weechat.conf)\n"
|
||||
" 4. esecuzione del nuovo binario di WeeChat e caricamento della sessione."
|
||||
|
||||
@@ -2354,45 +2353,52 @@ msgid ""
|
||||
"(this option is disabled by default: bold is used only if terminal has less "
|
||||
"than 16 colors)"
|
||||
msgstr ""
|
||||
"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)"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"use a different color for lines in inactive window (when window is not "
|
||||
"current window)"
|
||||
msgstr ""
|
||||
"colore del testo per il nome del buffer (prima del prefisso, quando più "
|
||||
"buffer sono uniti con lo stesso nome)"
|
||||
"usa un colore diverso per le righe nella finestra inattiva (quando la "
|
||||
"finestra non è quella corrente)"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"use a different color for lines in inactive buffer (when line is from a "
|
||||
"merged buffer not selected)"
|
||||
msgstr ""
|
||||
"colore del testo per il nome del buffer (prima del prefisso, quando più "
|
||||
"buffer sono uniti con lo stesso nome)"
|
||||
"usa un colore diverso per le righe nel buffer inattivo (quando la riga viene "
|
||||
"da un buffer unito non selezionato)"
|
||||
|
||||
msgid ""
|
||||
"use a different color for inactive time (when window is not current window, "
|
||||
"or if line is from a merged buffer not selected)"
|
||||
msgstr ""
|
||||
"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)"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"use a different color for inactive buffer name in prefix (when window is not "
|
||||
"current window, or if line is from a merged buffer not selected)"
|
||||
msgstr ""
|
||||
"colore del testo per il nome del buffer (prima del prefisso, quando più "
|
||||
"buffer sono uniti con lo stesso nome)"
|
||||
"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)"
|
||||
|
||||
msgid ""
|
||||
"use a different color for inactive prefix (when window is not current "
|
||||
"window, or if line is from a merged buffer not selected)"
|
||||
msgstr ""
|
||||
"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)"
|
||||
|
||||
msgid ""
|
||||
"use a different color for inactive message (when window is not current "
|
||||
"window, or if line is from a merged buffer not selected)"
|
||||
msgstr ""
|
||||
"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)"
|
||||
|
||||
msgid ""
|
||||
"automatically reset table of color pairs when number of available pairs is "
|
||||
@@ -2750,11 +2756,15 @@ msgstr "colore di sfondo per la chat"
|
||||
msgid ""
|
||||
"text color for chat when window is inactive (not current selected window)"
|
||||
msgstr ""
|
||||
"colore del testo per la chat quando la finestra è inattiva (nessuna finestra "
|
||||
"attiva selezionata)"
|
||||
|
||||
msgid ""
|
||||
"text color for chat when line is inactive (buffer is merged with other "
|
||||
"buffers and is not selected)"
|
||||
msgstr ""
|
||||
"colore del testo per la chat quando la riga è inattiva (il buffer è unito "
|
||||
"con altri buffer e non è selezionato)"
|
||||
|
||||
msgid "text color for time in chat window"
|
||||
msgstr "colore del testo per l'orario nella finestra di chat"
|
||||
@@ -2769,13 +2779,12 @@ msgstr ""
|
||||
"colore del testo per il nome del buffer (prima del prefisso, quando più "
|
||||
"buffer sono uniti con lo stesso nome)"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"text color for inactive buffer name (before prefix, when many buffers are "
|
||||
"merged with same number and if buffer is not selected)"
|
||||
msgstr ""
|
||||
"colore del testo per il nome del buffer (prima del prefisso, quando più "
|
||||
"buffer sono uniti con lo stesso nome)"
|
||||
"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)"
|
||||
|
||||
msgid "text color for error prefix"
|
||||
msgstr "colore del testo per il prefisso di errore"
|
||||
@@ -2787,7 +2796,7 @@ msgid "text color for action prefix"
|
||||
msgstr "colore del testo per il prefisso di azione"
|
||||
|
||||
msgid "text color for join prefix"
|
||||
msgstr "colore del testo per il prefisso di entrata<"
|
||||
msgstr "colore del testo per il prefisso di entrata"
|
||||
|
||||
msgid "text color for quit prefix"
|
||||
msgstr "colore del testo per il prefisso di uscita"
|
||||
@@ -5928,9 +5937,9 @@ msgstr "%s%s: tipo di DCC CHAT sconosciuto ricevuto da %s%s%s: \"%s\""
|
||||
msgid "%sUnknown CTCP requested by %s%s%s: %s%s%s%s%s"
|
||||
msgstr "%sCTCP sconosciuto richiesto da %s%s%s: %s%s%s%s%s"
|
||||
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "Server: %s%s %s[%s%s%s]%s%s"
|
||||
msgstr "%sServer: %s%s %s[%s%s%s]%s%s"
|
||||
msgstr "Server: %s%s %s[%s%s%s]%s%s"
|
||||
|
||||
msgid "connected"
|
||||
msgstr "connesso"
|
||||
|
||||
+7
-4
@@ -1532,10 +1532,13 @@ hook_process_timer_cb (void *arg_hook_process, int remaining_calls)
|
||||
if (remaining_calls == 0)
|
||||
{
|
||||
hook_process_send_buffers (hook_process, WEECHAT_HOOK_PROCESS_ERROR);
|
||||
gui_chat_printf (NULL,
|
||||
_("End of command '%s', timeout reached (%.1fs)"),
|
||||
HOOK_PROCESS(hook_process, command),
|
||||
((float)HOOK_PROCESS(hook_process, timeout)) / 1000);
|
||||
if (weechat_debug_core >= 1)
|
||||
{
|
||||
gui_chat_printf (NULL,
|
||||
_("End of command '%s', timeout reached (%.1fs)"),
|
||||
HOOK_PROCESS(hook_process, command),
|
||||
((float)HOOK_PROCESS(hook_process, timeout)) / 1000);
|
||||
}
|
||||
kill (HOOK_PROCESS(hook_process, child_pid), SIGKILL);
|
||||
usleep (1000);
|
||||
unhook (hook_process);
|
||||
|
||||
@@ -860,7 +860,7 @@ string_split (const char *string, const char *separators, int keep_eol,
|
||||
if (!string || !string[0] || !separators || !separators[0])
|
||||
return NULL;
|
||||
|
||||
string2 = string_strip (string, 1, 1, separators);
|
||||
string2 = string_strip (string, 1, (keep_eol == 2) ? 0 : 1, separators);
|
||||
if (!string2 || !string2[0])
|
||||
return NULL;
|
||||
|
||||
|
||||
@@ -390,6 +390,11 @@ util_file_get_content (const char *filename)
|
||||
}
|
||||
buffer = buffer2;
|
||||
count = fread (&buffer[fp], sizeof(char), 1024, f);
|
||||
if (count <= 0)
|
||||
{
|
||||
free (buffer);
|
||||
return NULL;
|
||||
}
|
||||
fp += count;
|
||||
}
|
||||
buffer2 = (char *) realloc (buffer, fp + sizeof (char));
|
||||
|
||||
@@ -440,6 +440,7 @@ main (int argc, char *argv[])
|
||||
weechat_upgrade_count++; /* increase /upgrade count */
|
||||
}
|
||||
weechat_welcome_message (); /* display WeeChat welcome message */
|
||||
gui_chat_print_lines_waiting_buffer (); /* print lines waiting for buf. */
|
||||
command_startup (0); /* command executed before plugins */
|
||||
plugin_init (weechat_auto_load_plugins, /* init plugin interface(s) */
|
||||
argc, argv);
|
||||
|
||||
@@ -283,6 +283,12 @@ gui_bar_window_print_string (struct t_gui_bar_window *bar_window,
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case GUI_COLOR_RESET_CHAR: /* reset color (keep attributes) */
|
||||
string++;
|
||||
gui_window_set_custom_color_fg_bg (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
|
||||
CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_FG]),
|
||||
CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG]));
|
||||
break;
|
||||
default:
|
||||
gui_window_string_apply_color_weechat ((unsigned char **)&string,
|
||||
GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar);
|
||||
|
||||
@@ -107,25 +107,28 @@ gui_chat_marker_for_line (struct t_gui_buffer *buffer, struct t_gui_line *line)
|
||||
|
||||
void
|
||||
gui_chat_reset_style (struct t_gui_window *window, struct t_gui_line *line,
|
||||
int reset_attributes,
|
||||
int color_inactive_window, int color_inactive_buffer,
|
||||
int color_default)
|
||||
{
|
||||
int color;
|
||||
|
||||
color = color_default;
|
||||
if ((window != gui_current_window) &&
|
||||
CONFIG_BOOLEAN(config_look_color_inactive_window))
|
||||
{
|
||||
gui_window_reset_style (GUI_WINDOW_OBJECTS(window)->win_chat,
|
||||
color_inactive_window);
|
||||
return;
|
||||
color = color_inactive_window;
|
||||
}
|
||||
if (line && !(line->data->buffer->active)
|
||||
&& CONFIG_BOOLEAN(config_look_color_inactive_buffer))
|
||||
else if (line && !(line->data->buffer->active)
|
||||
&& CONFIG_BOOLEAN(config_look_color_inactive_buffer))
|
||||
{
|
||||
gui_window_reset_style (GUI_WINDOW_OBJECTS(window)->win_chat,
|
||||
color_inactive_buffer);
|
||||
return;
|
||||
color = color_inactive_buffer;
|
||||
}
|
||||
gui_window_reset_style (GUI_WINDOW_OBJECTS(window)->win_chat,
|
||||
color_default);
|
||||
|
||||
if (reset_attributes)
|
||||
gui_window_reset_style (GUI_WINDOW_OBJECTS(window)->win_chat, color);
|
||||
else
|
||||
gui_window_reset_color (GUI_WINDOW_OBJECTS(window)->win_chat, color);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -260,6 +263,24 @@ gui_chat_string_next_char (struct t_gui_window *window, struct t_gui_line *line,
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case GUI_COLOR_RESET_CHAR: /* reset color (keep attributes) */
|
||||
string++;
|
||||
if (apply_style)
|
||||
{
|
||||
if (apply_style_inactive)
|
||||
{
|
||||
gui_chat_reset_style (window, line, 0,
|
||||
GUI_COLOR_CHAT_INACTIVE_WINDOW,
|
||||
GUI_COLOR_CHAT_INACTIVE_BUFFER,
|
||||
GUI_COLOR_CHAT);
|
||||
}
|
||||
else
|
||||
{
|
||||
gui_window_reset_color (GUI_WINDOW_OBJECTS(window)->win_chat,
|
||||
GUI_COLOR_CHAT);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
gui_window_string_apply_color_weechat ((unsigned char **)&string,
|
||||
(apply_style) ? GUI_WINDOW_OBJECTS(window)->win_chat : NULL);
|
||||
@@ -282,7 +303,7 @@ gui_chat_string_next_char (struct t_gui_window *window, struct t_gui_line *line,
|
||||
{
|
||||
if (apply_style_inactive)
|
||||
{
|
||||
gui_chat_reset_style (window, line,
|
||||
gui_chat_reset_style (window, line, 1,
|
||||
GUI_COLOR_CHAT_INACTIVE_WINDOW,
|
||||
GUI_COLOR_CHAT_INACTIVE_BUFFER,
|
||||
GUI_COLOR_CHAT);
|
||||
@@ -547,7 +568,7 @@ gui_chat_display_time_to_prefix (struct t_gui_window *window,
|
||||
{
|
||||
if (window->win_chat_cursor_y < window->coords_size)
|
||||
window->coords[window->win_chat_cursor_y].line = line;
|
||||
gui_chat_reset_style (window, line,
|
||||
gui_chat_reset_style (window, line, 1,
|
||||
GUI_COLOR_CHAT_INACTIVE_WINDOW,
|
||||
GUI_COLOR_CHAT_INACTIVE_BUFFER,
|
||||
GUI_COLOR_CHAT);
|
||||
@@ -568,7 +589,7 @@ gui_chat_display_time_to_prefix (struct t_gui_window *window,
|
||||
|
||||
if (!simulate)
|
||||
{
|
||||
gui_chat_reset_style (window, line,
|
||||
gui_chat_reset_style (window, line, 1,
|
||||
GUI_COLOR_CHAT_INACTIVE_WINDOW,
|
||||
GUI_COLOR_CHAT_INACTIVE_BUFFER,
|
||||
GUI_COLOR_CHAT);
|
||||
@@ -601,7 +622,7 @@ gui_chat_display_time_to_prefix (struct t_gui_window *window,
|
||||
{
|
||||
if (!simulate)
|
||||
{
|
||||
gui_chat_reset_style (window, line,
|
||||
gui_chat_reset_style (window, line, 1,
|
||||
GUI_COLOR_CHAT_INACTIVE_WINDOW,
|
||||
GUI_COLOR_CHAT_INACTIVE_BUFFER,
|
||||
GUI_COLOR_CHAT);
|
||||
@@ -617,7 +638,7 @@ gui_chat_display_time_to_prefix (struct t_gui_window *window,
|
||||
|
||||
if (!simulate)
|
||||
{
|
||||
gui_chat_reset_style (window, line,
|
||||
gui_chat_reset_style (window, line, 1,
|
||||
GUI_COLOR_CHAT_INACTIVE_WINDOW,
|
||||
(CONFIG_BOOLEAN(config_look_color_inactive_buffer)
|
||||
&& CONFIG_BOOLEAN(config_look_color_inactive_prefix_buffer)
|
||||
@@ -673,7 +694,7 @@ gui_chat_display_time_to_prefix (struct t_gui_window *window,
|
||||
{
|
||||
if (!simulate)
|
||||
{
|
||||
gui_chat_reset_style (window, line,
|
||||
gui_chat_reset_style (window, line, 1,
|
||||
GUI_COLOR_CHAT_INACTIVE_WINDOW,
|
||||
GUI_COLOR_CHAT_INACTIVE_BUFFER,
|
||||
GUI_COLOR_CHAT);
|
||||
@@ -707,7 +728,7 @@ gui_chat_display_time_to_prefix (struct t_gui_window *window,
|
||||
{
|
||||
if (!simulate)
|
||||
{
|
||||
gui_chat_reset_style (window, line,
|
||||
gui_chat_reset_style (window, line, 1,
|
||||
GUI_COLOR_CHAT_INACTIVE_WINDOW,
|
||||
GUI_COLOR_CHAT_INACTIVE_BUFFER,
|
||||
GUI_COLOR_CHAT);
|
||||
@@ -753,7 +774,7 @@ gui_chat_display_time_to_prefix (struct t_gui_window *window,
|
||||
}
|
||||
if (!simulate)
|
||||
{
|
||||
gui_chat_reset_style (window, line,
|
||||
gui_chat_reset_style (window, line, 1,
|
||||
GUI_COLOR_CHAT_INACTIVE_WINDOW,
|
||||
(CONFIG_BOOLEAN(config_look_color_inactive_buffer)
|
||||
&& CONFIG_BOOLEAN(config_look_color_inactive_prefix)
|
||||
@@ -767,7 +788,7 @@ gui_chat_display_time_to_prefix (struct t_gui_window *window,
|
||||
{
|
||||
if (!simulate)
|
||||
{
|
||||
gui_chat_reset_style (window, line,
|
||||
gui_chat_reset_style (window, line, 1,
|
||||
GUI_COLOR_CHAT_INACTIVE_WINDOW,
|
||||
(CONFIG_BOOLEAN(config_look_color_inactive_buffer)
|
||||
&& CONFIG_BOOLEAN(config_look_color_inactive_prefix)
|
||||
@@ -813,7 +834,7 @@ gui_chat_display_time_to_prefix (struct t_gui_window *window,
|
||||
|
||||
if (!simulate)
|
||||
{
|
||||
gui_chat_reset_style (window, line,
|
||||
gui_chat_reset_style (window, line, 1,
|
||||
GUI_COLOR_CHAT_INACTIVE_WINDOW,
|
||||
GUI_COLOR_CHAT_INACTIVE_BUFFER,
|
||||
GUI_COLOR_CHAT);
|
||||
@@ -944,14 +965,14 @@ gui_chat_display_line (struct t_gui_window *window, struct t_gui_line *line,
|
||||
{
|
||||
if (CONFIG_BOOLEAN(config_look_color_inactive_message))
|
||||
{
|
||||
gui_chat_reset_style (window, line,
|
||||
gui_chat_reset_style (window, line, 1,
|
||||
GUI_COLOR_CHAT_INACTIVE_WINDOW,
|
||||
GUI_COLOR_CHAT_INACTIVE_BUFFER,
|
||||
GUI_COLOR_CHAT);
|
||||
}
|
||||
else
|
||||
{
|
||||
gui_chat_reset_style (window, line,
|
||||
gui_chat_reset_style (window, line, 1,
|
||||
GUI_COLOR_CHAT,
|
||||
GUI_COLOR_CHAT,
|
||||
GUI_COLOR_CHAT);
|
||||
@@ -1107,7 +1128,7 @@ gui_chat_display_line_y (struct t_gui_window *window, struct t_gui_line *line,
|
||||
int y)
|
||||
{
|
||||
/* reset color & style for a new line */
|
||||
gui_chat_reset_style (window, line,
|
||||
gui_chat_reset_style (window, line, 1,
|
||||
GUI_COLOR_CHAT_INACTIVE_WINDOW,
|
||||
GUI_COLOR_CHAT_INACTIVE_BUFFER,
|
||||
GUI_COLOR_CHAT);
|
||||
@@ -1250,7 +1271,7 @@ gui_chat_draw (struct t_gui_buffer *buffer, int erase)
|
||||
{
|
||||
gui_window_coords_alloc (ptr_win);
|
||||
|
||||
gui_chat_reset_style (ptr_win, NULL,
|
||||
gui_chat_reset_style (ptr_win, NULL, 1,
|
||||
GUI_COLOR_CHAT_INACTIVE_WINDOW,
|
||||
GUI_COLOR_CHAT_INACTIVE_BUFFER,
|
||||
GUI_COLOR_CHAT);
|
||||
|
||||
@@ -46,6 +46,41 @@
|
||||
#include "../gui-window.h"
|
||||
|
||||
|
||||
#define MOUSE_CODE_BUTTON(code) ((code >= 32) && (code < 64))
|
||||
#define MOUSE_CODE_MOTION(code) ((code >= 64) && (code < 96))
|
||||
#define MOUSE_CODE_END(code) ((code == '#') || (code == '3') \
|
||||
|| (code == '+') || (code == ';'))
|
||||
|
||||
char *gui_mouse_wheel_codes[][2] =
|
||||
{ { "`", "wheelup" },
|
||||
{ "p", "ctrl-wheelup" },
|
||||
{ "h", "alt-wheelup" },
|
||||
{ "x", "ctrl-alt-wheelup" },
|
||||
{ "a", "wheeldown" },
|
||||
{ "q", "ctrl-wheeldown" },
|
||||
{ "i", "alt-wheeldown" },
|
||||
{ "y", "ctrl-alt-wheeldown" },
|
||||
{ NULL, NULL } };
|
||||
char *gui_mouse_button_codes[][2] =
|
||||
{ { " ", "button1" },
|
||||
{ "\"", "button2" },
|
||||
{ "!", "button3" },
|
||||
{ "b", "button4" },
|
||||
{ "c", "button5" },
|
||||
{ "d", "button6" },
|
||||
{ "e", "button7" },
|
||||
{ "f", "button8" },
|
||||
{ "g", "button9" },
|
||||
{ "0", "ctrl-button1" },
|
||||
{ "2", "ctrl-button2" },
|
||||
{ "1", "ctrl-button3" },
|
||||
{ "(", "alt-button1" },
|
||||
{ "*", "alt-button2" },
|
||||
{ ")", "alt-button3" },
|
||||
{ "8", "ctrl-alt-button1" },
|
||||
{ NULL, NULL } };
|
||||
|
||||
|
||||
/*
|
||||
* gui_mouse_enable: enable mouse
|
||||
*/
|
||||
@@ -76,7 +111,7 @@ void
|
||||
gui_mouse_display_state ()
|
||||
{
|
||||
gui_chat_printf (NULL,
|
||||
(CONFIG_BOOLEAN(config_look_mouse)) ?
|
||||
gui_mouse_enabled ?
|
||||
_("Mouse is enabled") : _("Mouse is disabled"));
|
||||
}
|
||||
|
||||
@@ -212,10 +247,10 @@ gui_mouse_event_init ()
|
||||
const char *
|
||||
gui_mouse_event_code2key (const char *code)
|
||||
{
|
||||
int x, y, code_utf8, length;
|
||||
int i, x, y, code_utf8, length;
|
||||
double diff_x, diff_y, distance, angle, pi4;
|
||||
static char key[128];
|
||||
char button[2], *ptr_code;
|
||||
char *ptr_code;
|
||||
|
||||
key[0] = '\0';
|
||||
|
||||
@@ -249,9 +284,12 @@ gui_mouse_event_code2key (const char *code)
|
||||
if (y < 0)
|
||||
y = 0;
|
||||
|
||||
/* ignore code '#' (button released) if it's received as first event */
|
||||
if ((gui_mouse_event_index == 0) && (code[0] == '#'))
|
||||
/* ignore code if it's motion/end code received as first event */
|
||||
if ((gui_mouse_event_index == 0)
|
||||
&& (MOUSE_CODE_MOTION(code[0]) || MOUSE_CODE_END(code[0])))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* set data in "gui_mouse_event_xxx" */
|
||||
gui_mouse_event_x[gui_mouse_event_index] = x;
|
||||
@@ -262,47 +300,31 @@ gui_mouse_event_code2key (const char *code)
|
||||
if (gui_mouse_event_index == 0)
|
||||
gui_mouse_event_index = 1;
|
||||
|
||||
if (code[0] == '`')
|
||||
/*
|
||||
* browse wheel codes, if one code is found, return event name immediately
|
||||
*/
|
||||
for (i = 0; gui_mouse_wheel_codes[i][0]; i++)
|
||||
{
|
||||
gui_mouse_event_x[1] = gui_mouse_event_x[0];
|
||||
gui_mouse_event_y[1] = gui_mouse_event_y[0];
|
||||
strcat (key, "wheelup");
|
||||
return key;
|
||||
if (code[0] == gui_mouse_wheel_codes[i][0][0])
|
||||
{
|
||||
strcat (key, gui_mouse_wheel_codes[i][1]);
|
||||
gui_mouse_event_x[1] = gui_mouse_event_x[0];
|
||||
gui_mouse_event_y[1] = gui_mouse_event_y[0];
|
||||
return key;
|
||||
}
|
||||
}
|
||||
|
||||
if (code[0] == 'a')
|
||||
{
|
||||
gui_mouse_event_x[1] = gui_mouse_event_x[0];
|
||||
gui_mouse_event_y[1] = gui_mouse_event_y[0];
|
||||
strcat (key, "wheeldown");
|
||||
return key;
|
||||
}
|
||||
|
||||
if (code[0] != '#')
|
||||
if (!MOUSE_CODE_END(code[0]))
|
||||
return NULL;
|
||||
|
||||
/* add button/wheel */
|
||||
switch (gui_mouse_event_button)
|
||||
/* add name of button event */
|
||||
for (i = 0; gui_mouse_button_codes[i][0]; i++)
|
||||
{
|
||||
case ' ': /* left button pressed */
|
||||
strcat (key, "button1");
|
||||
break;
|
||||
case '"': /* right button pressed */
|
||||
strcat (key, "button2");
|
||||
break;
|
||||
case '!': /* middle button pressed */
|
||||
strcat (key, "button3");
|
||||
break;
|
||||
default: /* extra buttons: button4..button9 */
|
||||
if ((gui_mouse_event_button >= 'b')
|
||||
&& (gui_mouse_event_button <= 'g'))
|
||||
{
|
||||
button[0] = gui_mouse_event_button - ('b' - '4');
|
||||
button[1] = '\0';
|
||||
strcat (key, "button");
|
||||
strcat (key, button);
|
||||
}
|
||||
if (gui_mouse_event_button == gui_mouse_button_codes[i][0][0])
|
||||
{
|
||||
strcat (key, gui_mouse_button_codes[i][1]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -247,6 +247,17 @@ gui_window_reset_style (WINDOW *window, int weechat_color)
|
||||
gui_color[weechat_color]->attributes);
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_window_reset_color: reset color with a weechat color for a window
|
||||
*/
|
||||
|
||||
void
|
||||
gui_window_reset_color (WINDOW *window, int weechat_color)
|
||||
{
|
||||
wattron (window, COLOR_PAIR(gui_color_weechat_get_pair (weechat_color)) |
|
||||
gui_color[weechat_color]->attributes);
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_window_set_color_style: set style for color
|
||||
*/
|
||||
@@ -333,15 +344,15 @@ gui_window_set_custom_color_fg (WINDOW *window, int fg)
|
||||
{
|
||||
if (fg & GUI_COLOR_EXTENDED_BOLD_FLAG)
|
||||
gui_window_set_color_style (window, A_BOLD);
|
||||
else
|
||||
else if (!(fg & GUI_COLOR_EXTENDED_KEEPATTR_FLAG))
|
||||
gui_window_remove_color_style (window, A_BOLD);
|
||||
if (fg & GUI_COLOR_EXTENDED_REVERSE_FLAG)
|
||||
gui_window_set_color_style (window, A_REVERSE);
|
||||
else
|
||||
else if (!(fg & GUI_COLOR_EXTENDED_KEEPATTR_FLAG))
|
||||
gui_window_remove_color_style (window, A_REVERSE);
|
||||
if (fg & GUI_COLOR_EXTENDED_UNDERLINE_FLAG)
|
||||
gui_window_set_color_style (window, A_UNDERLINE);
|
||||
else
|
||||
else if (!(fg & GUI_COLOR_EXTENDED_KEEPATTR_FLAG))
|
||||
gui_window_remove_color_style (window, A_UNDERLINE);
|
||||
gui_window_set_color (window,
|
||||
fg & GUI_COLOR_EXTENDED_MASK,
|
||||
@@ -349,8 +360,11 @@ gui_window_set_custom_color_fg (WINDOW *window, int fg)
|
||||
}
|
||||
else if ((fg & GUI_COLOR_EXTENDED_MASK) < GUI_CURSES_NUM_WEECHAT_COLORS)
|
||||
{
|
||||
gui_window_remove_color_style (window,
|
||||
A_BOLD | A_REVERSE | A_UNDERLINE);
|
||||
if (!(fg & GUI_COLOR_EXTENDED_KEEPATTR_FLAG))
|
||||
{
|
||||
gui_window_remove_color_style (window,
|
||||
A_BOLD | A_REVERSE | A_UNDERLINE);
|
||||
}
|
||||
attributes = 0;
|
||||
if (fg & GUI_COLOR_EXTENDED_BOLD_FLAG)
|
||||
attributes |= A_BOLD;
|
||||
@@ -425,22 +439,25 @@ gui_window_set_custom_color_fg_bg (WINDOW *window, int fg, int bg)
|
||||
{
|
||||
if (fg & GUI_COLOR_EXTENDED_BOLD_FLAG)
|
||||
gui_window_set_color_style (window, A_BOLD);
|
||||
else
|
||||
else if (!(fg & GUI_COLOR_EXTENDED_KEEPATTR_FLAG))
|
||||
gui_window_remove_color_style (window, A_BOLD);
|
||||
if (fg & GUI_COLOR_EXTENDED_REVERSE_FLAG)
|
||||
gui_window_set_color_style (window, A_REVERSE);
|
||||
else
|
||||
else if (!(fg & GUI_COLOR_EXTENDED_KEEPATTR_FLAG))
|
||||
gui_window_remove_color_style (window, A_REVERSE);
|
||||
if (fg & GUI_COLOR_EXTENDED_UNDERLINE_FLAG)
|
||||
gui_window_set_color_style (window, A_UNDERLINE);
|
||||
else
|
||||
else if (!(fg & GUI_COLOR_EXTENDED_KEEPATTR_FLAG))
|
||||
gui_window_remove_color_style (window, A_UNDERLINE);
|
||||
fg &= GUI_COLOR_EXTENDED_MASK;
|
||||
}
|
||||
else if ((fg & GUI_COLOR_EXTENDED_MASK) < GUI_CURSES_NUM_WEECHAT_COLORS)
|
||||
{
|
||||
gui_window_remove_color_style (window,
|
||||
A_BOLD | A_REVERSE | A_UNDERLINE);
|
||||
if (!(fg & GUI_COLOR_EXTENDED_KEEPATTR_FLAG))
|
||||
{
|
||||
gui_window_remove_color_style (window,
|
||||
A_BOLD | A_REVERSE | A_UNDERLINE);
|
||||
}
|
||||
attributes = 0;
|
||||
if (fg & GUI_COLOR_EXTENDED_BOLD_FLAG)
|
||||
attributes |= A_BOLD;
|
||||
|
||||
@@ -88,6 +88,7 @@ extern void gui_window_redraw_buffer (struct t_gui_buffer *buffer);
|
||||
extern void gui_window_clear (WINDOW *window, int fg, int bg);
|
||||
extern void gui_window_clrtoeol (WINDOW *window);
|
||||
extern void gui_window_reset_style (WINDOW *window, int num_color);
|
||||
extern void gui_window_reset_color (WINDOW *window, int num_color);
|
||||
extern void gui_window_set_color_style (WINDOW *window, int style);
|
||||
extern void gui_window_remove_color_style (WINDOW *window, int style);
|
||||
extern void gui_window_set_color (WINDOW *window, int fg, int bg);
|
||||
|
||||
+85
-5
@@ -55,6 +55,8 @@ int gui_chat_time_length = 0; /* length of time for each line (in chars) */
|
||||
int gui_chat_mute = GUI_CHAT_MUTE_DISABLED; /* mute mode */
|
||||
struct t_gui_buffer *gui_chat_mute_buffer = NULL; /* mute buffer */
|
||||
int gui_chat_display_tags = 0; /* display tags? */
|
||||
char *gui_chat_lines_waiting_buffer = NULL; /* lines waiting for core */
|
||||
/* buffer */
|
||||
|
||||
|
||||
/*
|
||||
@@ -570,8 +572,8 @@ gui_chat_printf_date_tags (struct t_gui_buffer *buffer, time_t date,
|
||||
{
|
||||
time_t date_printed;
|
||||
int display_time, length, at_least_one_message_printed;
|
||||
char *pos, *pos_prefix, *pos_tab, *pos_end;
|
||||
char *modifier_data, *new_msg, *ptr_msg;
|
||||
char *pos, *pos_prefix, *pos_tab, *pos_end, *pos_lines;
|
||||
char *modifier_data, *new_msg, *ptr_msg, *lines_waiting;
|
||||
struct t_gui_line *ptr_line;
|
||||
|
||||
if (!gui_buffer_valid (buffer))
|
||||
@@ -705,9 +707,46 @@ gui_chat_printf_date_tags (struct t_gui_buffer *buffer, time_t date,
|
||||
}
|
||||
else
|
||||
{
|
||||
if (pos_prefix)
|
||||
string_iconv_fprintf (stdout, "%s ", pos_prefix);
|
||||
string_iconv_fprintf (stdout, "%s\n", ptr_msg);
|
||||
length = ((pos_prefix) ? strlen (pos_prefix) + 1 : 0) +
|
||||
strlen (ptr_msg) + 1;
|
||||
if (gui_chat_lines_waiting_buffer)
|
||||
{
|
||||
length += strlen (gui_chat_lines_waiting_buffer) + 1;
|
||||
lines_waiting = realloc (gui_chat_lines_waiting_buffer, length);
|
||||
if (lines_waiting)
|
||||
{
|
||||
gui_chat_lines_waiting_buffer = lines_waiting;
|
||||
}
|
||||
else
|
||||
{
|
||||
free (gui_chat_lines_waiting_buffer);
|
||||
gui_chat_lines_waiting_buffer = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
gui_chat_lines_waiting_buffer = malloc (length);
|
||||
if (gui_chat_lines_waiting_buffer)
|
||||
gui_chat_lines_waiting_buffer[0] = '\0';
|
||||
}
|
||||
if (gui_chat_lines_waiting_buffer)
|
||||
{
|
||||
pos_lines = gui_chat_lines_waiting_buffer +
|
||||
strlen (gui_chat_lines_waiting_buffer);
|
||||
if (pos_lines > gui_chat_lines_waiting_buffer)
|
||||
{
|
||||
pos_lines[0] = '\n';
|
||||
pos_lines++;
|
||||
}
|
||||
if (pos_prefix)
|
||||
{
|
||||
memcpy (pos_lines, pos_prefix, strlen (pos_prefix));
|
||||
pos_lines += strlen (pos_prefix);
|
||||
pos_lines[0] = '\t';
|
||||
pos_lines++;
|
||||
}
|
||||
memcpy (pos_lines, ptr_msg, strlen (ptr_msg) + 1);
|
||||
}
|
||||
}
|
||||
|
||||
if (new_msg)
|
||||
@@ -805,6 +844,40 @@ gui_chat_printf_y (struct t_gui_buffer *buffer, int y, const char *message, ...)
|
||||
free (vbuffer);
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_chat_print_lines_waiting_buffer: print lines waiting for buffer
|
||||
*/
|
||||
|
||||
void
|
||||
gui_chat_print_lines_waiting_buffer ()
|
||||
{
|
||||
char **lines;
|
||||
int num_lines, i;
|
||||
|
||||
if (gui_chat_lines_waiting_buffer)
|
||||
{
|
||||
lines = string_split (gui_chat_lines_waiting_buffer, "\n", 0, 0,
|
||||
&num_lines);
|
||||
if (lines)
|
||||
{
|
||||
for (i = 0; i < num_lines; i++)
|
||||
{
|
||||
gui_chat_printf (NULL, lines[i]);
|
||||
}
|
||||
string_free_split (lines);
|
||||
}
|
||||
/*
|
||||
* gui_chat_lines_waiting_buffer may be NULL after call to
|
||||
* gui_chat_printf (if not enough memory)
|
||||
*/
|
||||
}
|
||||
if (gui_chat_lines_waiting_buffer)
|
||||
{
|
||||
free (gui_chat_lines_waiting_buffer);
|
||||
gui_chat_lines_waiting_buffer = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_chat_hsignal_chat_quote_line_cb: quote a line
|
||||
*/
|
||||
@@ -877,4 +950,11 @@ gui_chat_end ()
|
||||
gui_chat_prefix[i] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/* free lines waiting for buffer (should always be NULL here) */
|
||||
if (gui_chat_lines_waiting_buffer)
|
||||
{
|
||||
free (gui_chat_lines_waiting_buffer);
|
||||
gui_chat_lines_waiting_buffer = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,6 +80,7 @@ extern void gui_chat_printf_date_tags (struct t_gui_buffer *buffer,
|
||||
const char *message, ...);
|
||||
extern void gui_chat_printf_y (struct t_gui_buffer *buffer, int y,
|
||||
const char *message, ...);
|
||||
extern void gui_chat_print_lines_waiting_buffer ();
|
||||
extern int gui_chat_hsignal_quote_line_cb (void *data, const char *signal,
|
||||
struct t_hashtable *hashtable);
|
||||
extern void gui_chat_end ();
|
||||
|
||||
@@ -104,6 +104,9 @@ gui_color_attr_get_flag (char c)
|
||||
if (c == GUI_COLOR_EXTENDED_UNDERLINE_CHAR)
|
||||
return GUI_COLOR_EXTENDED_UNDERLINE_FLAG;
|
||||
|
||||
if (c == GUI_COLOR_EXTENDED_KEEPATTR_CHAR)
|
||||
return GUI_COLOR_EXTENDED_KEEPATTR_FLAG;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -128,6 +131,8 @@ gui_color_attr_build_string (int color, char *str_attr)
|
||||
str_attr[i++] = GUI_COLOR_EXTENDED_ITALIC_CHAR;
|
||||
if (color & GUI_COLOR_EXTENDED_UNDERLINE_FLAG)
|
||||
str_attr[i++] = GUI_COLOR_EXTENDED_UNDERLINE_CHAR;
|
||||
if (color & GUI_COLOR_EXTENDED_KEEPATTR_FLAG)
|
||||
str_attr[i++] = GUI_COLOR_EXTENDED_KEEPATTR_CHAR;
|
||||
|
||||
str_attr[i] = '\0';
|
||||
}
|
||||
@@ -159,6 +164,13 @@ gui_color_get_custom (const char *color_name)
|
||||
"%c",
|
||||
GUI_COLOR_RESET_CHAR);
|
||||
}
|
||||
else if (string_strcasecmp (color_name, "resetcolor") == 0)
|
||||
{
|
||||
snprintf (color[index_color], sizeof (color[index_color]),
|
||||
"%c%c",
|
||||
GUI_COLOR_COLOR_CHAR,
|
||||
GUI_COLOR_RESET_CHAR);
|
||||
}
|
||||
else if (string_strcasecmp (color_name, "bold") == 0)
|
||||
{
|
||||
snprintf (color[index_color], sizeof (color[index_color]),
|
||||
@@ -521,6 +533,9 @@ gui_color_decode (const char *string, const char *replacement)
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case GUI_COLOR_RESET_CHAR:
|
||||
ptr_string++;
|
||||
break;
|
||||
default:
|
||||
if (isdigit (ptr_string[0]) && isdigit (ptr_string[1]))
|
||||
ptr_string += 2;
|
||||
|
||||
@@ -98,6 +98,7 @@ enum t_gui_color_enum
|
||||
#define GUI_COLOR_EXTENDED_REVERSE_CHAR '!'
|
||||
#define GUI_COLOR_EXTENDED_ITALIC_CHAR '/'
|
||||
#define GUI_COLOR_EXTENDED_UNDERLINE_CHAR '_'
|
||||
#define GUI_COLOR_EXTENDED_KEEPATTR_CHAR '|'
|
||||
|
||||
/* color codes specific to bars */
|
||||
#define GUI_COLOR_BAR_CHAR 'b'
|
||||
@@ -115,6 +116,7 @@ enum t_gui_color_enum
|
||||
#define GUI_COLOR_EXTENDED_REVERSE_FLAG 0x0400000
|
||||
#define GUI_COLOR_EXTENDED_ITALIC_FLAG 0x0800000
|
||||
#define GUI_COLOR_EXTENDED_UNDERLINE_FLAG 0x1000000
|
||||
#define GUI_COLOR_EXTENDED_KEEPATTR_FLAG 0x2000000
|
||||
#define GUI_COLOR_EXTENDED_MASK 0x00FFFFF
|
||||
#define GUI_COLOR_EXTENDED_MAX 99999
|
||||
|
||||
|
||||
@@ -1109,6 +1109,12 @@ gui_input_history_next (struct t_gui_window *window,
|
||||
|
||||
if (*ptr_history)
|
||||
{
|
||||
/* replace text in history with current input */
|
||||
window->buffer->input_buffer[window->buffer->input_buffer_size] = '\0';
|
||||
if ((*ptr_history)->text)
|
||||
free ((*ptr_history)->text);
|
||||
(*ptr_history)->text = strdup (window->buffer->input_buffer);
|
||||
|
||||
*ptr_history = (*ptr_history)->prev_history;
|
||||
if (*ptr_history)
|
||||
{
|
||||
|
||||
@@ -100,4 +100,9 @@ EXTRA_DIST = CMakeLists.txt
|
||||
|
||||
install-data-hook:
|
||||
$(INSTALL) -d $(includedir)/$(PACKAGE)
|
||||
$(INSTALL_DATA) weechat-plugin.h $(includedir)/$(PACKAGE)
|
||||
$(INSTALL_DATA) $(abs_top_srcdir)/src/plugins/weechat-plugin.h $(includedir)/$(PACKAGE)
|
||||
|
||||
# uninstall plugin header
|
||||
|
||||
uninstall-hook:
|
||||
$(RM) $(includedir)/$(PACKAGE)/weechat-plugin.h
|
||||
|
||||
@@ -54,6 +54,9 @@ irc_bar_item_away (void *data, struct t_gui_bar_item *item,
|
||||
|
||||
buf = NULL;
|
||||
|
||||
if (!window)
|
||||
window = weechat_current_window ();
|
||||
|
||||
buffer = weechat_window_get_pointer (window, "buffer");
|
||||
|
||||
if (buffer)
|
||||
@@ -387,6 +390,9 @@ irc_bar_item_lag (void *data, struct t_gui_bar_item *item,
|
||||
(void) data;
|
||||
(void) item;
|
||||
|
||||
if (!window)
|
||||
window = weechat_current_window ();
|
||||
|
||||
buffer = weechat_window_get_pointer (window, "buffer");
|
||||
|
||||
if (buffer)
|
||||
@@ -538,6 +544,31 @@ irc_bar_item_focus_buffer_nicklist (void *data,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* irc_bar_item_buffer_switch: called on "buffer_switch" signal: refresh irc
|
||||
* bar items (for root bars)
|
||||
*/
|
||||
|
||||
int
|
||||
irc_bar_item_buffer_switch (void *data, const char *signal,
|
||||
const char *type_data, void *signal_data)
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) signal;
|
||||
(void) type_data;
|
||||
(void) signal_data;
|
||||
|
||||
weechat_bar_item_update ("away");
|
||||
weechat_bar_item_update ("buffer_title");
|
||||
weechat_bar_item_update ("buffer_name");
|
||||
weechat_bar_item_update ("irc_channel");
|
||||
weechat_bar_item_update ("lag");
|
||||
weechat_bar_item_update ("input_prompt");
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* irc_bar_item_init: initialize IRC bar items
|
||||
*/
|
||||
@@ -554,4 +585,6 @@ irc_bar_item_init ()
|
||||
weechat_bar_item_new ("input_prompt", &irc_bar_item_input_prompt, NULL);
|
||||
weechat_hook_focus ("buffer_nicklist",
|
||||
&irc_bar_item_focus_buffer_nicklist, NULL);
|
||||
weechat_hook_signal ("buffer_switch",
|
||||
&irc_bar_item_buffer_switch, NULL);
|
||||
}
|
||||
|
||||
@@ -176,14 +176,14 @@ irc_color_decode (const char *string, int keep_colors)
|
||||
}
|
||||
}
|
||||
snprintf (str_color, sizeof (str_color),
|
||||
"%s%s%s",
|
||||
"|%s%s%s",
|
||||
(fg >= 0) ? irc_color_to_weechat[fg] : "",
|
||||
(bg >= 0) ? "," : "",
|
||||
(bg >= 0) ? irc_color_to_weechat[bg] : "");
|
||||
strcat ((char *)out, weechat_color(str_color));
|
||||
}
|
||||
else
|
||||
strcat ((char *)out, weechat_color("reset"));
|
||||
strcat ((char *)out, weechat_color("resetcolor"));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -738,7 +738,7 @@ irc_message_split (struct t_irc_server *server, const char *message)
|
||||
goto end;
|
||||
|
||||
argv = weechat_string_split (message, " ", 0, 0, &argc);
|
||||
argv_eol = weechat_string_split (message, " ", 1, 0, NULL);
|
||||
argv_eol = weechat_string_split (message, " ", 2, 0, NULL);
|
||||
|
||||
if (argc < 2)
|
||||
goto end;
|
||||
|
||||
@@ -961,6 +961,8 @@ IRC_PROTOCOL_CALLBACK(notice)
|
||||
|
||||
if (argv[0][0] == ':')
|
||||
{
|
||||
if (argc < 4)
|
||||
return WEECHAT_RC_ERROR;
|
||||
pos_target = argv[2];
|
||||
if ((pos_target[0] == '@') && (irc_channel_is_channel (pos_target + 1)))
|
||||
{
|
||||
|
||||
@@ -3162,6 +3162,7 @@ irc_server_gnutls_callback (void *data, gnutls_session_t tls_session,
|
||||
|
||||
#if LIBGNUTLS_VERSION_NUMBER >= 0x020b00
|
||||
tls_struct.cert_type = GNUTLS_CRT_X509;
|
||||
tls_struct.key_type = GNUTLS_PRIVKEY_X509;
|
||||
#else
|
||||
tls_struct.type = GNUTLS_CRT_X509;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user