<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://git.reviewboard.kde.org/r/124898/">https://git.reviewboard.kde.org/r/124898/</a>
     </td>
    </tr>
   </table>
   <br />




<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: 1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
 <tr>
  <td>

<div>Review request for Konsole.</div>
<div>By Gerhard Gappmeier.</div>


<p style="color: grey;"><i>Updated Aug. 23, 2015, 10:21 p.m.</i></p>









<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt;">Repository: </b>
konsole
</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description  (updated)</h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">This makes FocusLost and FocusGained events working in console based Vim
running in Konsole. The plugin https://github.com/sjl/vitality.vim is
necessary, though to convert these escape sequences into Vim autocmds.</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Focus reporting is disabled by default and can be enabled using special
escape sequences:</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Sequence     Description             Direction
----------------------------------------------
<esc>[O      Focus gained            send
<esc>[I      Focus lost              send
<esc>[?1004h Enable focus reporting  recv
<esc>[?1004l Disable focus reporting recv</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">This is the same trick as used by iTerm2.
It uses the same escape sequences to make the Vitality plugin working
without a change.</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Vim configuration for testing:
* Install the Vitality plugin
* Add this to your ~/.vimrc</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;"><div class="codehilite" style="background: #f8f8f8"><pre style="line-height: 125%">" Enable this to make Vitality working with Konsole
let g:vitality_always_assume_iterm=1
" test events
augroup FocusTest
    autocmd\!
    autocmd FocusGained \* :echo("focus gained")
    autocmd FocusLost \* :echo("focus lost")
augroup end
</pre></div>
</p></pre>
  </td>
 </tr>
</table>



<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> (updated)</h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>src/Emulation.h <span style="color: grey">(52a34b4eeaee9eb71389f2987c5e84bf005d8bc2)</span></li>

 <li>src/Session.cpp <span style="color: grey">(522f68ea90c21892831c541496b0b3425ea87c21)</span></li>

 <li>src/TerminalDisplay.h <span style="color: grey">(f0699e92b60b210d0d34d48aecb99b6405f8483a)</span></li>

 <li>src/TerminalDisplay.cpp <span style="color: grey">(1c7b5153bda2c247d3f6aa789db46a6ca7dd30fd)</span></li>

 <li>src/Vt102Emulation.h <span style="color: grey">(8d678e00b28b2d055e0f324367e0990a7c04e925)</span></li>

 <li>src/Vt102Emulation.cpp <span style="color: grey">(a5f19eb1a1660baf666920405b46a43da3c7266d)</span></li>

</ul>

<p><a href="https://git.reviewboard.kde.org/r/124898/diff/" style="margin-left: 3em;">View Diff</a></p>






  </td>
 </tr>
</table>



  </div>
 </body>
</html>