pty_process_unix.h
Go to the documentation of this file.
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 
8 typedef struct pty_process {
10  char *term_name;
11  uint16_t width, height;
12  struct winsize winsize;
13  int tty_fd;
14 } PtyProcess;
15 
16 static 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
Definition: process.h:17
uint16_t width
Definition: pty_process_unix.h:11
return NULL
Definition: eval.c:22200
int tty_fd
Definition: pty_process_unix.h:13
Definition: process.h:10
struct pty_process PtyProcess
Definition: pty_process_unix.h:8
Definition: loop.h:17
char * term_name
Definition: pty_process_unix.h:10
Process process
Definition: pty_process_unix.h:9
struct winsize winsize
Definition: pty_process_unix.h:12
uint16_t height
Definition: pty_process_unix.h:11