Home
last modified time | relevance | path

Searched refs:isatty (Results 1 - 25 of 188) sorted by relevance

12345678

/third_party/rust/crates/rustix/tests/termios/
H A 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()
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 Dttyname.rs2 use rustix::termios::{isatty, ttyname};
8 if isatty(&file) { in test_ttyname_ok()
H A Dmain.rs8 mod isatty; modules
/third_party/node/test/wasi/c/
H A Dfd_prestat_get_refresh.c4 isatty(1); in main()
6 isatty(1); in main()
/third_party/toybox/toys/posix/
H A 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/
H A Disatty.c29 int result = isatty(fileno(stdout)); in isatty_0100()
41 int result = isatty(fd); in isatty_0200()
/third_party/libinput/tools/
H A Dlibinput-analyze-recording.py105 isatty = os.isatty(sys.stdout.fileno())
190 if not isatty:
201 if isatty:
/third_party/node/tools/gyp/
H A 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/
H A 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/python/Modules/_io/
H A D_iomodule.c136 * "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 Dtty.rs19 /// `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 Dsubprocess_test.cc151 if (isatty(0) && isatty(1) && isatty(2)) { in TEST_F()
/third_party/mksh/
H A DBuild.sh371 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 Dtty.js42 function isatty(fd) { function
164 module.exports = { isatty, ReadStream, WriteStream };
/third_party/node/deps/npm/node_modules/chalk/source/vendor/supports-color/
H A Dindex.js178 stdout: createSupportsColor({isTTY: tty.isatty(1)}),
179 stderr: createSupportsColor({isTTY: tty.isatty(2)}),
/third_party/node/deps/npm/node_modules/supports-color/
H A Dindex.js178 stdout: createSupportsColor({isTTY: tty.isatty(1)}),
179 stderr: createSupportsColor({isTTY: tty.isatty(2)}),
/third_party/rust/crates/is-terminal/src/
H A Dlib.rs9 //! 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 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/
H A Dlib.rs48 unsafe { libc::isatty(fd) != 0 } in is()
61 hermit_abi::isatty(fd) in is()
/third_party/musl/src/unistd/
H A Disatty.c6 int isatty(int fd) in isatty() function
H A Dttyname_r.c12 if (!isatty(fd)) return errno; in ttyname_r()
/third_party/ltp/lib/
H A Dtst_ansi_color.c58 if (isatty(fd) == 0) in tst_color_enabled()
/third_party/python/Lib/test/
H A Dtest_openpty.py14 if not os.isatty(slave):
/third_party/toybox/lib/
H A Dtty.c12 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 Dterminal-util.c75 r = isatty(fd); in open_terminal()

Completed in 9 milliseconds

12345678