/third_party/node/deps/uv/src/win/ |
H A D | tty.c | 114 * Since all tty i/o happens on the same console, this window is shared 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 in uv_tty_init() 350 uv_tty_set_mode(uv_tty_t* tty, uv_tty_mode_t mode) uv_tty_set_mode() argument 417 uv_tty_get_winsize(uv_tty_t* tty, int* width, int* height) uv_tty_get_winsize() argument [all...] |
/third_party/libuv/src/win/ |
H A D | tty.c | 109 * Since all tty i/o happens on the same console, this window is shared 185 int uv_tty_init(uv_loop_t* loop, uv_tty_t* tty, uv_file fd, int unused) { in uv_tty_init() argument 244 uv__stream_init(loop, (uv_stream_t*) tty, UV_TTY); in uv_tty_init() 245 uv__connection_init((uv_stream_t*) tty); in uv_tty_init() 247 tty->handle = handle; in uv_tty_init() 248 tty->u.fd = fd; in uv_tty_init() 249 tty->reqs_pending = 0; in uv_tty_init() 250 tty->flags |= UV_HANDLE_BOUND; in uv_tty_init() 254 tty->flags |= UV_HANDLE_TTY_READABLE | UV_HANDLE_READABLE; in uv_tty_init() 256 tty in uv_tty_init() 345 uv_tty_set_mode(uv_tty_t* tty, uv_tty_mode_t mode) uv_tty_set_mode() argument 412 uv_tty_get_winsize(uv_tty_t* tty, int* width, int* height) uv_tty_get_winsize() argument [all...] |
/third_party/node/test/async-hooks/ |
H A D | test-ttywrap.readstream.js | 27 const tty = activities[0]; 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 [all...] |
/third_party/libuv/src/unix/ |
H A D | tty.c | 101 * - master tty: ptc - major 6 in uv__tty_is_slave() 102 * - slave tty: pts - major 5 in uv__tty_is_slave() 136 int uv_tty_init(uv_loop_t* loop, uv_tty_t* tty, int fd, int unused) { in uv_tty_init() argument 148 * (but obviously not /dev/tty.) in uv_tty_init() 166 /* Reopen the file descriptor when it refers to a tty. This lets us put the in uv_tty_init() 167 * tty in non-blocking mode without affecting other processes that share it in uv_tty_init() 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 uv__queue_remove(&tty->handle_queue); in uv_tty_init() 238 uv__stream_open((uv_stream_t*) tty, f in uv_tty_init() 281 uv_tty_set_mode(uv_tty_t* tty, uv_tty_mode_t mode) uv_tty_set_mode() argument 338 uv_tty_get_winsize(uv_tty_t* tty, int* width, int* height) uv_tty_get_winsize() argument [all...] |
/third_party/node/deps/uv/src/unix/ |
H A D | tty.c | 101 * - master tty: ptc - major 6 in uv__tty_is_slave() 102 * - slave tty: pts - major 5 in uv__tty_is_slave() 136 int uv_tty_init(uv_loop_t* loop, uv_tty_t* tty, int fd, int unused) { in uv_tty_init() argument 148 * (but obviously not /dev/tty.) in uv_tty_init() 166 /* Reopen the file descriptor when it refers to a tty. This lets us put the in uv_tty_init() 167 * tty in non-blocking mode without affecting other processes that share it in uv_tty_init() 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, f in uv_tty_init() 281 uv_tty_set_mode(uv_tty_t* tty, uv_tty_mode_t mode) uv_tty_set_mode() argument 333 uv_tty_get_winsize(uv_tty_t* tty, int* width, int* height) uv_tty_get_winsize() argument [all...] |
/third_party/libuv/test/ |
H A D | test-handle-fileno.c | 27 /* Make sure we have an FD that refers to a tty */ in get_tty_fd() 41 return open("/dev/tty", O_RDONLY, 0); in get_tty_fd() 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() [all...] |
H A D | test-osx-select.c | 55 uv_tty_t tty; in TEST_IMPL() local 57 fd = open("/dev/tty", O_RDONLY); in TEST_IMPL() 59 fprintf(stderr, "Cannot open /dev/tty as read-only: %s\n", strerror(errno)); in TEST_IMPL() 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 110 fd = open("/dev/tty", O_RDONLY); in TEST_IMPL() 112 fprintf(stderr, "Cannot open /dev/tty as read-only: %s\n", strerror(errno)); in TEST_IMPL() 117 r = uv_tty_init(uv_default_loop(), &tty, fd, 1); in TEST_IMPL() 120 r = uv_read_start((uv_stream_t*) &tty, alloc_c in TEST_IMPL() [all...] |
H A D | test-tty.c | 44 TEST_IMPL(tty) { in TEST_IMPL() 50 /* Make sure we have an FD that refers to a tty */ in TEST_IMPL() 74 ttyin_fd = open("/dev/tty", O_RDONLY, 0); in TEST_IMPL() 76 fprintf(stderr, "Cannot open /dev/tty as read-only: %s\n", strerror(errno)); in TEST_IMPL() 81 ttyout_fd = open("/dev/tty", O_WRONLY, 0); in TEST_IMPL() 83 fprintf(stderr, "Cannot open /dev/tty as write-only: %s\n", strerror(errno)); in TEST_IMPL() 174 /* Make sure we have an FD that refers to a tty */ in TEST_IMPL() 226 /* Make sure we have an FD that refers to a tty */ in TEST_IMPL() 272 /* Make sure we have an FD that refers to a tty */ in TEST_IMPL() 316 /* Make sure we have an FD that refers to a tty */ in TEST_IMPL() 348 uv_tty_t tty; TEST_IMPL() local [all...] |
/third_party/python/Lib/test/ |
H A D | test_ioctl.py | 11 tty = open("/dev/tty", "rb") variable 13 raise unittest.SkipTest("Unable to open /dev/tty") 15 with tty: 17 r = fcntl.ioctl(tty, termios.TIOCGPGRP, " ") 21 "are attached to /dev/tty") 22 del tty, r, rpgrp 34 with open("/dev/tty", "rb") as tty: 35 r = fcntl.ioctl(tty, termio [all...] |
H A D | test_pty.py | 13 import tty namespace 25 _HAVE_WINSZ = hasattr(tty, "TIOCGWINSZ") and hasattr(tty, "TIOCSWINSZ") 73 tty.tcgetattr(pty.STDIN_FILENO) 75 except tty.error: 98 self.stdin_dim = tty.tcgetwinsize(pty.STDIN_FILENO) 99 self.addCleanup(tty.tcsetwinsize, pty.STDIN_FILENO, 101 except tty.error: 114 mode = tty.tcgetattr(pty.STDIN_FILENO) 115 except tty [all...] |
/third_party/libuv/docs/code/tty/ |
H A 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/libuv/docs/code/tty-gravity/ |
H A 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/node/test/parallel/ |
H A D | test-ttywrap-invalid-fd.js | 5 const tty = require('tty'); 14 () => new tty.WriteStream(-1), 37 new tty.WriteStream(fd); 50 new tty.ReadStream(fd); 61 () => new tty.ReadStream(-1),
|
/third_party/toybox/toys/posix/ |
H A D | tty.c | 0 /* tty.c - Show stdin's terminal name 5 * See http://opengroup.org/onlinepubs/9699919799/utilities/tty.html 7 USE_TTY(NEWTOY(tty, "s", TOYFLAG_USR|TOYFLAG_BIN)) 10 bool "tty" 13 usage: tty [-s] 17 Prints "not a tty" and exits with nonzero status if no terminal 27 char *tty = ttyname(0); in tty_main() local 29 if (!toys.optflags) puts(tty ? tty : "not a tty"); in tty_main() [all...] |
H A D | xargs.c | 28 -o Open tty for COMMAND's stdin (default /dev/null) 29 -p Prompt for y/n from tty before running each command 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() 183 xopen_stdio(FLAG(o) ? "/dev/tty" : "/dev/null", O_RDONLY); in xargs_main() 215 if (TT.tty) fclose(TT.tty); in xargs_main() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/termios/termios_gtest/ |
H A D | termios_cfsetspeed_test.cpp | 24 struct termios tty; in HWTEST_F() local 25 int result1 = tcgetattr(fd, &tty); in HWTEST_F() 28 cfsetspeed(&tty, B9600); in HWTEST_F() 29 int result2 = tcsetattr(fd, TCSANOW, &tty); in HWTEST_F()
|
/third_party/toybox/toys/other/ |
H A D | login.c | 41 int hh = FLAG(h), count, tty = tty_fd(); in login_main() local 45 // we read user/password from stdin, but tty can be stderr? in login_main() 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() 120 printf("can't claim tty"); in login_main() 128 ttyname(tty), hh ? "from" : "", hh ? TT.h : ""); in login_main()
|
/third_party/node/deps/openssl/openssl/crypto/ui/ |
H A D | ui_openssl.c | 110 # define TTY_get(tty,data) tcgetattr(tty,data) 111 # define TTY_set(tty,data) tcsetattr(tty,TCSANOW,data) 118 # define TTY_get(tty,data) ioctl(tty,TCGETA,data) 119 # define TTY_set(tty,data) ioctl(tty,TCSETA,data) 126 # define TTY_get(tty,data) ioctl(tty,TIOCGET 658 noecho_fgets(char *buf, int size, FILE *tty) noecho_fgets() argument [all...] |
/third_party/openssl/crypto/ui/ |
H A D | ui_openssl.c | 110 # define TTY_get(tty,data) tcgetattr(tty,data) 111 # define TTY_set(tty,data) tcsetattr(tty,TCSANOW,data) 118 # define TTY_get(tty,data) ioctl(tty,TCGETA,data) 119 # define TTY_set(tty,data) ioctl(tty,TCSETA,data) 126 # define TTY_get(tty,data) ioctl(tty,TIOCGET 658 noecho_fgets(char *buf, int size, FILE *tty) noecho_fgets() argument [all...] |
/third_party/node/lib/ |
H A D | tty.js | 37 } = require('internal/tty'); 54 const tty = new TTY(fd, ctx); 61 handle: tty, 91 const tty = new TTY(fd, ctx); 98 handle: tty,
|
/third_party/node/lib/internal/bootstrap/switches/ |
H A D | is_main_thread.js | 52 const tty = require('tty'); 53 stream = new tty.WriteStream(fd); 54 stream._type = 'tty'; 197 const tty = require('tty'); 198 stdin = new tty.ReadStream(fd);
|
/third_party/python/Lib/ |
H A D | pty.py | 12 import tty namespace 16 from tty import setraw, tcgetattr, tcsetattr 63 return (fd, '/dev/tty' + x + y) 115 # Explicitly open the tty to make it become a controlling tty. 134 # If we write more than tty/ndisc is willing to buffer, we may block 207 except tty.error: # This is the same as termios.error 214 tcsetattr(STDIN_FILENO, tty.TCSAFLUSH, mode)
|
H A D | getpass.py | 15 # Gregory P. Smith (tty support & GetPassWarning) 35 the tty. If no tty is available defaults to sys.stderr. 39 EOFError: If our input tty or stdin was closed. 47 # Always try reading and writing directly on the tty first. 48 fd = os.open('/dev/tty', os.O_RDWR|os.O_NOCTTY) 49 tty = io.FileIO(fd, 'w+') 50 stack.enter_context(tty) 51 input = io.TextIOWrapper(tty) 86 # We can't control the tty o [all...] |
/third_party/node/deps/npm/node_modules/chalk/source/vendor/supports-color/ |
H A D | index.js | 3 import tty from 'node:tty'; 178 stdout: createSupportsColor({isTTY: tty.isatty(1)}), 179 stderr: createSupportsColor({isTTY: tty.isatty(2)}),
|
/third_party/node/deps/npm/node_modules/supports-color/ |
H A D | index.js | 3 import tty from 'node:tty'; 178 stdout: createSupportsColor({isTTY: tty.isatty(1)}), 179 stderr: createSupportsColor({isTTY: tty.isatty(2)}),
|