Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
private fun fd_to_stream(mode: CString): NativeFile `{
return fdopen((int)self, mode);
`}
private fun fd_to_stream(mode: CString): NativeFile `{
return fdopen((int)self, mode);
`}
+
+ # Does the file descriptor `self` refer to a terminal?
+ fun isatty: Bool `{ return isatty(self); `}
end
# Constant for read-only file streams
end
# Constant for read-only file streams
-
-redef class Int
- # Does the file descriptor `self` refer to a terminal?
- fun isatty: Bool `{ return isatty(self); `}
-end