Home
last modified time | relevance | path

Searched refs:pty (Results 1 – 25 of 52) sorted by relevance

123

/third_party/python/Lib/test/
Dtest_pty.py9 import pty
79 tty.tcgetattr(pty.STDIN_FILENO)
113 stdin_dim = os.get_terminal_size(pty.STDIN_FILENO)
118 self.addCleanup(_set_term_winsz, pty.STDIN_FILENO, old_stdin_winsz)
132 mode = tty.tcgetattr(pty.STDIN_FILENO)
151 _set_term_winsz(pty.STDIN_FILENO, target_stdin_winsz)
155 new_stdin_winsz = _get_term_winsz(pty.STDIN_FILENO)
165 master_fd, slave_fd = pty.openpty(mode, new_stdin_winsz)
167 master_fd, slave_fd = pty.openpty()
216 pid, master_fd = pty.fork()
[all …]
Dtest_ioctl.py25 import pty
27 pty = None variable
70 if not pty:
72 mfd, sfd = pty.openpty()
Dtest_readline.py308 pty = import_module('pty')
310 [master, slave] = pty.openpty()
Dtest_builtin.py36 import pty, signal
38 pty = signal = None variable
1979 @unittest.skipUnless(pty, "the pty and signal modules must be available")
2001 pid, fd = pty.fork()
/third_party/python/Doc/library/
Dpty.rst1 :mod:`pty` --- Pseudo-terminal utilities
4 .. module:: pty
11 **Source code:** :source:`Lib/pty.py`
15 The :mod:`pty` module defines operations for handling the pseudo-terminal
23 The :mod:`pty` module defines the following functions:
47 spawned behind the pty will eventually terminate, and when it does *spawn*
77 .. audit-event:: pty.spawn argv pty.spawn
94 import pty
117 pty.spawn(shell, read)
Dunix.rst21 pty.rst
/third_party/musl/src/misc/
Dpty.c28 int pty, err; in __ptsname_r() local
30 if ((err = __syscall(SYS_ioctl, fd, TIOCGPTN, &pty))) return -err; in __ptsname_r()
31 if (snprintf(buf, len, "/dev/pts/%d", pty) >= len) return ERANGE; in __ptsname_r()
/third_party/musl/porting/liteos_a/user/src/misc/
Dpty.c31 int pty, err; in __ptsname_r() local
33 if ((err = __syscall(SYS_ioctl, fd, TIOCGPTN, &pty))) return -err; in __ptsname_r()
34 if (snprintf(buf, len, "/dev/pts/%d", pty) >= len) return ERANGE; in __ptsname_r()
/third_party/node/test/pseudo-tty/
Dpseudo-tty.status5 # to fail with EINVAL on SmartOS when `fd` is a pty from python's pty module.
Dpty_helper.py3 import pty
51 parent_fd, child_fd = pty.openpty()
/third_party/libwebsockets/test-apps/
Dtest-sshd.c415 ssh_ops_pty_req(void *_priv, struct lws_ssh_pty *pty) in ssh_ops_pty_req() argument
418 uint8_t *p = (uint8_t *)pty->modes, opc; in ssh_ops_pty_req()
421 lwsl_notice("%s: pty term %s, modes_len %d\n", __func__, pty->term, in ssh_ops_pty_req()
422 pty->modes_len); in ssh_ops_pty_req()
424 ssh_cgi_env_add(priv, "TERM", pty->term); in ssh_ops_pty_req()
426 while (p < (uint8_t *)pty->modes + pty->modes_len) { in ssh_ops_pty_req()
/third_party/ltp/testcases/kernel/mce-test/kvm/host/
Dhost_run.sh247 -monitor pty -serial pty -pidfile $pid_file > $host_start 2>&1 &
259 -monitor pty -serial pty -pidfile $pid_file > $host_start 2>&1 &
/third_party/libwebsockets/plugins/ssh-base/
Dsshd.c1502 memcpy(pss->args.pty.term, pss->name, in lws_ssh_parse_plaintext()
1503 sizeof(pss->args.pty.term) - 1); in lws_ssh_parse_plaintext()
1507 pss->args.pty.width_ch = pss->len; in lws_ssh_parse_plaintext()
1511 pss->args.pty.height_ch = pss->len; in lws_ssh_parse_plaintext()
1515 pss->args.pty.width_px = pss->len; in lws_ssh_parse_plaintext()
1519 pss->args.pty.height_px = pss->len; in lws_ssh_parse_plaintext()
1524 pss->args.pty.modes = (char *)pss->last_alloc; in lws_ssh_parse_plaintext()
1526 pss->args.pty.modes_len = pss->npos; in lws_ssh_parse_plaintext()
1530 &pss->args.pty); in lws_ssh_parse_plaintext()
1531 ssh_free_set_NULL(pss->args.pty.modes); in lws_ssh_parse_plaintext()
[all …]
/third_party/boost/libs/graph/example/
Dastar-cities.cpp47 , pty(_pty) in city_writer()
57 << static_cast< unsigned int >(pty * py) << "\", fontsize=\"11\"]"; in operator ()()
64 unsigned int ptx, pty; member in city_writer
/third_party/boost/libs/graph/test/
Dastar_search_test.cpp55 , pty(_pty) in city_writer()
65 << static_cast< unsigned int >(pty * py) << "\", fontsize=\"11\"]"; in operator ()()
72 unsigned int ptx, pty; member in city_writer
/third_party/ltp/scenario_groups/
Ddefault13 pty
/third_party/skia/third_party/externals/dawn/src/dawn_node/tools/
Dgo.sum3 github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
9 github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
/third_party/ltp/testcases/kernel/
DMakefile35 pty \
/third_party/typescript/tests/cases/docker/xterm.js/
DDockerfile1 # node-pty doesn't build on node 12 right now, so we lock to 10
/third_party/musl/libc-test/src/functionalext/supplement/misc/
Dtest_src_functionalext_supplement_misc.gni31 "pty",
/third_party/libwebsockets/plugins/ssh-base/include/
Dlws-plugin-ssh.h279 int (*pty_req)(void *priv, struct lws_ssh_pty *pty);
Dlws-ssh.h491 struct lws_ssh_pty pty; member
/third_party/ltp/doc/
Dltp-run-files.txt50 - pty
/third_party/littlefs/scripts/
Dtest.py19 import pty
279 mpty, spty = pty.openpty()
676 mpty, spty = pty.openpty()
/third_party/skia/third_party/externals/tint/tools/src/
Dgo.sum14 github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
50 github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=

123