1#ifndef NVIM_OS_PTY_PROCESS_UNIX_H
2#define NVIM_OS_PTY_PROCESS_UNIX_H
3
4#include <sys/ioctl.h>
5
6#include "nvim/event/process.h"
7
8typedef struct pty_process {
9 Process process;
10 char *term_name;
11 uint16_t width, height;
12 struct winsize winsize;
13 int tty_fd;
14} PtyProcess;
15
16static inline PtyProcess pty_process_init(Loop *loop, void *data)
17{
18 PtyProcess rv;
19 rv.process = process_init(loop, kProcessTypePty, data);
20 rv.term_name = NULL;
21 rv.width = 80;
22 rv.height = 24;
23 rv.tty_fd = -1;
24 return rv;
25}
26
27#ifdef INCLUDE_GENERATED_DECLARATIONS
28# include "os/pty_process_unix.h.generated.h"
29#endif
30
31#endif // NVIM_OS_PTY_PROCESS_UNIX_H
32