Function isTty [src]
Test whether the file refers to a terminal.
See also getOrEnableAnsiEscapeSupport and supportsAnsiEscapeCodes.
Prototype
pub fn isTty(self: File) bool
Parameters
self: File
Source
pub fn isTty(self: File) bool {
return posix.isatty(self.handle);
}