Home
last modified time | relevance | path

Searched refs:termios (Results 1 – 25 of 117) sorted by relevance

12345

/external/toybox/toys/pending/
Dgetty.c42 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 …]
Dmore.c22 struct termios inf; in GLOBALS()
79 struct termios newf; in more_main()
91 memcpy(&newf, &TT.inf, sizeof(struct termios)); in more_main()
Dtest.c85 struct termios termios; in test_main() local
86 toys.exitval = tcgetattr(atoi(toys.optargs[1]), &termios) == -1; in test_main()
/external/python/cpython2/Lib/
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
165 termios.tcgetattr, termios.tcsetattr
/external/python/cpython2/Lib/test/
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.TIOCSWINSZ
79 struct.pack("I", termios.TIOCSWINSZ))
/external/openssh/openbsd-compat/
Dbsd-nextstep.h49 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);
Dbsd-nextstep.c47 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/cpython2/Doc/library/
Dtermios.rst2 :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 …]
Dtty.rst15 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/
Dptem01.c59 struct termios termios; in test1() local
83 if (ioctl(slavefd, TCGETS, &termios) != 0) { in test1()
87 if (ioctl(slavefd, TCSETS, &termios) != 0) { in test1()
91 if (ioctl(slavefd, TCSETSW, &termios) != 0) { in test1()
95 if (ioctl(slavefd, TCSETSF, &termios) != 0) { in test1()
99 if (ioctl(slavefd, TCSETS, &termios) != 0) { in test1()
397 struct termios termios; in test6() local
421 if (ioctl(slavefd, TCGETS, &termios) != 0) { in test6()
425 termios.c_cflag &= ~CBAUD; in test6()
426 termios.c_cflag |= B0 & CBAUD; in test6()
[all …]
/external/chromium-trace/catapult/devil/devil/android/tools/
Dkeyboard.py12 import termios
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/site_tests/firmware_TouchMTB/
Dcommon_util.py11 import termios
47 old_attrs = termios.tcgetattr(fin)
54 termios.tcsetattr(fin, termios.TCSADRAIN, old_attrs)
/external/chromium-trace/catapult/third_party/pyserial/serial/
Dserialposix.py15 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
427termios.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/
Dsshtty.c47 static struct termios _saved_tio;
50 struct termios *
71 struct termios tio; in enter_raw_mode()
Dttymodes.c280 tty_make_modes(int fd, struct termios *tiop) in tty_make_modes()
282 struct termios tio; in tty_make_modes()
350 struct termios tio; in tty_parse_modes()
/external/syslinux/com32/libutil/
Dansiraw.c52 static struct termios original_termios_settings;
66 struct termios tio; in console_ansi_raw()
88 struct termios tio, rtio; in raw_read()
Dansiline.c51 static struct termios original_termios_settings;
65 struct termios tio; in console_ansi_std()
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/
D2009-01-25-NoSSE.ll11 %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/
D2009-01-25-NoSSE.ll13 %termios = alloca %struct.ktermios, align 8
14 %termios1 = bitcast %struct.ktermios* %termios to i8*
16 call void @bar(%struct.ktermios* %termios) nounwind
/external/chromium-trace/catapult/third_party/pyserial/serial/tools/
Dminiterm.py119 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/toybox/toys/net/
Dmicrocom.c26 struct termios original_stdin_state, original_fd_state;
32 struct termios *original)
34 struct termios t;
/external/autotest/client/common_lib/
Dpexpect.py76 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/wpa_supplicant_8/wpa_supplicant/examples/
Dp2p-nfc.py368 import sys, tty, termios
373 termios.tcsetattr(fd, termios.TCSADRAIN, prev_tcgetattr)
378 import sys, tty, termios, select
381 prev_tcgetattr = termios.tcgetattr(fd)
390 termios.tcsetattr(fd, termios.TCSADRAIN, prev_tcgetattr)
/external/toybox/lib/
Dinterestingtimes.c83 int set_terminal(int fd, int raw, struct termios *old) in set_terminal()
85 struct termios termio; in set_terminal()
116 void xset_terminal(int fd, int raw, struct termios *old) in xset_terminal()
/external/selinux/policycoreutils/run_init/
Dopen_init_pty.c49 static struct termios saved_termios;
55 struct termios buf; in tty_semi_raw()
202 struct termios tty_attr; in main()
259 struct termios s_tty_attr; in main()

12345