<table><tr><td style="">ahmadsamir updated this revision to Diff 33599.<br />ahmadsamir edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-sx3ap5xgf7rxova/">(Show Details)</a><br />ahmadsamir added a comment.
</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/D12621">View Revision</a></tr></table><br /><div><div><p>Use a numeric string for the version env var (by removing the dots from the version string).</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">The exported env var is exported as a numeric string (by removing the<br />
dots from the version string), this has the benefit of making it simpler<br />
to compare the version in shell arithmetic expressions.<br />
<br />
</span>This should help programms like neovim check if konsole has support<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"><br />
for terminal capabilities (e.g. DECSCUSR) by creating a condition</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">for terminal capabilities (e.g. DECSCUSR)</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">depending on the konsole version</span>. See also:<div style="padding: 8px 0;">...</div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R319 Konsole</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D12621?vs=33357&id=33599">https://phabricator.kde.org/D12621?vs=33357&id=33599</a></div></div><br /><div><strong>BRANCH</strong><div><div>konsole-version-env-var</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12621">https://phabricator.kde.org/D12621</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/SessionManager.cpp</div></div></div><br /><div><strong>To: </strong>ahmadsamir, Konsole, hindenburg<br /><strong>Cc: </strong>Konsole, herrold, ngraham, hindenburg<br /></div>