constants.cs 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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 enum Event : long {
  53. Button1Pressed = unchecked((int)0x2),
  54. Button1Released = unchecked((int)0x1),
  55. Button1Clicked = unchecked((int)0x4),
  56. Button1DoubleClicked = unchecked((int)0x8),
  57. Button1TripleClicked = unchecked((int)0x10),
  58. Button2Pressed = unchecked((int)0x80),
  59. Button2Released = unchecked((int)0x40),
  60. Button2Clicked = unchecked((int)0x100),
  61. Button2DoubleClicked = unchecked((int)0x200),
  62. Button2TrippleClicked = unchecked((int)0x400),
  63. Button3Pressed = unchecked((int)0x2000),
  64. Button3Released = unchecked((int)0x1000),
  65. Button3Clicked = unchecked((int)0x4000),
  66. Button3DoubleClicked = unchecked((int)0x8000),
  67. Button3TripleClicked = unchecked((int)0x10000),
  68. Button4Pressed = unchecked((int)0x80000),
  69. Button4Released = unchecked((int)0x40000),
  70. Button4Clicked = unchecked((int)0x100000),
  71. Button4DoubleClicked = unchecked((int)0x200000),
  72. Button4TripleClicked = unchecked((int)0x400000),
  73. ButtonShift = unchecked((int)0x2000000),
  74. ButtonCtrl = unchecked((int)0x1000000),
  75. ButtonAlt = unchecked((int)0x4000000),
  76. ReportMousePosition = unchecked((int)0x8000000),
  77. AllEvents = unchecked((int)0x7ffffff),
  78. }
  79. #if XTERM1006
  80. public const int LeftRightUpNPagePPage= unchecked((int)0x8);
  81. public const int DownEnd = unchecked((int)0x6);
  82. public const int Home = unchecked((int)0x7);
  83. #else
  84. public const int LeftRightUpNPagePPage= unchecked((int)0x0);
  85. public const int DownEnd = unchecked((int)0x0);
  86. public const int Home = unchecked((int)0x0);
  87. #endif
  88. public const int ERR = unchecked((int)0xffffffff);
  89. public const int KeyBackspace = unchecked((int)0x107);
  90. public const int KeyUp = unchecked((int)0x103);
  91. public const int KeyDown = unchecked((int)0x102);
  92. public const int KeyLeft = unchecked((int)0x104);
  93. public const int KeyRight = unchecked((int)0x105);
  94. public const int KeyNPage = unchecked((int)0x152);
  95. public const int KeyPPage = unchecked((int)0x153);
  96. public const int KeyHome = unchecked((int)0x106);
  97. public const int KeyMouse = unchecked((int)0x199);
  98. public const int KeyEnd = unchecked((int)0x168);
  99. public const int KeyDeleteChar = unchecked((int)0x14a);
  100. public const int KeyInsertChar = unchecked((int)0x14b);
  101. public const int KeyTab = unchecked((int)0x009);
  102. public const int KeyBackTab = unchecked((int)0x161);
  103. public const int KeyF1 = unchecked((int)0x109);
  104. public const int KeyF2 = unchecked((int)0x10a);
  105. public const int KeyF3 = unchecked((int)0x10b);
  106. public const int KeyF4 = unchecked((int)0x10c);
  107. public const int KeyF5 = unchecked((int)0x10d);
  108. public const int KeyF6 = unchecked((int)0x10e);
  109. public const int KeyF7 = unchecked((int)0x10f);
  110. public const int KeyF8 = unchecked((int)0x110);
  111. public const int KeyF9 = unchecked((int)0x111);
  112. public const int KeyF10 = unchecked((int)0x112);
  113. public const int KeyF11 = unchecked((int)0x113);
  114. public const int KeyF12 = unchecked((int)0x114);
  115. public const int KeyResize = unchecked((int)0x19a);
  116. public const int ShiftKeyUp = unchecked((int)0x151);
  117. public const int ShiftKeyDown = unchecked((int)0x150);
  118. public const int ShiftKeyLeft = unchecked((int)0x189);
  119. public const int ShiftKeyRight = unchecked((int)0x192);
  120. public const int ShiftKeyNPage = unchecked((int)0x18c);
  121. public const int ShiftKeyPPage = unchecked((int)0x18e);
  122. public const int ShiftKeyHome = unchecked((int)0x187);
  123. public const int ShiftKeyEnd = unchecked((int)0x182);
  124. public const int AltKeyUp = unchecked((int)0x234 + LeftRightUpNPagePPage);
  125. public const int AltKeyDown = unchecked((int)0x20b + DownEnd);
  126. public const int AltKeyLeft = unchecked((int)0x21f + LeftRightUpNPagePPage);
  127. public const int AltKeyRight = unchecked((int)0x22e + LeftRightUpNPagePPage);
  128. public const int AltKeyNPage = unchecked((int)0x224 + LeftRightUpNPagePPage);
  129. public const int AltKeyPPage = unchecked((int)0x229 + LeftRightUpNPagePPage);
  130. public const int AltKeyHome = unchecked((int)0x215 + Home);
  131. public const int AltKeyEnd = unchecked((int)0x210 + DownEnd);
  132. public const int CtrlKeyUp = unchecked((int)0x236 + LeftRightUpNPagePPage);
  133. public const int CtrlKeyDown = unchecked((int)0x20d + DownEnd);
  134. public const int CtrlKeyLeft = unchecked((int)0x221 + LeftRightUpNPagePPage);
  135. public const int CtrlKeyRight = unchecked((int)0x230 + LeftRightUpNPagePPage);
  136. public const int CtrlKeyNPage = unchecked((int)0x226 + LeftRightUpNPagePPage);
  137. public const int CtrlKeyPPage = unchecked((int)0x22b + LeftRightUpNPagePPage);
  138. public const int CtrlKeyHome = unchecked((int)0x217 + Home);
  139. public const int CtrlKeyEnd = unchecked((int)0x212 + DownEnd);
  140. public const int ShiftCtrlKeyUp = unchecked((int)0x237 + LeftRightUpNPagePPage);
  141. public const int ShiftCtrlKeyDown = unchecked((int)0x20e + DownEnd);
  142. public const int ShiftCtrlKeyLeft = unchecked((int)0x222 + LeftRightUpNPagePPage);
  143. public const int ShiftCtrlKeyRight = unchecked((int)0x231 + LeftRightUpNPagePPage);
  144. public const int ShiftCtrlKeyNPage = unchecked((int)0x227 + LeftRightUpNPagePPage);
  145. public const int ShiftCtrlKeyPPage = unchecked((int)0x22c + LeftRightUpNPagePPage);
  146. public const int ShiftCtrlKeyHome = unchecked((int)0x218 + Home);
  147. public const int ShiftCtrlKeyEnd = unchecked((int)0x213 + DownEnd);
  148. public const int LC_ALL = 6;
  149. static public int ColorPair(int n){
  150. return 0 + n * 256;
  151. }
  152. }
  153. #pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
  154. }