Home
last modified time | relevance | path

Searched refs:isatty (Results 1 – 25 of 232) sorted by relevance

12345678910

/third_party/node/test/pseudo-tty/
Dtest-tty-isatty.js5 const { isatty } = require('tty');
7 strictEqual(isatty(0), true, 'stdin reported to not be a tty, but it is');
8 strictEqual(isatty(1), true, 'stdout reported to not be a tty, but it is');
9 strictEqual(isatty(2), true, 'stderr reported to not be a tty, but it is');
11 strictEqual(isatty(-1), false, '-1 reported to be a tty, but it is not');
12 strictEqual(isatty(55555), false, '55555 reported to be a tty, but it is not');
13 strictEqual(isatty(2 ** 31), false, '2^31 reported to be a tty, but it is not');
14 strictEqual(isatty(1.1), false, '1.1 reported to be a tty, but it is not');
15 strictEqual(isatty('1'), false, '\'1\' reported to be a tty, but it is not');
16 strictEqual(isatty({}), false, '{} reported to be a tty, but it is not');
[all …]
/third_party/rust/crates/rustix/tests/termios/
Disatty.rs2 use rustix::termios::{isatty, tcgetwinsize};
13 assert!(!isatty( in std_file_is_not_terminal()
16 assert!(!isatty( in std_file_is_not_terminal()
30 assert_eq!(isatty(&std::io::stdout()), unsafe { in stdout_stderr_terminals()
31 libc::isatty(std::io::stdout().as_raw_fd()) != 0 in stdout_stderr_terminals()
33 assert_eq!(isatty(&std::io::stderr()), unsafe { in stdout_stderr_terminals()
34 libc::isatty(std::io::stderr().as_raw_fd()) != 0 in stdout_stderr_terminals()
39 isatty(&std::io::stdout()), in stdout_stderr_terminals()
43 isatty(&std::io::stderr()), in stdout_stderr_terminals()
Dttyname.rs2 use rustix::termios::{isatty, ttyname};
8 if isatty(&file) { in test_ttyname_ok()
Dmain.rs8 mod isatty; module
/third_party/node/test/wasi/c/
Dfd_prestat_get_refresh.c4 isatty(1); in main()
6 isatty(1); in main()
/third_party/node/tools/gyp/
Dtest_gyp.py178 self.isatty = sys.stdout.isatty() and not self.verbose
191 if self.isatty:
197 if self.isatty:
226 elif not self.isatty:
/third_party/node/deps/npm/node_modules/node-gyp/gyp/
Dtest_gyp.py178 self.isatty = sys.stdout.isatty() and not self.verbose
191 if self.isatty:
197 if self.isatty:
226 elif not self.isatty:
/third_party/rust/crates/is-terminal/src/
Dlib.rs60 rustix::termios::isatty(self) in is_terminal()
65 hermit_abi::isatty(self.as_filelike().as_fd()) in is_terminal()
329 libc::isatty(libc::STDIN_FILENO) != 0, in stdin_vs_libc()
340 libc::isatty(libc::STDOUT_FILENO) != 0, in stdout_vs_libc()
351 libc::isatty(libc::STDERR_FILENO) != 0, in stderr_vs_libc()
/third_party/toybox/toys/posix/
Dnohup.c26 if (isatty(1)) { in nohup_main()
38 if (isatty(0)) { in nohup_main()
/third_party/musl/libc-test/src/functionalext/supplement/manual/unistd/
Disatty.c29 int result = isatty(fileno(stdout)); in isatty_0100()
41 int result = isatty(fd); in isatty_0200()
/third_party/python/Modules/_io/
D_iomodule.c245 long isatty = 0; in _io_open_impl() local
250 _Py_IDENTIFIER(isatty); in _io_open_impl()
408 isatty = PyLong_AsLong(res); in _io_open_impl()
410 if (isatty == -1 && PyErr_Occurred()) in _io_open_impl()
414 if (buffering == 1 || isatty) { in _io_open_impl()
791 ADD_INTERNED(isatty) in PyInit__io()
/third_party/gstreamer/gstreamer/tests/validate/
Dgst-tester.c46 #define isatty _isatty macro
92 gboolean is_tty = isatty (STDOUT_FILENO); in _run_app()
158 gboolean is_tty = isatty (STDOUT_FILENO); in main()
/third_party/skia/third_party/externals/dawn/src/dawn_node/tools/
Dgo.sum15 github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
16 github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y=
17 github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
Dgo.mod8 github.com/mattn/go-isatty v0.0.14 // indirect
/third_party/rust/crates/rustix/src/termios/
Dtty.rs28 pub fn isatty<Fd: AsFd>(fd: Fd) -> bool { in isatty() function
29 backend::termios::syscalls::isatty(fd.as_fd()) in isatty()
/third_party/ninja/src/
Dsubprocess_test.cc151 if (isatty(0) && isatty(1) && isatty(2)) { in TEST_F()
/third_party/mksh/
DBuild.sh427 int main(void) { return (isatty(0)); }
1217 int main(void) { return (isatty(0)); }
1416 int main(void) { return (isatty(0)); }
1423 int main(void) { return (isatty(0)); }
1527 int main(void) { return (isatty(0)); }
1771 int main(int ac, char *av[]) { return (foo(av[ac - 1]) + isatty(0)); }
1784 __attribute__((__unused__))) { return (isatty(0)); }
1796 int main(void) { return (isatty(0)); }
1849 int main(void) { struct tm tm; return ((int)sizeof(tm) + isatty(0)); }
2012 extern int isatty(int);
[all …]
/third_party/node/deps/npm/node_modules/supports-color/
Dindex.js178 stdout: createSupportsColor({isTTY: tty.isatty(1)}),
179 stderr: createSupportsColor({isTTY: tty.isatty(2)}),
/third_party/node/deps/npm/node_modules/chalk/source/vendor/supports-color/
Dindex.js178 stdout: createSupportsColor({isTTY: tty.isatty(1)}),
179 stderr: createSupportsColor({isTTY: tty.isatty(2)}),
/third_party/rust/crates/is-terminal/
DREADME.md23 On Unix-family platforms, this is effectively the same as the [`isatty`]
101 [`isatty`]: https://man7.org/linux/man-pages/man3/isatty.3.html
/third_party/node/lib/
Dtty.js42 function isatty(fd) { function
164 module.exports = { isatty, ReadStream, WriteStream }; property
/third_party/mesa3d/src/intel/tools/
Daubinator.c259 if (!isatty(1)) in setup_pager()
366 option_color = isatty(1) ? COLOR_ALWAYS : COLOR_NEVER; in main()
368 if (isatty(1) && pager) in main()
/third_party/rust/crates/atty/src/
Dlib.rs48 unsafe { libc::isatty(fd) != 0 } in is()
61 hermit_abi::isatty(fd) in is()
/third_party/musl/src/unistd/
Disatty.c6 int isatty(int fd) in isatty() function
/third_party/rust/crates/rustix/src/backend/libc/termios/
Dsyscalls.rs144 pub(crate) fn isatty(fd: BorrowedFd<'_>) -> bool { in isatty() function
150 unsafe { c::isatty(borrowed_fd(fd)) != 0 } in isatty()

12345678910