Home
last modified time | relevance | path

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

12345

/third_party/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 …]
Dstty.c190 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()
Dmore.c22 struct termios inf; in GLOBALS()
93 struct termios newf; in more_main()
105 memcpy(&newf, &TT.inf, sizeof(struct termios)); in more_main()
/third_party/musl/porting/liteos_a/kernel/include/
Dtermios.h22 speed_t cfgetospeed (const struct termios *);
23 speed_t cfgetispeed (const struct termios *);
24 int cfsetospeed (struct termios *, speed_t);
25 int cfsetispeed (struct termios *, speed_t);
27 int tcgetattr (int, struct termios *);
28 int tcsetattr (int, int, const struct termios *);
38 void cfmakeraw(struct termios *);
39 int cfsetspeed(struct termios *, speed_t);
/third_party/musl/porting/liteos_m/kernel/include/
Dtermios.h22 speed_t cfgetospeed (const struct termios *);
23 speed_t cfgetispeed (const struct termios *);
24 int cfsetospeed (struct termios *, speed_t);
25 int cfsetispeed (struct termios *, speed_t);
27 int tcgetattr (int, struct termios *);
28 int tcsetattr (int, int, const struct termios *);
38 void cfmakeraw(struct termios *);
39 int cfsetspeed(struct termios *, speed_t);
Dpty.h11 int openpty(int *, int *, char *, const struct termios *, const struct winsize *);
12 int forkpty(int *, char *, const struct termios *, const struct winsize *);
/third_party/musl/include/
Dtermios.h22 speed_t cfgetospeed (const struct termios *);
23 speed_t cfgetispeed (const struct termios *);
24 int cfsetospeed (struct termios *, speed_t);
25 int cfsetispeed (struct termios *, speed_t);
27 int tcgetattr (int, struct termios *);
28 int tcsetattr (int, int, const struct termios *);
38 void cfmakeraw(struct termios *);
39 int cfsetspeed(struct termios *, speed_t);
Dpty.h11 int openpty(int *, int *, char *, const struct termios *, const struct winsize *);
12 int forkpty(int *, char *, const struct termios *, const struct winsize *);
/third_party/python/Lib/test/
Dtest_ioctl.py6 termios = import_module('termios') variable
7 get_attribute(termios, 'TIOCGPGRP') #Can't run tests without this feature
16 r = fcntl.ioctl(tty, termios.TIOCGPGRP, " ")
34 r = fcntl.ioctl(tty, termios.TIOCGPGRP, " ")
51 r = fcntl.ioctl(tty, termios.TIOCGPGRP, buf, True)
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))
Dtest_getpass.py9 import termios
11 termios = None variable
94 @unittest.skipUnless(termios, 'tests require system with termios')
132 tcsetattr.side_effect = termios.error
/third_party/python/Lib/
Dgetpass.py69 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
/third_party/python/Doc/library/
Dtty.rst18 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`
Dtermios.rst1 :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 …]
/third_party/libxkbcommon/tools/
Dtools-common.c186 struct termios termios; in tools_disable_stdin_echo() local
187 if (tcgetattr(STDIN_FILENO, &termios) == 0) { in tools_disable_stdin_echo()
188 termios.c_lflag &= ~ECHO; in tools_disable_stdin_echo()
189 (void) tcsetattr(STDIN_FILENO, TCSADRAIN, &termios); in tools_disable_stdin_echo()
197 struct termios termios; in tools_enable_stdin_echo() local
198 if (tcgetattr(STDIN_FILENO, &termios) == 0) { in tools_enable_stdin_echo()
199 termios.c_lflag |= ECHO; in tools_enable_stdin_echo()
200 (void) tcsetattr(STDIN_FILENO, TCSADRAIN, &termios); in tools_enable_stdin_echo()
/third_party/ltp/testcases/kernel/pty/
Dptem01.c57 struct termios termios; in test1() local
78 if (ioctl(slavefd, TCGETS, &termios) != 0) { in test1()
82 if (ioctl(slavefd, TCSETS, &termios) != 0) { in test1()
86 if (ioctl(slavefd, TCSETSW, &termios) != 0) { in test1()
90 if (ioctl(slavefd, TCSETSF, &termios) != 0) { in test1()
94 if (ioctl(slavefd, TCSETS, &termios) != 0) { in test1()
383 struct termios termios; in test6() local
404 if (ioctl(slavefd, TCGETS, &termios) != 0) { in test6()
408 termios.c_cflag &= ~CBAUD; in test6()
409 termios.c_cflag |= B0 & CBAUD; in test6()
[all …]
/third_party/node/test/pseudo-tty/
Dpty_helper.py7 import termios
54 mode = termios.tcgetattr(child_fd)
56 mode[1] = mode[1] & ~termios.ONLCR # oflag
60 mode[3] = mode[3] & ~termios.ECHOCTL # lflag
61 termios.tcsetattr(child_fd, termios.TCSANOW, mode)
/third_party/musl/libc-test/src/api/
Dtermios.c12 struct termios x; in f()
120 {speed_t(*p)(const struct termios*) = cfgetispeed;} in f()
121 {speed_t(*p)(const struct termios*) = cfgetospeed;} in f()
122 {int(*p)(struct termios*,speed_t) = cfsetispeed;} in f()
123 {int(*p)(struct termios*,speed_t) = cfsetospeed;} in f()
127 {int(*p)(int,struct termios*) = tcgetattr;} in f()
130 {int(*p)(int,int,const struct termios*) = tcsetattr;} in f()
/third_party/musl/src/termios/
Dcfgetospeed.c5 speed_t cfgetospeed(const struct termios *tio) in cfgetospeed()
10 speed_t cfgetispeed(const struct termios *tio) in cfgetispeed()
Dcfsetospeed.c6 int cfsetospeed(struct termios *tio, speed_t speed) in cfsetospeed()
17 int cfsetispeed(struct termios *tio, speed_t speed) in cfsetispeed()
/third_party/musl/porting/liteos_a/user/src/termios/
Dcfsetospeed.c7 int cfsetospeed(struct termios *tio, speed_t speed) in cfsetospeed()
19 int cfsetispeed(struct termios *tio, speed_t speed) in cfsetispeed()
/third_party/boost/boost/asio/detail/
Dreactive_serial_port_service.hpp188 const void*, termios&, boost::system::error_code&);
193 termios& storage, boost::system::error_code& ec) in store_option()
206 void*, const termios&, boost::system::error_code&);
211 const termios& storage, boost::system::error_code& ec) in load_option()
/third_party/FreeBSD/sys/dev/usb/serial/
Dusb_serial.h104 void (*ucom_cfg_param) (struct ucom_softc *, struct termios *);
108 int (*ucom_pre_param) (struct ucom_softc *, struct termios *);
138 struct termios termios_copy;
/third_party/wpa_supplicant/wpa_supplicant-2.9/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)
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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)
/third_party/gstreamer/gstplugins_base/tools/
Dgst-play-kb.c43 static struct termios term_settings;
96 struct termios new_settings; in gst_play_kb_set_key_handler()

12345