constants.cs 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. /*
  2. * This file is autogenerated by the attrib.c program, do not edit
  3. */
  4. //#define XTERM1006
  5. using System.Runtime.InteropServices;
  6. namespace Unix.Terminal;
  7. #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
  8. public partial class Curses
  9. {
  10. public const int A_NORMAL = 0x0;
  11. public const int A_STANDOUT = 0x10000;
  12. public const int A_UNDERLINE = 0x20000;
  13. public const int A_REVERSE = 0x40000;
  14. public const int A_BLINK = 0x80000;
  15. public const int A_DIM = 0x100000;
  16. public const int A_BOLD = 0x200000;
  17. public const int A_PROTECT = 0x1000000;
  18. public const int A_INVIS = 0x800000;
  19. public const int ACS_LLCORNER = 0x40006d;
  20. public const int ACS_LRCORNER = 0x40006a;
  21. public const int ACS_HLINE = 0x400071;
  22. public const int ACS_ULCORNER = 0x40006c;
  23. public const int ACS_URCORNER = 0x40006b;
  24. public const int ACS_VLINE = 0x400078;
  25. public const int ACS_LTEE = 0x400074;
  26. public const int ACS_RTEE = 0x400075;
  27. public const int ACS_BTEE = 0x400076;
  28. public const int ACS_TTEE = 0x400077;
  29. public const int ACS_PLUS = 0x40006e;
  30. public const int ACS_S1 = 0x40006f;
  31. public const int ACS_S9 = 0x400073;
  32. public const int ACS_DIAMOND = 0x400060;
  33. public const int ACS_CKBOARD = 0x400061;
  34. public const int ACS_DEGREE = 0x400066;
  35. public const int ACS_PLMINUS = 0x400067;
  36. public const int ACS_BULLET = 0x40007e;
  37. public const int ACS_LARROW = 0x40002c;
  38. public const int ACS_RARROW = 0x40002b;
  39. public const int ACS_DARROW = 0x40002e;
  40. public const int ACS_UARROW = 0x40002d;
  41. public const int ACS_BOARD = 0x400068;
  42. public const int ACS_LANTERN = 0x400069;
  43. public const int ACS_BLOCK = 0x400030;
  44. public const int COLOR_BLACK = 0x0;
  45. public const int COLOR_RED = 0x1;
  46. public const int COLOR_GREEN = 0x2;
  47. public const int COLOR_YELLOW = 0x3;
  48. public const int COLOR_BLUE = 0x4;
  49. public const int COLOR_MAGENTA = 0x5;
  50. public const int COLOR_CYAN = 0x6;
  51. public const int COLOR_WHITE = 0x7;
  52. public const int COLOR_GRAY = 0x8;
  53. public const int KEY_CODE_YES = 0x100;
  54. public const int ERR = unchecked ((int)0xffffffff);
  55. public const int TIOCGWINSZ = 0x5413;
  56. public const int TIOCGWINSZ_MAC = 0x40087468;
  57. [Flags]
  58. public enum Event : long
  59. {
  60. Button1Pressed = 0x2,
  61. Button1Released = 0x1,
  62. Button1Clicked = 0x4,
  63. Button1DoubleClicked = 0x8,
  64. Button1TripleClicked = 0x10,
  65. Button2Pressed = 0x40,
  66. Button2Released = 0x20,
  67. Button2Clicked = 0x80,
  68. Button2DoubleClicked = 0x100,
  69. Button2TripleClicked = 0x200,
  70. Button3Pressed = 0x800,
  71. Button3Released = 0x400,
  72. Button3Clicked = 0x1000,
  73. Button3DoubleClicked = 0x2000,
  74. Button3TripleClicked = 0x4000,
  75. ButtonWheeledUp = 0x10000,
  76. ButtonWheeledDown = 0x200000,
  77. Button4Pressed = 0x80000,
  78. Button4Released = 0x40000,
  79. Button4Clicked = 0x100000,
  80. Button4DoubleClicked = 0x20000,
  81. Button4TripleClicked = 0x400000,
  82. ButtonShift = 0x4000000,
  83. ButtonCtrl = 0x2000000,
  84. ButtonAlt = 0x8000000,
  85. ReportMousePosition = 0x10000000,
  86. AllEvents = 0x7ffffff
  87. }
  88. #if XTERM1006
  89. public const int LeftRightUpNPagePPage = unchecked ((int)0x8);
  90. public const int DownEnd = unchecked ((int)0x6);
  91. public const int Home = unchecked ((int)0x7);
  92. #else
  93. public const int LeftRightUpNPagePPage = 0x0;
  94. public const int DownEnd = 0x0;
  95. public const int Home = 0x0;
  96. #endif
  97. public const int KeyBackspace = 0x107;
  98. public const int KeyUp = 0x103;
  99. public const int KeyDown = 0x102;
  100. public const int KeyLeft = 0x104;
  101. public const int KeyRight = 0x105;
  102. public const int KeyNPage = 0x152;
  103. public const int KeyPPage = 0x153;
  104. public const int KeyHome = 0x106;
  105. public const int KeyMouse = 0x199;
  106. public const int KeyCSI = 0x5b;
  107. public const int KeyEnd = 0x168;
  108. public const int KeyDeleteChar = 0x14a;
  109. public const int KeyInsertChar = 0x14b;
  110. public const int KeyTab = 0x009;
  111. public const int KeyBackTab = 0x161;
  112. public const int KeyF1 = 0x109;
  113. public const int KeyF2 = 0x10a;
  114. public const int KeyF3 = 0x10b;
  115. public const int KeyF4 = 0x10c;
  116. public const int KeyF5 = 0x10d;
  117. public const int KeyF6 = 0x10e;
  118. public const int KeyF7 = 0x10f;
  119. public const int KeyF8 = 0x110;
  120. public const int KeyF9 = 0x111;
  121. public const int KeyF10 = 0x112;
  122. public const int KeyF11 = 0x113;
  123. public const int KeyF12 = 0x114;
  124. public const int KeyResize = 0x19a;
  125. public const int ShiftKeyUp = 0x151;
  126. public const int ShiftKeyDown = 0x150;
  127. public const int ShiftKeyLeft = 0x189;
  128. public const int ShiftKeyRight = 0x192;
  129. public const int ShiftKeyNPage = 0x18c;
  130. public const int ShiftKeyPPage = 0x18e;
  131. public const int ShiftKeyHome = 0x187;
  132. public const int ShiftKeyEnd = 0x182;
  133. public const int AltKeyUp = unchecked (0x234 + LeftRightUpNPagePPage);
  134. public const int AltKeyDown = unchecked (0x20b + DownEnd);
  135. public const int AltKeyLeft = unchecked (0x21f + LeftRightUpNPagePPage);
  136. public const int AltKeyRight = unchecked (0x22e + LeftRightUpNPagePPage);
  137. public const int AltKeyNPage = unchecked (0x224 + LeftRightUpNPagePPage);
  138. public const int AltKeyPPage = unchecked (0x229 + LeftRightUpNPagePPage);
  139. public const int AltKeyHome = unchecked (0x215 + Home);
  140. public const int AltKeyEnd = unchecked (0x210 + DownEnd);
  141. public const int CtrlKeyUp = unchecked (0x236 + LeftRightUpNPagePPage);
  142. public const int CtrlKeyDown = unchecked (0x20d + DownEnd);
  143. public const int CtrlKeyLeft = unchecked (0x221 + LeftRightUpNPagePPage);
  144. public const int CtrlKeyRight = unchecked (0x230 + LeftRightUpNPagePPage);
  145. public const int CtrlKeyNPage = unchecked (0x226 + LeftRightUpNPagePPage);
  146. public const int CtrlKeyPPage = unchecked (0x22b + LeftRightUpNPagePPage);
  147. public const int CtrlKeyHome = unchecked (0x217 + Home);
  148. public const int CtrlKeyEnd = unchecked (0x212 + DownEnd);
  149. public const int ShiftCtrlKeyUp = unchecked (0x237 + LeftRightUpNPagePPage);
  150. public const int ShiftCtrlKeyDown = unchecked (0x20e + DownEnd);
  151. public const int ShiftCtrlKeyLeft = unchecked (0x222 + LeftRightUpNPagePPage);
  152. public const int ShiftCtrlKeyRight = unchecked (0x231 + LeftRightUpNPagePPage);
  153. public const int ShiftCtrlKeyNPage = unchecked (0x227 + LeftRightUpNPagePPage);
  154. public const int ShiftCtrlKeyPPage = unchecked (0x22c + LeftRightUpNPagePPage);
  155. public const int ShiftCtrlKeyHome = unchecked (0x218 + Home);
  156. public const int ShiftCtrlKeyEnd = unchecked (0x213 + DownEnd);
  157. public const int ShiftAltKeyUp = unchecked (0x235 + LeftRightUpNPagePPage);
  158. public const int ShiftAltKeyDown = unchecked (0x20c + DownEnd);
  159. public const int ShiftAltKeyLeft = unchecked (0x220 + LeftRightUpNPagePPage);
  160. public const int ShiftAltKeyRight = unchecked (0x22f + LeftRightUpNPagePPage);
  161. public const int ShiftAltKeyNPage = unchecked (0x225 + LeftRightUpNPagePPage);
  162. public const int ShiftAltKeyPPage = unchecked (0x22a + LeftRightUpNPagePPage);
  163. public const int ShiftAltKeyHome = unchecked (0x216 + Home);
  164. public const int ShiftAltKeyEnd = unchecked (0x211 + DownEnd);
  165. public const int AltCtrlKeyNPage = unchecked (0x228 + LeftRightUpNPagePPage);
  166. public const int AltCtrlKeyPPage = unchecked (0x22d + LeftRightUpNPagePPage);
  167. public const int AltCtrlKeyHome = unchecked (0x219 + Home);
  168. public const int AltCtrlKeyEnd = unchecked (0x214 + DownEnd);
  169. // see #949
  170. public static int LC_ALL { get; }
  171. static Curses () { LC_ALL = RuntimeInformation.IsOSPlatform (OSPlatform.OSX) ? 0 : 6; }
  172. public static int ColorPair (int n) { return 0 + n * 256; }
  173. }
  174. #pragma warning restore CS1591 // Missing XML comment for publicly visible type or member