/third_party/node/deps/uv/src/win/ |
D | tty.c | 190 int uv_tty_init(uv_loop_t* loop, uv_tty_t* tty, uv_file fd, int unused) { in uv_tty_init() argument 249 uv__stream_init(loop, (uv_stream_t*) tty, UV_TTY); in uv_tty_init() 250 uv__connection_init((uv_stream_t*) tty); in uv_tty_init() 252 tty->handle = handle; in uv_tty_init() 253 tty->u.fd = fd; in uv_tty_init() 254 tty->reqs_pending = 0; in uv_tty_init() 255 tty->flags |= UV_HANDLE_BOUND; in uv_tty_init() 259 tty->flags |= UV_HANDLE_TTY_READABLE | UV_HANDLE_READABLE; in uv_tty_init() 261 tty->tty.rd.unused_ = NULL; in uv_tty_init() 262 tty->tty.rd.read_line_buffer = uv_null_buf_; in uv_tty_init() [all …]
|
/third_party/libuv/src/win/ |
D | tty.c | 190 int uv_tty_init(uv_loop_t* loop, uv_tty_t* tty, uv_file fd, int unused) { in uv_tty_init() argument 249 uv__stream_init(loop, (uv_stream_t*) tty, UV_TTY); in uv_tty_init() 250 uv__connection_init((uv_stream_t*) tty); in uv_tty_init() 252 tty->handle = handle; in uv_tty_init() 253 tty->u.fd = fd; in uv_tty_init() 254 tty->reqs_pending = 0; in uv_tty_init() 255 tty->flags |= UV_HANDLE_BOUND; in uv_tty_init() 259 tty->flags |= UV_HANDLE_TTY_READABLE | UV_HANDLE_READABLE; in uv_tty_init() 261 tty->tty.rd.unused_ = NULL; in uv_tty_init() 262 tty->tty.rd.read_line_buffer = uv_null_buf_; in uv_tty_init() [all …]
|
/third_party/node/test/pseudo-tty/ |
D | test-handle-wrap-hasref-tty.js | 9 const tty = new ReadStream(0); constant 13 strictEqual(tty._handle.hasRef(), 15 tty.unref(); 16 strictEqual(tty._handle.hasRef(), 18 tty.ref(); 19 strictEqual(tty._handle.hasRef(), 21 tty._handle.close(common.mustCall(() => 22 strictEqual(tty._handle.hasRef(),
|
/third_party/node/test/async-hooks/ |
D | test-ttywrap.readstream.js | 27 const tty = activities[0]; constant 28 assert.strictEqual(tty.type, 'TTYWRAP'); 29 assert.strictEqual(typeof tty.uid, 'number'); 30 assert.strictEqual(typeof tty.triggerAsyncId, 'number'); 31 checkInvocations(tty, checkInitOpts, 'when tty created'); 34 checkInvocations(tty, checkEndedOpts, 'when tty ended'); 41 checkInvocations(tty, checkInitOpts, 'when tty.end() was invoked'); 46 checkInvocations(tty, checkEndedOpts, 'when process exits');
|
/third_party/libuv/src/unix/ |
D | tty.c | 136 int uv_tty_init(uv_loop_t* loop, uv_tty_t* tty, int fd, int unused) { in uv_tty_init() argument 210 uv__stream_init(loop, (uv_stream_t*) tty, UV_TTY); in uv_tty_init() 220 r = uv__stream_try_select((uv_stream_t*) tty, &fd); in uv_tty_init() 225 QUEUE_REMOVE(&tty->handle_queue); in uv_tty_init() 238 uv__stream_open((uv_stream_t*) tty, fd, flags); in uv_tty_init() 239 tty->mode = UV_TTY_MODE_NORMAL; in uv_tty_init() 281 int uv_tty_set_mode(uv_tty_t* tty, uv_tty_mode_t mode) { in uv_tty_set_mode() argument 286 if (tty->mode == (int) mode) in uv_tty_set_mode() 289 fd = uv__stream_fd(tty); in uv_tty_set_mode() 290 if (tty->mode == UV_TTY_MODE_NORMAL && mode != UV_TTY_MODE_NORMAL) { in uv_tty_set_mode() [all …]
|
/third_party/node/deps/uv/src/unix/ |
D | tty.c | 136 int uv_tty_init(uv_loop_t* loop, uv_tty_t* tty, int fd, int unused) { in uv_tty_init() argument 210 uv__stream_init(loop, (uv_stream_t*) tty, UV_TTY); in uv_tty_init() 220 r = uv__stream_try_select((uv_stream_t*) tty, &fd); in uv_tty_init() 225 QUEUE_REMOVE(&tty->handle_queue); in uv_tty_init() 238 uv__stream_open((uv_stream_t*) tty, fd, flags); in uv_tty_init() 239 tty->mode = UV_TTY_MODE_NORMAL; in uv_tty_init() 281 int uv_tty_set_mode(uv_tty_t* tty, uv_tty_mode_t mode) { in uv_tty_set_mode() argument 286 if (tty->mode == (int) mode) in uv_tty_set_mode() 289 fd = uv__stream_fd(tty); in uv_tty_set_mode() 290 if (tty->mode == UV_TTY_MODE_NORMAL && mode != UV_TTY_MODE_NORMAL) { in uv_tty_set_mode() [all …]
|
/third_party/libuv/test/ |
D | test-handle-fileno.c | 54 uv_tty_t tty; in TEST_IMPL() local 108 r = uv_tty_init(loop, &tty, tty_fd, 0); in TEST_IMPL() 110 ASSERT(uv_is_readable((uv_stream_t*) &tty)); in TEST_IMPL() 111 ASSERT(!uv_is_writable((uv_stream_t*) &tty)); in TEST_IMPL() 112 r = uv_fileno((uv_handle_t*) &tty, &fd); in TEST_IMPL() 114 uv_close((uv_handle_t*) &tty, NULL); in TEST_IMPL() 115 r = uv_fileno((uv_handle_t*) &tty, &fd); in TEST_IMPL() 117 ASSERT(!uv_is_readable((uv_stream_t*) &tty)); in TEST_IMPL() 118 ASSERT(!uv_is_writable((uv_stream_t*) &tty)); in TEST_IMPL()
|
D | test-osx-select.c | 55 uv_tty_t tty; in TEST_IMPL() local 64 r = uv_tty_init(uv_default_loop(), &tty, fd, 1); in TEST_IMPL() 67 uv_read_start((uv_stream_t*) &tty, alloc_cb, read_cb); in TEST_IMPL() 94 uv_tty_t tty; in TEST_IMPL() local 117 r = uv_tty_init(uv_default_loop(), &tty, fd, 1); in TEST_IMPL() 120 r = uv_read_start((uv_stream_t*) &tty, alloc_cb, read_cb); in TEST_IMPL()
|
D | test-tty.c | 44 TEST_IMPL(tty) { in TEST_IMPL() argument 352 uv_tty_t tty; in TEST_IMPL() local 361 ASSERT(UV_EINVAL == uv_tty_init(&loop, &tty, fd, 1)); in TEST_IMPL() 364 ASSERT(UV_EINVAL == uv_tty_init(&loop, &tty, fd, 1)); in TEST_IMPL() 371 ASSERT(UV_EINVAL == uv_tty_init(&loop, &tty, fd, 1)); in TEST_IMPL() 378 ASSERT(UV_EINVAL == uv_tty_init(&loop, &tty, fd, 1)); in TEST_IMPL() 384 ASSERT(0 == uv_tty_init(&loop, &tty, fd, 1)); in TEST_IMPL() 386 ASSERT(uv_is_readable((uv_stream_t*) &tty)); in TEST_IMPL() 387 ASSERT(uv_is_writable((uv_stream_t*) &tty)); in TEST_IMPL() 388 uv_close((uv_handle_t*) &tty, NULL); in TEST_IMPL() [all …]
|
/third_party/python/Lib/test/ |
D | test_ioctl.py | 11 tty = open("/dev/tty", "rb") variable 15 with tty: 17 r = fcntl.ioctl(tty, termios.TIOCGPGRP, " ") 22 del tty, r, rpgrp 34 with open("/dev/tty", "rb") as tty: 35 r = fcntl.ioctl(tty, termios.TIOCGPGRP, " ") 51 with open("/dev/tty", "rb") as tty: 52 r = fcntl.ioctl(tty, termios.TIOCGPGRP, buf, True)
|
/third_party/libuv/docs/code/tty/ |
D | main.c | 7 uv_tty_t tty; variable 11 uv_tty_init(loop, &tty, STDOUT_FILENO, 0); in main() 12 uv_tty_set_mode(&tty, UV_TTY_MODE_NORMAL); in main() 19 uv_write(&req, (uv_stream_t*) &tty, &buf, 1, NULL); in main() 26 uv_write(&req, (uv_stream_t*) &tty, &buf, 1, NULL); in main()
|
/third_party/node/test/parallel/ |
D | test-ttywrap-invalid-fd.js | 5 const tty = require('tty'); constant 14 () => new tty.WriteStream(-1), 37 new tty.WriteStream(fd); 50 new tty.ReadStream(fd); 61 () => new tty.ReadStream(-1),
|
D | test-net-access-byteswritten.js | 10 const tty = require('tty'); constant 18 assert.strictEqual(Object.getPrototypeOf(tty.ReadStream).prototype.bytesWritten, 20 assert.strictEqual(tty.ReadStream.prototype.bytesWritten, undefined); 21 assert.strictEqual(tty.WriteStream.prototype.bytesWritten, undefined);
|
D | test-runner-output.mjs | 51 { name: 'test-runner/output/default_output.js', transform: specTransform, tty: true }, property 55 transform: snapshot.transform(specTransform, replaceTestDuration), tty: true property 57 { name: 'test-runner/output/dot_output_custom_columns.js', transform: specTransform, tty: true }, property 60 .map(({ name, tty, transform }) => ({ property 63 await snapshot.spawnAndAssert(fixtures.path(name), transform ?? defaultTransform, { tty }); field
|
/third_party/libuv/docs/code/tty-gravity/ |
D | main.c | 7 uv_tty_t tty; variable 23 uv_write(&write_req, (uv_stream_t*) &tty, &buf, 1, NULL); in update() 35 uv_tty_init(loop, &tty, STDOUT_FILENO, 0); in main() 36 uv_tty_set_mode(&tty, 0); in main() 38 if (uv_tty_get_winsize(&tty, &width, &height)) { in main()
|
/third_party/python/Doc/library/ |
D | tty.rst | 1 :mod:`tty` --- Terminal control functions 4 .. module:: tty 11 **Source code:** :source:`Lib/tty.py` 15 The :mod:`tty` module defines functions for putting the tty into cbreak and raw 20 The :mod:`tty` module defines the following functions:
|
D | termios.rst | 1 :mod:`termios` --- POSIX style tty control 6 :synopsis: POSIX style tty control. 10 pair: tty; I/O control 14 This module provides an interface to the POSIX calls for tty I/O control. For a 17 *termios* style tty I/O control configured during installation. 33 Return a list containing the tty attributes for file descriptor *fd*, as 35 list of the tty special characters (each a string of length 1, except the 44 Set the tty attributes for file descriptor *fd* from the *attributes*, which is 79 Module :mod:`tty` 90 :keyword:`finally` statement to ensure that the old tty attributes are restored
|
/third_party/toybox/toys/posix/ |
D | tty.c | 27 char *tty = ttyname(0); in tty_main() local 29 if (!toys.optflags) puts(tty ? tty : "not a tty"); in tty_main() 31 toys.exitval = !tty; in tty_main()
|
D | xargs.c | 44 FILE *tty; 176 if (!TT.tty) TT.tty = xfopen("/dev/tty", "re"); in xargs_main() 177 if (!fyesno(TT.tty, 0)) goto skip; in xargs_main() 215 if (TT.tty) fclose(TT.tty); in xargs_main()
|
/third_party/node/doc/api/ |
D | tty.md | 7 <!-- source_link=lib/tty.js --> 9 The `node:tty` module provides the `tty.ReadStream` and `tty.WriteStream` 14 const tty = require('node:tty'); 19 `tty.ReadStream` and both [`process.stdout`][] and [`process.stderr`][] will, by 20 default, be instances of `tty.WriteStream`. The preferred method of determining 32 manually create instances of the `tty.ReadStream` and `tty.WriteStream` 35 ## Class: `tty.ReadStream` 44 [`process.stdin`][] will be the only `tty.ReadStream` instance in a Node.js 66 A `boolean` that is always `true` for `tty.ReadStream` instances. 74 * `mode` {boolean} If `true`, configures the `tty.ReadStream` to operate as a [all …]
|
/third_party/toybox/toys/other/ |
D | login.c | 41 int hh = FLAG(h), count, tty = tty_fd(); in login_main() local 46 if (tty == -1) error_exit("no tty"); in login_main() 96 ttyname(tty), hh ? "from " : "", hh ? TT.h : ""); in login_main() 119 if (fchown(tty, pwd->pw_uid, pwd->pw_gid) || fchmod(tty, 0600)) in login_main() 128 ttyname(tty), hh ? "from" : "", hh ? TT.h : ""); in login_main()
|
/third_party/musl/libc-test/src/functionalext/supplement/termios/termios_gtest/ |
D | termios_cfsetspeed_test.cpp | 24 struct termios tty; variable 25 int result1 = tcgetattr(fd, &tty); 28 cfsetspeed(&tty, B9600); 29 int result2 = tcsetattr(fd, TCSANOW, &tty);
|
/third_party/node/deps/openssl/openssl/crypto/ui/ |
D | ui_openssl.c | 110 # define TTY_get(tty,data) tcgetattr(tty,data) argument 111 # define TTY_set(tty,data) tcsetattr(tty,TCSANOW,data) argument 118 # define TTY_get(tty,data) ioctl(tty,TCGETA,data) argument 119 # define TTY_set(tty,data) ioctl(tty,TCSETA,data) argument 126 # define TTY_get(tty,data) ioctl(tty,TIOCGETP,data) argument 127 # define TTY_set(tty,data) ioctl(tty,TIOCSETP,data) argument 187 static int noecho_fgets(char *buf, int size, FILE *tty); 658 static int noecho_fgets(char *buf, int size, FILE *tty) in noecho_fgets() argument
|
/third_party/openssl/crypto/ui/ |
D | ui_openssl.c | 110 # define TTY_get(tty,data) tcgetattr(tty,data) argument 111 # define TTY_set(tty,data) tcsetattr(tty,TCSANOW,data) argument 118 # define TTY_get(tty,data) ioctl(tty,TCGETA,data) argument 119 # define TTY_set(tty,data) ioctl(tty,TCSETA,data) argument 126 # define TTY_get(tty,data) ioctl(tty,TIOCGETP,data) argument 127 # define TTY_set(tty,data) ioctl(tty,TIOCSETP,data) argument 187 static int noecho_fgets(char *buf, int size, FILE *tty); 658 static int noecho_fgets(char *buf, int size, FILE *tty) in noecho_fgets() argument
|
/third_party/node/test/common/ |
D | assertSnapshot.js | 57 async function spawnAndAssert(filename, transform = (x) => x, { tty = false, ...options } = {}) { property 58 if (tty && common.isWindows) { 63 const executable = tty ? 'tools/pseudo-tty.py' : process.execPath; 64 const args = tty ? [process.execPath, ...flags, filename] : [...flags, filename];
|