is_tty on raw mode stdout
Hello,
while experimenting with termion I wanted to determine if stdout is a tty or not, and I noticed that in your examples the check is being done on fs::File::create("/dev/stdout")
.
What I find a bit unsettling is that I expected is_tty
to work also on a raw mode stdout created via stdout().into_raw_mode().unwrap()
as shown in other examples.
Is it possible to use the latter stdout instead of opening the file directly? Is it possible to provide the method directly on a stdout object?
Thanks