From da51dc9cf202772f60bd2da975dbef257bd9237c Mon Sep 17 00:00:00 2001 From: Eliseo Martínez Date: Mon, 12 May 2014 02:25:17 +0200 Subject: Introduce nvim namespace: Move files. Move files from src/ to src/nvim/. - src/nvim/ becomes the new root dir for nvim executable sources. - src/libnvim/ is planned to become root dir of the neovim library. --- src/nvim/os/input.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/nvim/os/input.h (limited to 'src/nvim/os/input.h') 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 +#include + +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 + -- cgit