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/pl | |
parent | 2556c462855e67d79ad594b27a5e21dd29e1dbf6 (diff) | |
download | weechat-d2d214379293de23eec0333f0f9f5232bdd6f2b2.zip |
doc: add question about terminal focus in FAQ
Diffstat (limited to 'doc/pl')
-rw-r--r-- | doc/pl/weechat_faq.pl.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/pl/weechat_faq.pl.txt b/doc/pl/weechat_faq.pl.txt index d854ee149..ceb9ca34d 100644 --- a/doc/pl/weechat_faq.pl.txt +++ b/doc/pl/weechat_faq.pl.txt @@ -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 |