/external/toybox/toys/pending/ |
D | getty.c | 42 struct termios termios; 149 if (tcgetattr(STDIN_FILENO, &TT.termios) < 0) perror_exit("tcgetattr"); in termios_init() 152 TT.termios.c_cflag &= (0|CSTOPB|PARENB|PARODD); in termios_init() 154 if (toys.optflags & FLAG_h) TT.termios.c_cflag |= CRTSCTS; in termios_init() 156 if (toys.optflags & FLAG_L) TT.termios.c_cflag |= CLOCAL; in termios_init() 157 TT.termios.c_cc[VTIME] = 0; in termios_init() 158 TT.termios.c_cc[VMIN] = 1; in termios_init() 159 TT.termios.c_oflag = OPOST|ONLCR; in termios_init() 160 TT.termios.c_cflag |= CS8|CREAD|HUPCL|CBAUDEX; in termios_init() 162 TT.termios.c_lflag |= ISIG|ICANON|ECHO|ECHOE|ECHOK|ECHOKE; in termios_init() [all …]
|
D | stty.c | 190 static void show_speed(struct termios *t, int verbose) in show_speed() 226 static void set_option(struct termios *new, char *option) in set_option() 238 static void set_options(struct termios* new, ...) in set_options() 258 static int set_special_character(struct termios *new, int *i, char *char_name) in set_special_character() 282 static void make_sane(struct termios *t) in make_sane() 312 static void xtcgetattr(struct termios *t) in xtcgetattr() 319 struct termios old, sane; in do_stty() 325 struct termios new = old; in do_stty()
|
D | more.c | 22 struct termios inf; in GLOBALS() 79 struct termios newf; in more_main() 91 memcpy(&newf, &TT.inf, sizeof(struct termios)); in more_main()
|
/external/python/cpython2/Lib/ |
D | getpass.py | 63 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 165 termios.tcgetattr, termios.tcsetattr
|
/external/python/cpython3/Lib/test/ |
D | test_ioctl.py | 6 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 & 0xffffffff 77 set_winsz_opcode_pos = termios.TIOCSWINSZ 79 struct.pack("I", termios.TIOCSWINSZ))
|
D | test_getpass.py | 9 import termios 11 termios = None variable 94 @unittest.skipUnless(termios, 'tests require system with termios') 132 tcsetattr.side_effect = termios.error
|
/external/python/cpython2/Lib/test/ |
D | test_ioctl.py | 6 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.TIOCSWINSZ 79 struct.pack("I", termios.TIOCSWINSZ))
|
/external/python/cpython3/Lib/ |
D | getpass.py | 69 old = termios.tcgetattr(fd) # a copy to save 71 new[3] &= ~termios.ECHO # 3 == 'lflags' 72 tcsetattr_flags = termios.TCSAFLUSH 73 if hasattr(termios, 'TCSASOFT'): 74 tcsetattr_flags |= termios.TCSASOFT 76 termios.tcsetattr(fd, tcsetattr_flags, new) 79 termios.tcsetattr(fd, tcsetattr_flags, old) 81 except termios.error: 173 import termios 176 termios.tcgetattr, termios.tcsetattr
|
/external/openssh/openbsd-compat/ |
D | bsd-nextstep.h | 49 int tcgetattr(int, struct termios *); 50 int tcsetattr(int, int, const struct termios *); 52 speed_t cfgetospeed(const struct termios *); 53 speed_t cfgetispeed(const struct termios *); 54 int cfsetospeed(struct termios *, int); 55 int cfsetispeed(struct termios *, int);
|
D | bsd-nextstep.c | 47 tcgetattr(int fd, struct termios *t) in tcgetattr() 53 tcsetattr(int fd, int opt, const struct termios *t) in tcsetattr() 55 struct termios localterm; in tcsetattr() 80 speed_t cfgetospeed(const struct termios *t) in cfgetospeed() 85 speed_t cfgetispeed(const struct termios *t) in cfgetispeed() 91 cfsetospeed(struct termios *t,int speed) in cfsetospeed() 98 cfsetispeed(struct termios *t, int speed) in cfsetispeed()
|
/external/python/cpython3/Doc/library/ |
D | tty.rst | 18 Because it requires the :mod:`termios` module, it will work only on Unix. 23 .. function:: setraw(fd, when=termios.TCSAFLUSH) 26 defaults to :const:`termios.TCSAFLUSH`, and is passed to 27 :func:`termios.tcsetattr`. 30 .. function:: setcbreak(fd, when=termios.TCSAFLUSH) 33 defaults to :const:`termios.TCSAFLUSH`, and is passed to 34 :func:`termios.tcsetattr`. 39 Module :mod:`termios`
|
D | termios.rst | 1 :mod:`termios` --- POSIX style tty control 4 .. module:: termios 15 complete description of these calls, see :manpage:`termios(3)` Unix manual 17 *termios* style tty I/O control configured during installation. 39 constants defined in the :mod:`termios` module. 94 import termios, sys 96 old = termios.tcgetattr(fd) 97 new = termios.tcgetattr(fd) 98 new[3] = new[3] & ~termios.ECHO # lflags 100 termios.tcsetattr(fd, termios.TCSADRAIN, new) [all …]
|
/external/python/cpython2/Doc/library/ |
D | termios.rst | 2 :mod:`termios` --- POSIX style tty control 5 .. module:: termios 15 complete description of these calls, see :manpage:`termios(2)` Unix manual 17 *termios* style tty I/O control configured during installation. 39 constants defined in the :mod:`termios` module. 94 import termios, sys 96 old = termios.tcgetattr(fd) 97 new = termios.tcgetattr(fd) 98 new[3] = new[3] & ~termios.ECHO # lflags 100 termios.tcsetattr(fd, termios.TCSADRAIN, new) [all …]
|
D | tty.rst | 15 Because it requires the :mod:`termios` module, it will work only on Unix. 23 defaults to :const:`termios.TCSAFLUSH`, and is passed to 24 :func:`termios.tcsetattr`. 30 defaults to :const:`termios.TCSAFLUSH`, and is passed to 31 :func:`termios.tcsetattr`. 36 Module :mod:`termios`
|
/external/ltp/testcases/kernel/pty/ |
D | ptem01.c | 60 struct termios termios; in test1() local 81 if (ioctl(slavefd, TCGETS, &termios) != 0) { in test1() 85 if (ioctl(slavefd, TCSETS, &termios) != 0) { in test1() 89 if (ioctl(slavefd, TCSETSW, &termios) != 0) { in test1() 93 if (ioctl(slavefd, TCSETSF, &termios) != 0) { in test1() 97 if (ioctl(slavefd, TCSETS, &termios) != 0) { in test1() 386 struct termios termios; in test6() local 407 if (ioctl(slavefd, TCGETS, &termios) != 0) { in test6() 411 termios.c_cflag &= ~CBAUD; in test6() 412 termios.c_cflag |= B0 & CBAUD; in test6() [all …]
|
/external/chromium-trace/catapult/devil/devil/android/tools/ |
D | keyboard.py | 12 import termios 110 old_attrs = termios.tcgetattr(fd) 112 new_attrs[tty.LFLAG] = new_attrs[tty.LFLAG] & ~(termios.ICANON) 115 termios.tcsetattr(fd, termios.TCSAFLUSH, new_attrs) 119 termios.tcsetattr(fd, termios.TCSAFLUSH, old_attrs)
|
/external/autotest/client/site_tests/firmware_TouchMTB/ |
D | common_util.py | 11 import termios 47 old_attrs = termios.tcgetattr(fin) 54 termios.tcsetattr(fin, termios.TCSADRAIN, old_attrs)
|
/external/chromium-trace/catapult/third_party/pyserial/serial/ |
D | serialposix.py | 15 import sys, os, fcntl, termios, struct, select, errno, time 22 TERMIOS = termios 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.tcdrain(self.fd) 624 termios.tcflow(self.fd, TERMIOS.TCION) [all …]
|
/external/openssh/ |
D | sshtty.c | 47 static struct termios _saved_tio; 50 struct termios * 71 struct termios tio; in enter_raw_mode()
|
/external/chromium-trace/catapult/third_party/pyserial/serial/tools/ |
D | miniterm.py | 119 import termios, sys, os 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.TCSANOW, new) 139 termios.tcsetattr(self.fd, termios.TCSAFLUSH, self.old)
|
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/ |
D | 2009-01-25-NoSSE.ll | 11 %termios = alloca %struct.ktermios, align 8 12 %termios1 = bitcast %struct.ktermios* %termios to i8* 14 call void @bar(%struct.ktermios* %termios) nounwind
|
/external/llvm/test/CodeGen/X86/ |
D | 2009-01-25-NoSSE.ll | 13 %termios = alloca %struct.ktermios, align 8 14 %termios1 = bitcast %struct.ktermios* %termios to i8* 16 call void @bar(%struct.ktermios* %termios) nounwind
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/ |
D | 2009-01-25-NoSSE.ll | 13 %termios = alloca %struct.ktermios, align 8 14 %termios1 = bitcast %struct.ktermios* %termios to i8* 16 call void @bar(%struct.ktermios* %termios) nounwind
|
/external/autotest/client/common_lib/ |
D | pexpect.py | 76 import termios 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) 1018 if hasattr(termios, 'VEOF'): 1019 char = termios.tcgetattr(self.child_fd)[6][termios.VEOF] 1030 if hasattr(termios, 'VINTR'): [all …]
|
/external/libkmsxx/py/tests/ |
D | rottest.py | 6 import termios, sys, os, tty 117 oldterm = termios.tcgetattr(fd) 171 termios.tcsetattr(fd, termios.TCSAFLUSH, oldterm)
|