mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-08 01:10:23 +00:00
[windows] implement tty_check() with _isatty()
This commit is contained in:
parent
455ec4eb66
commit
1e8e942594
@ -1780,7 +1780,7 @@ prefix_data(const char* base){
|
|||||||
static inline int
|
static inline int
|
||||||
tty_check(int fd){
|
tty_check(int fd){
|
||||||
#ifdef __MINGW64__
|
#ifdef __MINGW64__
|
||||||
return fd >= 0 ? 1 : 0;
|
return _isatty(fd);
|
||||||
#endif
|
#endif
|
||||||
return isatty(fd);
|
return isatty(fd);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user