diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2014-03-28 14:28:27 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2014-03-28 14:28:27 +0100 |
commit | d2d214379293de23eec0333f0f9f5232bdd6f2b2 (patch) | |
tree | 88afffbb1073b5cc6061e0f9d8beb1fb2656cc24 /doc/it | |
parent | 2556c462855e67d79ad594b27a5e21dd29e1dbf6 (diff) | |
download | weechat-d2d214379293de23eec0333f0f9f5232bdd6f2b2.zip |
doc: add question about terminal focus in FAQ
Diffstat (limited to 'doc/it')
-rw-r--r-- | doc/it/weechat_faq.it.txt | 25 |
1 files changed, 25 insertions, 0 deletions
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 |