File indexing completed on 2024-04-28 15:54:00

0001 # AUTO-GENERATED FILE -- DO NOT EDIT
0002 
0003 """ This module provides an interface to the Posix calls for tty I/O control.
0004 For a complete description of these calls, see the Posix or Unix manual
0005 pages. It is only available for those Unix versions that support Posix
0006 termios style tty I/O control.
0007 
0008 All functions in this module take a file descriptor fd as their first
0009 argument. This can be an integer file descriptor, such as returned by
0010 sys.stdin.fileno(), or a file object, such as sys.stdin itself. """
0011 
0012 B0 = 0
0013 B110 = 3
0014 B115200 = 4098
0015 B1200 = 9
0016 B134 = 4
0017 B150 = 5
0018 B1800 = 10
0019 B19200 = 14
0020 B200 = 6
0021 B230400 = 4099
0022 B2400 = 11
0023 B300 = 7
0024 B38400 = 15
0025 B460800 = 4100
0026 B4800 = 12
0027 B50 = 1
0028 B57600 = 4097
0029 B600 = 8
0030 B75 = 2
0031 B9600 = 13
0032 BRKINT = 2
0033 BS0 = 0
0034 BS1 = 8192
0035 BSDLY = 8192
0036 CBAUD = 4111
0037 CBAUDEX = 4096
0038 CDSUSP = 25
0039 CEOF = 4
0040 CEOL = 0
0041 CEOT = 4
0042 CERASE = 127
0043 CFLUSH = 15
0044 CIBAUD = 269418496
0045 CINTR = 3
0046 CKILL = 21
0047 CLNEXT = 22
0048 CLOCAL = 2048
0049 CQUIT = 28
0050 CR0 = 0
0051 CR1 = 512
0052 CR2 = 1024
0053 CR3 = 1536
0054 CRDLY = 1536
0055 CREAD = 128
0056 CRPRNT = 18
0057 CRTSCTS = 2147483648
0058 CS5 = 0
0059 CS6 = 16
0060 CS7 = 32
0061 CS8 = 48
0062 CSIZE = 48
0063 CSTART = 17
0064 CSTOP = 19
0065 CSTOPB = 64
0066 CSUSP = 26
0067 CWERASE = 23
0068 ECHO = 8
0069 ECHOCTL = 512
0070 ECHOE = 16
0071 ECHOK = 32
0072 ECHOKE = 2048
0073 ECHONL = 64
0074 ECHOPRT = 1024
0075 EXTA = 14
0076 EXTB = 15
0077 FF0 = 0
0078 FF1 = 32768
0079 FFDLY = 32768
0080 FIOASYNC = 21586
0081 FIOCLEX = 21585
0082 FIONBIO = 21537
0083 FIONCLEX = 21584
0084 FIONREAD = 21531
0085 FLUSHO = 4096
0086 HUPCL = 1024
0087 ICANON = 2
0088 ICRNL = 256
0089 IEXTEN = 32768
0090 IGNBRK = 1
0091 IGNCR = 128
0092 IGNPAR = 4
0093 IMAXBEL = 8192
0094 INLCR = 64
0095 INPCK = 16
0096 IOCSIZE_MASK = 1073676288
0097 IOCSIZE_SHIFT = 16
0098 ISIG = 1
0099 ISTRIP = 32
0100 IUCLC = 512
0101 IXANY = 2048
0102 IXOFF = 4096
0103 IXON = 1024
0104 NCC = 8
0105 NCCS = 32
0106 NL0 = 0
0107 NL1 = 256
0108 NLDLY = 256
0109 NOFLSH = 128
0110 N_MOUSE = 2
0111 N_PPP = 3
0112 N_SLIP = 1
0113 N_STRIP = 4
0114 N_TTY = 0
0115 OCRNL = 8
0116 OFDEL = 128
0117 OFILL = 64
0118 OLCUC = 2
0119 ONLCR = 4
0120 ONLRET = 32
0121 ONOCR = 16
0122 OPOST = 1
0123 PARENB = 256
0124 PARMRK = 8
0125 PARODD = 512
0126 PENDIN = 16384
0127 TAB0 = 0
0128 TAB1 = 2048
0129 TAB2 = 4096
0130 TAB3 = 6144
0131 TABDLY = 6144
0132 TCFLSH = 21515
0133 TCGETA = 21509
0134 TCGETS = 21505
0135 TCIFLUSH = 0
0136 TCIOFF = 2
0137 TCIOFLUSH = 2
0138 TCION = 3
0139 TCOFLUSH = 1
0140 TCOOFF = 0
0141 TCOON = 1
0142 TCSADRAIN = 1
0143 TCSAFLUSH = 2
0144 TCSANOW = 0
0145 TCSBRK = 21513
0146 TCSBRKP = 21541
0147 TCSETA = 21510
0148 TCSETAF = 21512
0149 TCSETAW = 21511
0150 TCSETS = 21506
0151 TCSETSF = 21508
0152 TCSETSW = 21507
0153 TCXONC = 21514
0154 TIOCCONS = 21533
0155 TIOCEXCL = 21516
0156 TIOCGETD = 21540
0157 TIOCGICOUNT = 21597
0158 TIOCGLCKTRMIOS = 21590
0159 TIOCGPGRP = 21519
0160 TIOCGSERIAL = 21534
0161 TIOCGSOFTCAR = 21529
0162 TIOCGWINSZ = 21523
0163 TIOCINQ = 21531
0164 TIOCLINUX = 21532
0165 TIOCMBIC = 21527
0166 TIOCMBIS = 21526
0167 TIOCMGET = 21525
0168 TIOCMIWAIT = 21596
0169 TIOCMSET = 21528
0170 TIOCM_CAR = 64
0171 TIOCM_CD = 64
0172 TIOCM_CTS = 32
0173 TIOCM_DSR = 256
0174 TIOCM_DTR = 2
0175 TIOCM_LE = 1
0176 TIOCM_RI = 128
0177 TIOCM_RNG = 128
0178 TIOCM_RTS = 4
0179 TIOCM_SR = 16
0180 TIOCM_ST = 8
0181 TIOCNOTTY = 21538
0182 TIOCNXCL = 21517
0183 TIOCOUTQ = 21521
0184 TIOCPKT = 21536
0185 TIOCPKT_DATA = 0
0186 TIOCPKT_DOSTOP = 32
0187 TIOCPKT_FLUSHREAD = 1
0188 TIOCPKT_FLUSHWRITE = 2
0189 TIOCPKT_NOSTOP = 16
0190 TIOCPKT_START = 8
0191 TIOCPKT_STOP = 4
0192 TIOCSCTTY = 21518
0193 TIOCSERCONFIG = 21587
0194 TIOCSERGETLSR = 21593
0195 TIOCSERGETMULTI = 21594
0196 TIOCSERGSTRUCT = 21592
0197 TIOCSERGWILD = 21588
0198 TIOCSERSETMULTI = 21595
0199 TIOCSERSWILD = 21589
0200 TIOCSER_TEMT = 1
0201 TIOCSETD = 21539
0202 TIOCSLCKTRMIOS = 21591
0203 TIOCSPGRP = 21520
0204 TIOCSSERIAL = 21535
0205 TIOCSSOFTCAR = 21530
0206 TIOCSTI = 21522
0207 TIOCSWINSZ = 21524
0208 TOSTOP = 256
0209 VDISCARD = 13
0210 VEOF = 4
0211 VEOL = 11
0212 VEOL2 = 16
0213 VERASE = 2
0214 VINTR = 0
0215 VKILL = 3
0216 VLNEXT = 15
0217 VMIN = 6
0218 VQUIT = 1
0219 VREPRINT = 12
0220 VSTART = 8
0221 VSTOP = 9
0222 VSUSP = 10
0223 VSWTC = 7
0224 VSWTCH = 7
0225 VT0 = 0
0226 VT1 = 16384
0227 VTDLY = 16384
0228 VTIME = 5
0229 VWERASE = 14
0230 XCASE = 4
0231 XTABS = 6144
0232 __package__ = None
0233 
0234 class error(Exception):
0235 
0236   pass
0237 
0238 def tcdrain(fd):
0239   """ tcdrain(fd) -> None
0240   
0241   Wait until all output written to file descriptor fd has been transmitted. """
0242   return None
0243 
0244 def tcflow(fd, action):
0245   """ tcflow(fd, action) -> None
0246   
0247   Suspend or resume input or output on file descriptor fd.
0248   The action argument can be termios.TCOOFF to suspend output,
0249   termios.TCOON to restart output, termios.TCIOFF to suspend input,
0250   or termios.TCION to restart input. """
0251   return None
0252 
0253 def tcflush(fd, queue):
0254   """ tcflush(fd, queue) -> None
0255   
0256   Discard queued data on file descriptor fd.
0257   The queue selector specifies which queue: termios.TCIFLUSH for the input
0258   queue, termios.TCOFLUSH for the output queue, or termios.TCIOFLUSH for
0259   both queues.  """
0260   return None
0261 
0262 def tcgetattr(fd):
0263   """ tcgetattr(fd) -> list_of_attrs
0264   
0265   Get the tty attributes for file descriptor fd, as follows:
0266   [iflag, oflag, cflag, lflag, ispeed, ospeed, cc] where cc is a list
0267   of the tty special characters (each a string of length 1, except the items
0268   with indices VMIN and VTIME, which are integers when these fields are
0269   defined).  The interpretation of the flags and the speeds as well as the
0270   indexing in the cc array must be done using the symbolic constants defined
0271   in this module. """
0272   return []
0273 
0274 def tcsendbreak(fd, duration):
0275   """ tcsendbreak(fd, duration) -> None
0276   
0277   Send a break on file descriptor fd.
0278   A zero duration sends a break for 0.25-0.5 seconds; a nonzero duration
0279   has a system dependent meaning. """
0280   return None
0281 
0282 def tcsetattr(fd, when, attributes):
0283   """ tcsetattr(fd, when, attributes) -> None
0284   
0285   Set the tty attributes for file descriptor fd.
0286   The attributes to be set are taken from the attributes argument, which
0287   is a list like the one returned by tcgetattr(). The when argument
0288   determines when the attributes are changed: termios.TCSANOW to
0289   change immediately, termios.TCSADRAIN to change after transmitting all
0290   queued output, or termios.TCSAFLUSH to change after transmitting all
0291   queued output and discarding all queued input.  """
0292   return None
0293