You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ttymodes.py 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. # Copyright (c) Twisted Matrix Laboratories.
  2. # See LICENSE for details.
  3. #
  4. import tty
  5. # this module was autogenerated.
  6. VINTR = 1
  7. VQUIT = 2
  8. VERASE = 3
  9. VKILL = 4
  10. VEOF = 5
  11. VEOL = 6
  12. VEOL2 = 7
  13. VSTART = 8
  14. VSTOP = 9
  15. VSUSP = 10
  16. VDSUSP = 11
  17. VREPRINT = 12
  18. VWERASE = 13
  19. VLNEXT = 14
  20. VFLUSH = 15
  21. VSWTCH = 16
  22. VSTATUS = 17
  23. VDISCARD = 18
  24. IGNPAR = 30
  25. PARMRK = 31
  26. INPCK = 32
  27. ISTRIP = 33
  28. INLCR = 34
  29. IGNCR = 35
  30. ICRNL = 36
  31. IUCLC = 37
  32. IXON = 38
  33. IXANY = 39
  34. IXOFF = 40
  35. IMAXBEL = 41
  36. ISIG = 50
  37. ICANON = 51
  38. XCASE = 52
  39. ECHO = 53
  40. ECHOE = 54
  41. ECHOK = 55
  42. ECHONL = 56
  43. NOFLSH = 57
  44. TOSTOP = 58
  45. IEXTEN = 59
  46. ECHOCTL = 60
  47. ECHOKE = 61
  48. PENDIN = 62
  49. OPOST = 70
  50. OLCUC = 71
  51. ONLCR = 72
  52. OCRNL = 73
  53. ONOCR = 74
  54. ONLRET = 75
  55. CS7 = 90
  56. CS8 = 91
  57. PARENB = 92
  58. PARODD = 93
  59. TTY_OP_ISPEED = 128
  60. TTY_OP_OSPEED = 129
  61. TTYMODES = {
  62. 1 : 'VINTR',
  63. 2 : 'VQUIT',
  64. 3 : 'VERASE',
  65. 4 : 'VKILL',
  66. 5 : 'VEOF',
  67. 6 : 'VEOL',
  68. 7 : 'VEOL2',
  69. 8 : 'VSTART',
  70. 9 : 'VSTOP',
  71. 10 : 'VSUSP',
  72. 11 : 'VDSUSP',
  73. 12 : 'VREPRINT',
  74. 13 : 'VWERASE',
  75. 14 : 'VLNEXT',
  76. 15 : 'VFLUSH',
  77. 16 : 'VSWTCH',
  78. 17 : 'VSTATUS',
  79. 18 : 'VDISCARD',
  80. 30 : (tty.IFLAG, 'IGNPAR'),
  81. 31 : (tty.IFLAG, 'PARMRK'),
  82. 32 : (tty.IFLAG, 'INPCK'),
  83. 33 : (tty.IFLAG, 'ISTRIP'),
  84. 34 : (tty.IFLAG, 'INLCR'),
  85. 35 : (tty.IFLAG, 'IGNCR'),
  86. 36 : (tty.IFLAG, 'ICRNL'),
  87. 37 : (tty.IFLAG, 'IUCLC'),
  88. 38 : (tty.IFLAG, 'IXON'),
  89. 39 : (tty.IFLAG, 'IXANY'),
  90. 40 : (tty.IFLAG, 'IXOFF'),
  91. 41 : (tty.IFLAG, 'IMAXBEL'),
  92. 50 : (tty.LFLAG, 'ISIG'),
  93. 51 : (tty.LFLAG, 'ICANON'),
  94. 52 : (tty.LFLAG, 'XCASE'),
  95. 53 : (tty.LFLAG, 'ECHO'),
  96. 54 : (tty.LFLAG, 'ECHOE'),
  97. 55 : (tty.LFLAG, 'ECHOK'),
  98. 56 : (tty.LFLAG, 'ECHONL'),
  99. 57 : (tty.LFLAG, 'NOFLSH'),
  100. 58 : (tty.LFLAG, 'TOSTOP'),
  101. 59 : (tty.LFLAG, 'IEXTEN'),
  102. 60 : (tty.LFLAG, 'ECHOCTL'),
  103. 61 : (tty.LFLAG, 'ECHOKE'),
  104. 62 : (tty.LFLAG, 'PENDIN'),
  105. 70 : (tty.OFLAG, 'OPOST'),
  106. 71 : (tty.OFLAG, 'OLCUC'),
  107. 72 : (tty.OFLAG, 'ONLCR'),
  108. 73 : (tty.OFLAG, 'OCRNL'),
  109. 74 : (tty.OFLAG, 'ONOCR'),
  110. 75 : (tty.OFLAG, 'ONLRET'),
  111. # 90 : (tty.CFLAG, 'CS7'),
  112. # 91 : (tty.CFLAG, 'CS8'),
  113. 92 : (tty.CFLAG, 'PARENB'),
  114. 93 : (tty.CFLAG, 'PARODD'),
  115. 128 : 'ISPEED',
  116. 129 : 'OSPEED'
  117. }