use std::fs::{File, OpenOptions};
use std::hash::Hash;
use std::io;
-use std::io::{Cursor, ErrorKind, IsTerminal, Read, Seek, SeekFrom, Write};
+use std::io::{Cursor, ErrorKind, Read, Seek, SeekFrom, Write};
use std::mem::ManuallyDrop;
use std::net::{Shutdown, TcpStream};
use std::ops::{Deref, DerefMut};
#[inline]
pub fn stdin(arena: &mut Arena, add_history: bool) -> Stream {
+ #[cfg(unix)]
+ use std::io::IsTerminal;
#[cfg(unix)]
if !std::io::stdin().is_terminal() {
use std::os::unix::io::{FromRawFd, RawFd};