pty_process_win.h
Go to the documentation of this file.
1 #ifndef NVIM_OS_PTY_PROCESS_WIN_H
2 #define NVIM_OS_PTY_PROCESS_WIN_H
3 
4 #include <uv.h>
5 #include <winpty.h>
6 
7 #include "nvim/event/process.h"
8 #include "nvim/lib/queue.h"
10 
11 typedef enum {
14 } PtyType;
15 
16 typedef struct pty_process {
18  char *term_name;
19  uint16_t width, height;
20  union {
21  winpty_t *winpty;
23  } object;
27  uv_timer_t wait_eof_timer;
28 } PtyProcess;
29 
30 // Structure used by build_cmd_line()
31 typedef struct arg_node {
32  char *arg; // pointer to argument.
33  QUEUE node; // QUEUE structure.
34 } ArgNode;
35 
36 static inline PtyProcess pty_process_init(Loop *loop, void *data)
37 {
38  PtyProcess rv;
39  rv.process = process_init(loop, kProcessTypePty, data);
40  rv.term_name = NULL;
41  rv.width = 80;
42  rv.height = 24;
43  rv.object.winpty = NULL;
44  rv.type = kWinpty;
45  rv.finish_wait = NULL;
46  rv.process_handle = NULL;
47  return rv;
48 }
49 
50 #ifdef INCLUDE_GENERATED_DECLARATIONS
51 # include "os/pty_process_win.h.generated.h"
52 #endif
53 
54 #endif // NVIM_OS_PTY_PROCESS_WIN_H
Definition: process.h:17
uv_timer_t wait_eof_timer
Definition: pty_process_win.h:27
conpty_t * conpty
Definition: pty_process_win.h:22
uint16_t width
Definition: pty_process_unix.h:11
struct arg_node ArgNode
PtyType type
Definition: pty_process_win.h:24
HANDLE
Definition: pty_conpty_win.c:17
char * arg
Definition: pty_process_win.h:32
Definition: pty_process_win.h:13
return NULL
Definition: eval.c:12999
Definition: process.h:10
QUEUE node
Definition: pty_process_win.h:33
Definition: pty_process_win.h:31
PtyType
Definition: pty_process_win.h:11
Definition: queue.h:27
union pty_process::@41 object
Definition: pty_conpty_win.h:13
Definition: pty_process_unix.h:8
struct pty_process PtyProcess
HANDLE process_handle
Definition: pty_process_win.h:26
Definition: loop.h:17
char * term_name
Definition: pty_process_unix.h:10
Definition: pty_process_win.h:12
Process process
Definition: pty_process_unix.h:9
winpty_t * winpty
Definition: pty_process_win.h:21
HANDLE finish_wait
Definition: pty_process_win.h:25
uint16_t height
Definition: pty_process_unix.h:11