constants.cs 9.0 KB

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