<table><tr><td style="">pavelkh created this revision.<br />pavelkh added a project: Konsole.<br />Herald added a subscriber: konsole-devel.<br />pavelkh requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15732">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Fixes a bug that currently affects Konsole KPart</p>

<p>Repro steps:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Create KPart, and start xxd in it.</li>
<li class="remarkup-list-item">Call konsolePart->sendInput("hello")</li>
<li class="remarkup-list-item">In the konsole, press Return, then Ctrl+D</li>
</ul>

<p>Here's xxd output:<br />
<tt style="background: #ebebeb; font-size: 13px;">00000000: 6865 6c6c 6f00 0a                        hello..</tt></p>

<p>The valid xxd output would be:<br />
<tt style="background: #ebebeb; font-size: 13px;">00000000: 6865 6c6c 6f0a                           hello.</tt></p>

<p>Null bytes are mostly ignored, but some programs (e.g. ipython interpreter) really don't like them.</p>

<p>The bug happens, since konsole part uses <tt style="background: #ebebeb; font-size: 13px;">activeSession()->sendTextToTerminal(text);</tt>, and sendTextToTerminal() eol parameter defaults to null character.</p>

<p>This diff makes sendTextToTerminal() ignore null eol character.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R319 Konsole</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15732">https://phabricator.kde.org/D15732</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/Session.cpp</div></div></div><br /><div><strong>To: </strong>pavelkh<br /><strong>Cc: </strong>konsole-devel, herrold, ngraham, maximilianocuria, hindenburg<br /></div>