__gmon_start__ _init _fini __cxa_finalize _Jv_RegisterClasses PyObject_AsFileDescriptor PyArg_ParseTuple PyList_Size tcgetattr PyList_GetItem PyInt_AsLong PyErr_Occurred PyExc_TypeError PyErr_Format PyString_Size PyErr_SetString cfsetispeed cfsetospeed PyErr_SetFromErrno PyString_AsString tcsetattr _Py_NoneStruct cfgetispeed cfgetospeed PyList_New PyList_SetItem PyString_FromStringAndSize PyInt_FromLong tcflow tcflush tcdrain tcsendbreak inittermios Py_InitModule4 PyModule_AddObject PyModule_AddIntConstant PyErr_NewException libc.so.6 _edata __bss_start _end GLIBC_2.1.3 GLIBC_2.0
O&iO:tcsetattr O&:tcgetattr O&i:tcflow O&i:tcflush O&:tcdrain O&i:tcsendbreak termios termios.error B50 B75 B110 B134 B150 B200 B300 B600 B1200 B1800 B2400 B4800 B9600 B19200 B38400 B57600 B115200 B230400 CBAUDEX TCSANOW TCSADRAIN TCSAFLUSH TCIFLUSH TCOFLUSH TCIOFLUSH TCOOFF TCOON TCIOFF TCION IGNBRK BRKINT IGNPAR PARMRK INPCK ISTRIP INLCR IGNCR ICRNL IUCLC IXON IXANY IXOFF IMAXBEL OPOST OLCUC ONLCR OCRNL ONOCR ONLRET OFILL OFDEL NLDLY CRDLY TABDLY BSDLY VTDLY FFDLY NL0 NL1 CR0 CR1 CR2 CR3 TAB0 TAB1 TAB2 TAB3 XTABS BS0 BS1 VT0 VT1 FF0 FF1 CSIZE CSTOPB CREAD PARENB PARODD HUPCL CLOCAL CIBAUD CRTSCTS CS5 CS6 CS7 CS8 ISIG ICANON XCASE ECHO ECHOE ECHOK ECHONL ECHOCTL ECHOPRT ECHOKE FLUSHO NOFLSH TOSTOP PENDIN IEXTEN VINTR VQUIT VERASE VKILL VEOF VTIME VMIN VSWTC VSWTCH VSTART VSTOP VSUSP VEOL VREPRINT VDISCARD VWERASE VLNEXT VEOL2 B460800 CBAUD CDSUSP CEOF CEOL CEOT CERASE CFLUSH CINTR CKILL CLNEXT CQUIT CRPRNT CSTART CSTOP CSUSP CWERASE EXTA EXTB FIOASYNC FIOCLEX FIONBIO FIONCLEX FIONREAD IOCSIZE_MASK IOCSIZE_SHIFT NCC NCCS N_MOUSE N_PPP N_SLIP N_STRIP N_TTY TCFLSH TCGETA TCGETS TCSBRK TCSBRKP TCSETA TCSETAF TCSETAW TCSETS TCSETSF TCSETSW TCXONC TIOCCONS TIOCEXCL TIOCGETD TIOCGICOUNT TIOCGLCKTRMIOS TIOCGPGRP TIOCGSERIAL TIOCGSOFTCAR TIOCGWINSZ TIOCINQ TIOCLINUX TIOCMBIC TIOCMBIS TIOCMGET TIOCMIWAIT TIOCMSET TIOCM_CAR TIOCM_CD TIOCM_CTS TIOCM_DSR TIOCM_DTR TIOCM_LE TIOCM_RI TIOCM_RNG TIOCM_RTS TIOCM_SR TIOCM_ST TIOCNOTTY TIOCNXCL TIOCOUTQ TIOCPKT TIOCPKT_DATA TIOCPKT_DOSTOP TIOCPKT_FLUSHREAD TIOCPKT_FLUSHWRITE TIOCPKT_NOSTOP TIOCPKT_START TIOCPKT_STOP TIOCSCTTY TIOCSERCONFIG TIOCSERGETLSR TIOCSERGETMULTI TIOCSERGSTRUCT TIOCSERGWILD TIOCSERSETMULTI TIOCSERSWILD TIOCSER_TEMT TIOCSETD TIOCSLCKTRMIOS TIOCSPGRP TIOCSSERIAL TIOCSSOFTCAR TIOCSTI TIOCSWINSZ tcsetattr, arg 3: must be 7 element list tcsetattr: attributes[6] must be %d element list tcsetattr: elements of attributes must be characters or integers
`7 This module provides an interface to the Posix calls for tty I/O control. For a complete description of these calls, see the Posix or Unix manual pages. It is only available for those Unix versions that support Posix termios style tty I/O control. All functions in this module take a file descriptor fd as their first argument. This can be an integer file descriptor, such as returned by sys.stdin.fileno(), or a file object, such as sys.stdin itself. tcgetattr(fd) -> list_of_attrs Get the tty attributes for file descriptor fd, as follows: [iflag, oflag, cflag, lflag, ispeed, ospeed, cc] where cc is a list of the tty special characters (each a string of length 1, except the items with indices VMIN and VTIME, which are integers when these fields are defined). The interpretation of the flags and the speeds as well as the indexing in the cc array must be done using the symbolic constants defined in this module. tcsetattr(fd, when, attributes) -> None Set the tty attributes for file descriptor fd. The attributes to be set are taken from the attributes argument, which is a list like the one returned by tcgetattr(). The when argument determines when the attributes are changed: termios.TCSANOW to change immediately, termios.TCSADRAIN to change after transmitting all queued output, or termios.TCSAFLUSH to change after transmitting all queued output and discarding all queued input. tcsendbreak(fd, duration) -> None Send a break on file descriptor fd. A zero duration sends a break for 0.25-0.5 seconds; a nonzero duration has a system dependent meaning. tcdrain(fd) -> None Wait until all output written to file descriptor fd has been transmitted. tcflush(fd, queue) -> None Discard queued data on file descriptor fd. The queue selector specifies which queue: termios.TCIFLUSH for the input queue, termios.TCOFLUSH for the output queue, or termios.TCIOFLUSH for both queues. tcflow(fd, action) -> None Suspend or resume input or output on file descriptor fd. The action argument can be termios.TCOOFF to suspend output, termios.TCOON to restart output, termios.TCIOFF to suspend input, or termios.TCION to restart input. & 0 `9 0 @; V ` = J = ? P @> 4 @? x | ! ( . 5 ; B I P W ] d @ j p v | @ @ ! % ) @ - 1 5 0 ; @ B H O V \ c j r v z ~ 0 @ @ # ) / 4 = F N U [ c i p u z RT QT !T PT T ? ! ) / 6 > D T K T R T Y T ` %T h T o T w T T T T T T T $T ]T VT T T T T ! T ! T ! T ! T %! T .! \T 9! T B! @ L! @ U! _! i! s! |! ! ! ! ! ! "T ! T ! T ! T ! ! ! ! " " -" :" T D" ST R" YT `" ZT p" XT " TT " [T " UT " " #T " WT " T " T " T " T " T
GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2ubuntu7) GCC: (GNU) 4.6.x-google 20120106 (prerelease) GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
.symtab .strtab .shstrtab .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .text .fini .rodata .eh_frame_hdr .eh_frame .ctors .dtors .jcr .dynamic .got .got.plt .data .bss .comment .debug_aranges .debug_info .debug_abbrev .debug_line .debug_ranges
initfini.c crtstuff.c __CTOR_LIST__ __DTOR_LIST__ __JCR_LIST__ __do_global_dtors_aux completed.5467 dtor_idx.5469 frame_dummy __CTOR_END__ __FRAME_END__ __JCR_END__ __do_global_ctors_aux termios.c fdconv termios_tcsetattr TermiosError termios_tcgetattr termios_tcflow termios_tcflush termios_tcdrain termios_tcsendbreak termios__doc__ termios_methods termios_constants termios_tcgetattr__doc__ termios_tcsetattr__doc__ termios_tcsendbreak__doc__ termios_tcdrain__doc__ termios_tcflush__doc__ termios_tcflow__doc__ _GLOBAL_OFFSET_TABLE_ __x86.get_pc_thunk.bx __dso_handle __DTOR_END__ _DYNAMIC PyModule_AddObject tcflow@@GLIBC_2.0 PyString_AsString PyList_GetItem __gmon_start__ _Jv_RegisterClasses cfgetispeed@@GLIBC_2.0 _fini PyExc_TypeError PyObject_AsFileDescriptor tcgetattr@@GLIBC_2.0 PyString_FromStringAndSize PyString_Size PyModule_AddIntConstant tcdrain@@GLIBC_2.0 PyErr_Format PyArg_ParseTuple PyErr_Occurred tcflush@@GLIBC_2.0 cfsetospeed@@GLIBC_2.0 PyInt_FromLong PyInt_AsLong PyList_Size __bss_start _Py_NoneStruct PyErr_NewException cfgetospeed@@GLIBC_2.0 Py_InitModule4 _end tcsetattr@@GLIBC_2.0 PyErr_SetString inittermios PyList_SetItem _edata tcsendbreak@@GLIBC_2.0 PyList_New PyErr_SetFromErrno __cxa_finalize@@GLIBC_2.1.3 cfsetispeed@@GLIBC_2.0 _init