/third_party/rust/crates/rustix/tests/termios/ |
H A D | isatty.rs | 2 use rustix::termios::{isatty, tcgetwinsize}; 13 assert!(!isatty( in std_file_is_not_terminal() 16 assert!(!isatty( in std_file_is_not_terminal() 29 // Compare `isatty` against `libc::isatty`. in stdout_stderr_terminals() 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() 37 // Compare `isatty` agains in stdout_stderr_terminals() [all...] |
H A D | ttyname.rs | 2 use rustix::termios::{isatty, ttyname}; 8 if isatty(&file) { in test_ttyname_ok()
|
H A D | main.rs | 8 mod isatty; modules
|
/third_party/node/test/wasi/c/ |
H A D | fd_prestat_get_refresh.c | 4 isatty(1); in main() 6 isatty(1); in main()
|
/third_party/toybox/toys/posix/ |
H A D | nohup.c | 26 if (isatty(1)) { in nohup_main() 38 if (isatty(0)) { in nohup_main()
|
/third_party/musl/libc-test/src/functionalext/supplement/manual/unistd/ |
H A D | isatty.c | 29 int result = isatty(fileno(stdout)); in isatty_0100() 41 int result = isatty(fd); in isatty_0200()
|
/third_party/libinput/tools/ |
H A D | libinput-analyze-recording.py | 105 isatty = os.isatty(sys.stdout.fileno()) 190 if not isatty: 201 if isatty:
|
/third_party/node/tools/gyp/ |
H A D | test_gyp.py | 178 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/ |
H A D | test_gyp.py | 178 self.isatty = sys.stdout.isatty() and not self.verbose 191 if self.isatty: 197 if self.isatty: 226 elif not self.isatty:
|
/third_party/python/Modules/_io/ |
H A D | _iomodule.c | 136 * "Interactive" text files (files for which isatty() returns True) 209 long isatty = 0; in _io_open_impl() 348 PyObject *res = PyObject_CallMethodNoArgs(raw, &_Py_ID(isatty)); in _io_open_impl() 351 isatty = PyLong_AsLong(res); in _io_open_impl() 353 if (isatty == -1 && PyErr_Occurred()) in _io_open_impl() 357 if (buffering == 1 || isatty) { in _io_open_impl() 208 long isatty = 0; _io_open_impl() local
|
/third_party/rust/crates/rustix/src/termios/ |
H A D | tty.rs | 19 /// `isatty(fd)`—Tests whether a file descriptor refers to a terminal. 25 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/isatty.html 26 /// [Linux]: https://man7.org/linux/man-pages/man3/isatty.3.html 28 pub fn isatty<Fd: AsFd>(fd: Fd) -> bool { in isatty() functions 29 backend::termios::syscalls::isatty(fd.as_fd()) in isatty()
|
/third_party/ninja/src/ |
H A D | subprocess_test.cc | 151 if (isatty(0) && isatty(1) && isatty(2)) { in TEST_F()
|
/third_party/mksh/ |
H A D | Build.sh | 371 int main(void) { return (isatty(0) + 427 int main(void) { return (isatty(0)); } 467 echo 'int main(void) { return (isatty(0)); }' >>x 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( [all...] |
/third_party/node/lib/ |
H A D | tty.js | 42 function isatty(fd) { function 164 module.exports = { isatty, ReadStream, WriteStream };
|
/third_party/node/deps/npm/node_modules/chalk/source/vendor/supports-color/ |
H A D | index.js | 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 | 178 stdout: createSupportsColor({isTTY: tty.isatty(1)}), 179 stderr: createSupportsColor({isTTY: tty.isatty(2)}),
|
/third_party/rust/crates/is-terminal/src/ |
H A D | lib.rs | 9 //! On Unix-family platforms, this is effectively the same as the [`isatty`] 26 //! [`isatty`]: https://man7.org/linux/man-pages/man3/isatty.3.html 60 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/mesa3d/src/intel/tools/ |
H A D | aubinator.c | 259 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/ |
H A D | lib.rs | 48 unsafe { libc::isatty(fd) != 0 } in is() 61 hermit_abi::isatty(fd) in is()
|
/third_party/musl/src/unistd/ |
H A D | isatty.c | 6 int isatty(int fd) in isatty() function
|
H A D | ttyname_r.c | 12 if (!isatty(fd)) return errno; in ttyname_r()
|
/third_party/ltp/lib/ |
H A D | tst_ansi_color.c | 58 if (isatty(fd) == 0) in tst_color_enabled()
|
/third_party/python/Lib/test/ |
H A D | test_openpty.py | 14 if not os.isatty(slave):
|
/third_party/toybox/lib/ |
H A D | tty.c | 12 for (i = 0; i<3; i++) if (isatty(j = (i+1)%3)) return j; in tty_fd() 30 if (isatty(i) && !ioctl(i, TIOCGWINSZ, &ws)) { in terminal_size()
|
/third_party/eudev/src/shared/ |
H A D | terminal-util.c | 75 r = isatty(fd); in open_terminal()
|