D12564: Use an Enum for the DECSCUSR cursor styles

Ahmad Samir noreply at phabricator.kde.org
Fri Apr 27 19:54:37 UTC 2018


ahmadsamir created this revision.
ahmadsamir added reviewers: Konsole, hindenburg.
Restricted Application added a project: Konsole.
ahmadsamir requested review of this revision.

REVISION SUMMARY
  Use an Enum for the cursor styles which basically combines cursor shape
  and blinking status.
  
  This is in preparation for an upcoming patch to add support for DECRQSS
  (Request Status String) escape sequences, which will use the cursor
  styles in more than one location in the code.

TEST PLAN
  Make sure the DECSCUSR escape sequences still work as before:
  
    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.

REPOSITORY
  R319 Konsole

BRANCH
  cursor-style-enum

REVISION DETAIL
  https://phabricator.kde.org/D12564

AFFECTED FILES
  src/Emulation.h
  src/Enumeration.h
  src/TerminalDisplay.cpp
  src/TerminalDisplay.h
  src/Vt102Emulation.cpp

To: ahmadsamir, #konsole, hindenburg
Cc: #konsole, herrold, ngraham, hindenburg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/konsole-devel/attachments/20180427/e50001fa/attachment.html>


More information about the konsole-devel mailing list