Searched defs:termios (Results 1 - 17 of 17) sorted by relevance

/external/autotest/client/site_tests/firmware_TouchMTB/
H A Dcommon_util.py11 import termios namespace
47 old_attrs = termios.tcgetattr(fin)
54 termios.tcsetattr(fin, termios.TCSADRAIN, old_attrs)
/external/python/cpython2/Lib/
H A Dgetpass.py63 old = termios.tcgetattr(fd) # a copy to save
65 new[3] &= ~termios.ECHO # 3 == 'lflags'
66 tcsetattr_flags = termios.TCSAFLUSH
67 if hasattr(termios, 'TCSASOFT'):
68 tcsetattr_flags |= termios.TCSASOFT
70 termios.tcsetattr(fd, tcsetattr_flags, new)
73 termios.tcsetattr(fd, tcsetattr_flags, old)
75 except termios.error, e:
162 import termios namespace
163 # it's possible there is an incompatible termios fro
[all...]
/external/toybox/toys/pending/
H A Dtest.c85 struct termios termios; local
86 toys.exitval = tcgetattr(atoi(toys.optargs[1]), &termios) == -1;
/external/chromium-trace/catapult/devil/devil/android/tools/
H A Dkeyboard.py12 import termios namespace
114 # See man 3 termios for more info on what this is doing.
115 old_attrs = termios.tcgetattr(fd)
117 new_attrs[tty.LFLAG] = new_attrs[tty.LFLAG] & ~(termios.ICANON)
120 termios.tcsetattr(fd, termios.TCSAFLUSH, new_attrs)
124 termios.tcsetattr(fd, termios.TCSAFLUSH, old_attrs)
/external/autotest/client/cros/cellular/wardmodem/
H A Dat_channel.py10 import termios namespace
81 except termios.error as ttyerror:
/external/ltp/testcases/kernel/pty/
H A Dptem01.c52 * test termio/termios ioctls
59 struct termios termios; local
83 if (ioctl(slavefd, TCGETS, &termios) != 0) {
87 if (ioctl(slavefd, TCSETS, &termios) != 0) {
91 if (ioctl(slavefd, TCSETSW, &termios) != 0) {
95 if (ioctl(slavefd, TCSETSF, &termios) != 0) {
99 if (ioctl(slavefd, TCSETS, &termios) != 0) {
397 struct termios termios; local
[all...]
/external/python/cpython2/Lib/test/
H A Dtest_ioctl.py6 termios = import_module('termios') variable
7 get_attribute(termios, 'TIOCGPGRP') #Can't run tests without this feature
15 r = fcntl.ioctl(tty, termios.TIOCGPGRP, " ")
34 r = fcntl.ioctl(tty, termios.TIOCGPGRP, " ")
51 r = fcntl.ioctl(tty, termios.TIOCGPGRP, buf, 1)
73 if termios.TIOCSWINSZ < 0:
74 set_winsz_opcode_maybe_neg = termios.TIOCSWINSZ
75 set_winsz_opcode_pos = termios.TIOCSWINSZ & 0xffffffffL
77 set_winsz_opcode_pos = termios
[all...]
/external/chromium-trace/catapult/third_party/pyserial/serial/tools/
H A Dminiterm.py119 import termios, sys, os namespace
126 self.old = termios.tcgetattr(self.fd)
127 new = termios.tcgetattr(self.fd)
128 new[3] = new[3] & ~termios.ICANON & ~termios.ECHO & ~termios.ISIG
129 new[6][termios.VMIN] = 1
130 new[6][termios.VTIME] = 0
131 termios.tcsetattr(self.fd, termios
[all...]
/external/compiler-rt/lib/asan/scripts/
H A Dasan_symbolize.py183 import termios namespace
193 attr = termios.tcgetattr(fd)
194 attr[3] = attr[3] & ~termios.ECHO
195 termios.tcsetattr(fd, termios.TCSANOW, attr)
/external/wpa_supplicant_8/wpa_supplicant/examples/
H A Dp2p-nfc.py368 import sys, tty, termios namespace
373 termios.tcsetattr(fd, termios.TCSADRAIN, prev_tcgetattr)
378 import sys, tty, termios, select namespace
381 prev_tcgetattr = termios.tcgetattr(fd)
390 termios.tcsetattr(fd, termios.TCSADRAIN, prev_tcgetattr)
/external/autotest/client/common_lib/
H A Dpexpect.py76 import termios namespace
723 attr = termios.tcgetattr(self.child_fd)
724 if attr[3] & termios.ECHO:
760 attr = termios.tcgetattr(self.child_fd)
762 attr[3] = attr[3] | termios.ECHO
764 attr[3] = attr[3] & ~termios.ECHO
767 termios.tcsetattr(self.child_fd, termios.TCSANOW, attr)
1006 #old = termios.tcgetattr(fd) # remember current state
1007 #attr = termios
[all...]
/external/chromium-trace/catapult/third_party/pyserial/serial/
H A Dserialposix.py15 import sys, os, fcntl, termios, struct, select, errno, time namespace
22 TERMIOS = termios
276 done with termios and fcntl. Runs on Linux and many other Un*x like
322 orig_attr = termios.tcgetattr(self.fd)
324 except termios.error, msg: # if a port is nonexistent but has a /dev file, it'll fail here
427 termios.tcsetattr(self.fd, TERMIOS.TCSANOW, [iflag, oflag, cflag, lflag, ispeed, ospeed, cc])
529 termios.tcflush(self.fd, TERMIOS.TCIFLUSH)
535 termios.tcflush(self.fd, TERMIOS.TCOFLUSH)
540 termios.tcsendbreak(self.fd, int(duration/0.25))
601 termios
[all...]
/external/devlib/devlib/utils/
H A Dmisc.py410 import termios # NOQA namespace
412 old_settings = termios.tcgetattr(fd)
417 termios.tcsetattr(fd, termios.TCSADRAIN, old_settings)
/external/e2fsprogs/e2fsck/
H A Dutil.c28 #include <termios.h>
202 struct termios termios, tmp; local
204 tcgetattr (0, &termios);
205 tmp = termios;
234 tcsetattr (0, TCSANOW, &termios);
270 tcsetattr (0, TCSANOW, &termios);
/external/kernel-headers/original/uapi/asm-generic/
H A Dtermbits.h11 struct termios { struct
/external/kernel-headers/original/uapi/asm-mips/asm/
H A Dtermbits.h24 struct termios { struct
/external/toybox/generated/
H A Dglobals.h167 struct termios original_stdin_state, original_fd_state;
624 struct termios termios; member in struct:getty_data
760 struct termios inf;
807 struct termios crntio;
866 struct termios def_term;
867 struct termios raw_term;

Completed in 1199 milliseconds