CursorVisibility.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #nullable enable
  2. namespace Terminal.Gui;
  3. /// <summary>Terminal Cursor Visibility settings.</summary>
  4. /// <remarks>
  5. /// Hex value are set as 0xAABBCCDD where : AA stand for the TERMINFO DECSUSR parameter value to be used under
  6. /// Linux and MacOS BB stand for the NCurses curs_set parameter value to be used under Linux and MacOS CC stand for the
  7. /// CONSOLE_CURSOR_INFO.bVisible parameter value to be used under Windows DD stand for the CONSOLE_CURSOR_INFO.dwSize
  8. /// parameter value to be used under Windows
  9. /// </remarks>
  10. public enum CursorVisibility
  11. {
  12. /// <summary>Cursor caret has default</summary>
  13. /// <remarks>
  14. /// Works under Xterm-like terminal otherwise this is equivalent to <see ref="Underscore"/>. This default directly
  15. /// depends on the XTerm user configuration settings, so it could be Block, I-Beam, Underline with possible blinking.
  16. /// </remarks>
  17. Default = 0x00010119,
  18. /// <summary>Cursor caret is hidden</summary>
  19. Invisible = 0x03000019,
  20. /// <summary>Cursor caret is normally shown as a blinking underline bar _</summary>
  21. Underline = 0x03010119,
  22. /// <summary>Cursor caret is normally shown as a underline bar _</summary>
  23. /// <remarks>Under Windows, this is equivalent to <see ref="UnderscoreBlinking"/></remarks>
  24. UnderlineFix = 0x04010119,
  25. /// <summary>Cursor caret is displayed a blinking vertical bar |</summary>
  26. /// <remarks>Works under Xterm-like terminal otherwise this is equivalent to <see ref="Underscore"/></remarks>
  27. Vertical = 0x05010119,
  28. /// <summary>Cursor caret is displayed a blinking vertical bar |</summary>
  29. /// <remarks>Works under Xterm-like terminal otherwise this is equivalent to <see ref="Underscore"/></remarks>
  30. VerticalFix = 0x06010119,
  31. /// <summary>Cursor caret is displayed as a blinking block ▉</summary>
  32. Box = 0x01020164,
  33. /// <summary>Cursor caret is displayed a block ▉</summary>
  34. /// <remarks>Works under Xterm-like terminal otherwise this is equivalent to <see ref="Block"/></remarks>
  35. BoxFix = 0x02020164
  36. }