From d2d214379293de23eec0333f0f9f5232bdd6f2b2 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 28 Mar 2014 14:28:27 +0100 Subject: doc: add question about terminal focus in FAQ --- doc/it/weechat_faq.it.txt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'doc/it') diff --git a/doc/it/weechat_faq.it.txt b/doc/it/weechat_faq.it.txt index 532981c3d..8a77f62fb 100644 --- a/doc/it/weechat_faq.it.txt +++ b/doc/it/weechat_faq.it.txt @@ -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 -- cgit v1.2.3