aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/input.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/os/input.h')
-rw-r--r--src/nvim/os/input.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/nvim/os/input.h b/src/nvim/os/input.h
new file mode 100644
index 0000000000..9ffd50fd3f
--- /dev/null
+++ b/src/nvim/os/input.h
@@ -0,0 +1,23 @@
+#ifndef NEOVIM_OS_INPUT_H
+#define NEOVIM_OS_INPUT_H
+
+#include <stdint.h>
+#include <stdbool.h>
+
+void input_init(void);
+bool input_ready(void);
+void input_start(void);
+void input_stop(void);
+uint32_t input_read(char *buf, uint32_t count);
+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
+