Lines Matching +full:use +full:- +full:pty
26 use winapi::shared::minwindef::DWORD;
28 use winapi::shared::ntdef::WCHAR;
40 pub fn is(stream: Stream) -> bool { in is()
53 pub fn is(stream: Stream) -> bool { in is()
66 pub fn is(stream: Stream) -> bool { in is()
67 use winapi::um::winbase::{ in is()
97 pub fn isnt(stream: Stream) -> bool { in isnt()
103 unsafe fn console_on_any(fds: &[DWORD]) -> bool { in console_on_any()
104 use winapi::um::{consoleapi::GetConsoleMode, processenv::GetStdHandle}; in console_on_any()
118 unsafe fn msys_tty_on(fd: DWORD) -> bool { in msys_tty_on()
119 use std::{mem, slice}; in msys_tty_on()
121 use winapi::{ in msys_tty_on()
147 // This checks whether 'pty' exists in the file name, which indicates that in msys_tty_on()
148 // a pseudo-terminal is attached. To mitigate against false positives in msys_tty_on()
149 // (e.g., an actual file name that contains 'pty'), we also require that in msys_tty_on()
150 // either the strings 'msys-' or 'cygwin-' are in the file name as well.) in msys_tty_on()
151 let is_msys = name.contains("msys-") || name.contains("cygwin-"); in msys_tty_on()
152 let is_pty = name.contains("-pty"); in msys_tty_on()
158 pub fn is(_stream: Stream) -> bool { in is()
164 use super::{is, Stream};