diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-05-12 02:25:17 +0200 |
---|---|---|
committer | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-05-15 20:46:01 +0200 |
commit | da51dc9cf202772f60bd2da975dbef257bd9237c (patch) | |
tree | 5c16b93238a153f55634e9323077f30c8133970c /src/nvim/os/input.h | |
parent | ffe61e5ba1721340ca51d56bae3ddaca415fb5bc (diff) | |
download | rneovim-da51dc9cf202772f60bd2da975dbef257bd9237c.tar.gz rneovim-da51dc9cf202772f60bd2da975dbef257bd9237c.tar.bz2 rneovim-da51dc9cf202772f60bd2da975dbef257bd9237c.zip |
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.
Diffstat (limited to 'src/nvim/os/input.h')
-rw-r--r-- | src/nvim/os/input.h | 23 |
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 + |