diff options
Diffstat (limited to 'src/os/input.h')
| -rw-r--r-- | src/os/input.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/os/input.h b/src/os/input.h index 5eed09d2ee..0d58a33392 100644 --- a/src/os/input.h +++ b/src/os/input.h @@ -13,5 +13,11 @@ int os_inchar(uint8_t *, int, int32_t, int); bool os_char_avail(void); void os_breakcheck(void); +/// Test whether a file descriptor refers to a terminal. +/// +/// @param fd File descriptor. +/// @return `true` if file descriptor refers to a terminal. +bool os_isatty(int fd); + #endif // NEOVIM_OS_INPUT_H |