CursorVisibility.cs 2.0 KB

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