doc: add question about terminal focus in FAQ

v2.8-utf8proc
Sebastien Helleu 2014-03-28 14:28:27 +01:00
parent 2556c46285
commit d2d2143792
6 changed files with 149 additions and 0 deletions

View File

@ -339,6 +339,31 @@ und um zu Highlight-Nachrichten zu springen: key[alt-p] / key[alt-n].
Siehe Benutzeranleitung für weitere Informationen zu dieser Funktion (Standardtastenbelegung).
// TRANSLATION MISSING
[[terminal_focus]]
=== How can I execute commands when terminal gets/loses focus?
You must enable the focus events with a special code sent to terminal.
*Important*:
* Currently, *only* 'xterm' seems to support this feature.
* It does *not* work under screen/tmux.
To send the code when WeeChat is starting:
----
/set weechat.startup.command_after_plugins "/print -stdout \033[?1004h\n"
----
And then you bind two keys for the focus (replace the `/print` commands by the
commands of your choice):
----
/key bind meta2-I /print -core focus
/key bind meta2-O /print -core unfocus
----
[[key_bindings]]
== Tastaturbelegung

View File

@ -319,6 +319,30 @@ And jump to highlights: key[alt-p] / key[alt-n].
See user's guide for more info about this feature (default key bindings).
[[terminal_focus]]
=== How can I execute commands when terminal gets/loses focus?
You must enable the focus events with a special code sent to terminal.
*Important*:
* Currently, *only* 'xterm' seems to support this feature.
* It does *not* work under screen/tmux.
To send the code when WeeChat is starting:
----
/set weechat.startup.command_after_plugins "/print -stdout \033[?1004h\n"
----
And then you bind two keys for the focus (replace the `/print` commands by the
commands of your choice):
----
/key bind meta2-I /print -core focus
/key bind meta2-O /print -core unfocus
----
[[key_bindings]]
== Key bindings

View File

@ -335,6 +335,31 @@ Et sauter aux highlights : key[alt-p] / key[alt-n].
Voir le guide utilisateur pour plus d'information sur cette fonctionnalité
(raccourcis clavier par défaut).
[[terminal_focus]]
=== Comment puis-je exécuter des commandes lorsque le terminal obtient/perd le focus ?
Vous devez activer les évènements du focus avec un code spécial envoyé au
terminal.
*Important* :
* Actuellement, *seulement* 'xterm' semble supporter cette fonctionnalité.
* Cela ne fonctionne *pas* sous screen/tmux.
Pour envoyer le code au démarrage de WeeChat :
----
/set weechat.startup.command_after_plugins "/print -stdout \033[?1004h\n"
----
Puis associez deux touches pour le focus (remplacez les commandes `/print` par
les commandes de votre choix):
----
/key bind meta2-I /print -core focus
/key bind meta2-O /print -core unfocus
----
[[key_bindings]]
== Raccourcis clavier

View File

@ -334,6 +334,31 @@ E per passare alle notifiche: key[alt-p] / key[alt-n].
Consultare la guida per l'utente per maggiori informazioni su questa funzione
(combinazioni tasti predefiniti).
// TRANSLATION MISSING
[[terminal_focus]]
=== How can I execute commands when terminal gets/loses focus?
You must enable the focus events with a special code sent to terminal.
*Important*:
* Currently, *only* 'xterm' seems to support this feature.
* It does *not* work under screen/tmux.
To send the code when WeeChat is starting:
----
/set weechat.startup.command_after_plugins "/print -stdout \033[?1004h\n"
----
And then you bind two keys for the focus (replace the `/print` commands by the
commands of your choice):
----
/key bind meta2-I /print -core focus
/key bind meta2-O /print -core unfocus
----
[[key_bindings]]
== Associazioni dei tasti

View File

@ -323,6 +323,31 @@ term screen-256color
この機能に関するより詳しい情報はユーザーガイドを参照してください (デフォルトのキー割り当て)。
// TRANSLATION MISSING
[[terminal_focus]]
=== How can I execute commands when terminal gets/loses focus?
You must enable the focus events with a special code sent to terminal.
*Important*:
* Currently, *only* 'xterm' seems to support this feature.
* It does *not* work under screen/tmux.
To send the code when WeeChat is starting:
----
/set weechat.startup.command_after_plugins "/print -stdout \033[?1004h\n"
----
And then you bind two keys for the focus (replace the `/print` commands by the
commands of your choice):
----
/key bind meta2-I /print -core focus
/key bind meta2-O /print -core unfocus
----
[[key_bindings]]
== キー割り当て

View File

@ -323,6 +323,31 @@ Poruszanie się między podświetleniami: key[alt-p] / key[alt-n].
Po więcej informacji zajrzyj do poradnika użytkownika (domyślne skróty klawiszowe).
// TRANSLATION MISSING
[[terminal_focus]]
=== How can I execute commands when terminal gets/loses focus?
You must enable the focus events with a special code sent to terminal.
*Important*:
* Currently, *only* 'xterm' seems to support this feature.
* It does *not* work under screen/tmux.
To send the code when WeeChat is starting:
----
/set weechat.startup.command_after_plugins "/print -stdout \033[?1004h\n"
----
And then you bind two keys for the focus (replace the `/print` commands by the
commands of your choice):
----
/key bind meta2-I /print -core focus
/key bind meta2-O /print -core unfocus
----
[[key_bindings]]
== Przypisania klawiszy