TerminalModes.cs 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. namespace Renci.SshNet.Common
  2. {
  3. /// <summary>
  4. /// Specifies the initial assignments of the opcode values that are used in the 'encoded terminal modes' valu
  5. /// </summary>
  6. public enum TerminalModes : byte
  7. {
  8. /// <summary>
  9. /// Indicates end of options.
  10. /// </summary>
  11. TTY_OP_END = 0,
  12. /// <summary>
  13. /// Interrupt character; 255 if none. Similarly for the other characters. Not all of these characters are supported on all systems.
  14. /// </summary>
  15. VINTR = 1,
  16. /// <summary>
  17. /// The quit character (sends SIGQUIT signal on POSIX systems).
  18. /// </summary>
  19. VQUIT = 2,
  20. /// <summary>
  21. /// Erase the character to left of the cursor.
  22. /// </summary>
  23. VERASE = 3,
  24. /// <summary>
  25. /// Kill the current input line.
  26. /// </summary>
  27. VKILL = 4,
  28. /// <summary>
  29. /// End-of-file character (sends EOF from the terminal).
  30. /// </summary>
  31. VEOF = 5,
  32. /// <summary>
  33. /// End-of-line character in addition to carriage return and/or linefeed.
  34. /// </summary>
  35. VEOL = 6,
  36. /// <summary>
  37. /// Additional end-of-line character.
  38. /// </summary>
  39. VEOL2 = 7,
  40. /// <summary>
  41. /// Continues paused output (normally control-Q).
  42. /// </summary>
  43. VSTART = 8,
  44. /// <summary>
  45. /// Pauses output (normally control-S).
  46. /// </summary>
  47. VSTOP = 9,
  48. /// <summary>
  49. /// Suspends the current program.
  50. /// </summary>
  51. VSUSP = 10,
  52. /// <summary>
  53. /// Another suspend character.
  54. /// </summary>
  55. VDSUSP = 11,
  56. /// <summary>
  57. /// Reprints the current input line.
  58. /// </summary>
  59. VREPRINT = 12,
  60. /// <summary>
  61. /// Erases a word left of cursor.
  62. /// </summary>
  63. VWERASE = 13,
  64. /// <summary>
  65. /// Enter the next character typed literally, even if it is a special character
  66. /// </summary>
  67. VLNEXT = 14,
  68. /// <summary>
  69. /// Character to flush output.
  70. /// </summary>
  71. VFLUSH = 15,
  72. /// <summary>
  73. /// Switch to a different shell layer.
  74. /// </summary>
  75. VSWTCH = 16,
  76. /// <summary>
  77. /// Prints system status line (load, command, pid, etc).
  78. /// </summary>
  79. VSTATUS = 17,
  80. /// <summary>
  81. /// Toggles the flushing of terminal output.
  82. /// </summary>
  83. VDISCARD = 18,
  84. /// <summary>
  85. /// The ignore parity flag. The parameter SHOULD be 0 if this flag is FALSE, and 1 if it is TRUE.
  86. /// </summary>
  87. IGNPAR = 30,
  88. /// <summary>
  89. /// Mark parity and framing errors.
  90. /// </summary>
  91. PARMRK = 31,
  92. /// <summary>
  93. /// Enable checking of parity errors.
  94. /// </summary>
  95. INPCK = 32,
  96. /// <summary>
  97. /// Strip 8th bit off characters.
  98. /// </summary>
  99. ISTRIP = 33,
  100. /// <summary>
  101. /// Map NL into CR on input.
  102. /// </summary>
  103. INLCR = 34,
  104. /// <summary>
  105. /// Ignore CR on input.
  106. /// </summary>
  107. IGNCR = 35,
  108. /// <summary>
  109. /// Map CR to NL on input.
  110. /// </summary>
  111. ICRNL = 36,
  112. /// <summary>
  113. /// Translate uppercase characters to lowercase.
  114. /// </summary>
  115. IUCLC = 37,
  116. /// <summary>
  117. /// Enable output flow control.
  118. /// </summary>
  119. IXON = 38,
  120. /// <summary>
  121. /// Any char will restart after stop.
  122. /// </summary>
  123. IXANY = 39,
  124. /// <summary>
  125. /// Enable input flow control.
  126. /// </summary>
  127. IXOFF = 40,
  128. /// <summary>
  129. /// Ring bell on input queue full.
  130. /// </summary>
  131. IMAXBEL = 41,
  132. /// <summary>
  133. /// Enable signals INTR, QUIT, [D]SUSP.
  134. /// </summary>
  135. ISIG = 50,
  136. /// <summary>
  137. /// Canonicalize input lines.
  138. /// </summary>
  139. ICANON = 51,
  140. /// <summary>
  141. /// Enable input and output of uppercase characters by preceding their lowercase equivalents with "\".
  142. /// </summary>
  143. XCASE = 52,
  144. /// <summary>
  145. /// Enable echoing.
  146. /// </summary>
  147. ECHO = 53,
  148. /// <summary>
  149. /// Visually erase chars.
  150. /// </summary>
  151. ECHOE = 54,
  152. /// <summary>
  153. /// Kill character discards current line.
  154. /// </summary>
  155. ECHOK = 55,
  156. /// <summary>
  157. /// Echo NL even if ECHO is off.
  158. /// </summary>
  159. ECHONL = 56,
  160. /// <summary>
  161. /// Don't flush after interrupt.
  162. /// </summary>
  163. NOFLSH = 57,
  164. /// <summary>
  165. /// Stop background jobs from output.
  166. /// </summary>
  167. TOSTOP = 58,
  168. /// <summary>
  169. /// Enable extensions.
  170. /// </summary>
  171. IEXTEN = 59,
  172. /// <summary>
  173. /// Echo control characters as ^(Char).
  174. /// </summary>
  175. ECHOCTL = 60,
  176. /// <summary>
  177. /// Visual erase for line kill.
  178. /// </summary>
  179. ECHOKE = 61,
  180. /// <summary>
  181. /// Retype pending input.
  182. /// </summary>
  183. PENDIN = 62,
  184. /// <summary>
  185. /// Enable output processing.
  186. /// </summary>
  187. OPOST = 70,
  188. /// <summary>
  189. /// Convert lowercase to uppercase.
  190. /// </summary>
  191. OLCUC = 71,
  192. /// <summary>
  193. /// Map NL to CR-NL.
  194. /// </summary>
  195. ONLCR = 72,
  196. /// <summary>
  197. /// Translate carriage return to newline (output).
  198. /// </summary>
  199. OCRNL = 73,
  200. /// <summary>
  201. /// Translate newline to carriage return-newline (output).
  202. /// </summary>
  203. ONOCR = 74,
  204. /// <summary>
  205. /// Newline performs a carriage return (output).
  206. /// </summary>
  207. ONLRET = 75,
  208. /// <summary>
  209. /// 7 bit mode.
  210. /// </summary>
  211. CS7 = 90,
  212. /// <summary>
  213. /// 8 bit mode.
  214. /// </summary>
  215. CS8 = 91,
  216. /// <summary>
  217. /// Parity enable.
  218. /// </summary>
  219. PARENB = 92,
  220. /// <summary>
  221. /// Odd parity, else even.
  222. /// </summary>
  223. PARODD = 93,
  224. /// <summary>
  225. /// Specifies the input baud rate in bits per second.
  226. /// </summary>
  227. TTY_OP_ISPEED = 128,
  228. /// <summary>
  229. /// Specifies the output baud rate in bits per second.
  230. /// </summary>
  231. TTY_OP_OSPEED = 129,
  232. }
  233. }