<table><tr><td style="">ahmadsamir created this revision.<br />ahmadsamir added reviewers: Konsole, hindenburg.<br />Restricted Application added a project: Konsole.<br />ahmadsamir 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/D12564">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Use an Enum for the cursor styles which basically combines cursor shape<br />
and blinking status.</p>

<p>This is in preparation for an upcoming patch to add support for DECRQSS<br />
(Request Status String) escape sequences, which will use the cursor<br />
styles in more than one location in the code.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Make sure the DECSCUSR escape sequences still work as before:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">printf '\e[ q'          #blinking block
printf '\e[0 q'         # blinking block
printf '\e[1 q'         # blinking block
printf '\e[2 q'         # steady block
printf '\e[3 q'         # blinking underscore
printf '\e[4 q'         # steady underscore
printf '\e[5 q'         # blinking ibeam/bar
printf '\e[6 q'         # steady ibeam/bar

Executing `reset` in terminal will reset the cursor shape and blinking
settings to the current profile values.</pre></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R319 Konsole</div></div></div><br /><div><strong>BRANCH</strong><div><div>cursor-style-enum</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12564">https://phabricator.kde.org/D12564</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/Emulation.h<br />
src/Enumeration.h<br />
src/TerminalDisplay.cpp<br />
src/TerminalDisplay.h<br />
src/Vt102Emulation.cpp</div></div></div><br /><div><strong>To: </strong>ahmadsamir, Konsole, hindenburg<br /><strong>Cc: </strong>Konsole, herrold, ngraham, hindenburg<br /></div>